You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mapreduce-issues@hadoop.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2022/03/30 02:02:00 UTC

[jira] [Work logged] (MAPREDUCE-7373) Building MapReduce NativeTask fails on Fedora 34+

     [ https://issues.apache.org/jira/browse/MAPREDUCE-7373?focusedWorklogId=749801&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-749801 ]

ASF GitHub Bot logged work on MAPREDUCE-7373:
---------------------------------------------

                Author: ASF GitHub Bot
            Created on: 30/Mar/22 02:01
            Start Date: 30/Mar/22 02:01
    Worklog Time Spent: 10m 
      Work Description: sekikn opened a new pull request #4120:
URL: https://github.com/apache/hadoop/pull/4120


   <!--
     Thanks for sending a pull request!
       1. If this is your first time, please read our contributor guidelines: https://cwiki.apache.org/confluence/display/HADOOP/How+To+Contribute
       2. Make sure your PR title starts with JIRA issue id, e.g., 'HADOOP-17799. Your PR title ...'.
   -->
   
   ### Description of PR
   
   
   Building MapReduce NativeTask with GCC 11, in which C++17 features are enabled by default, leads to the following error. This PR fixes this problem.
   
   ```
   error: ISO C++17 does not allow dynamic exception specifications
   ```
   
   ### How was this patch tested?
   
   I ran the following command locally and confirmed that it succeeded.
   
   ```
   $ mvn package -Pdist,native -DskipTests -Dtar -Dmaven.javadoc.skip=true
   ```
   
   ### For code changes:
   
   - [x] Does the title or this PR starts with the corresponding JIRA issue id (e.g. 'HADOOP-17799. Your PR title ...')?
   - [x] Object storage: have the integration tests been executed and the endpoint declared according to the connector-specific documentation?
   - [x] If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under [ASF 2.0](http://www.apache.org/legal/resolved.html#category-a)?
   - [x] If applicable, have you updated the `LICENSE`, `LICENSE-binary`, `NOTICE-binary` files?
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

            Worklog Id:     (was: 749801)
    Remaining Estimate: 0h
            Time Spent: 10m

> Building MapReduce NativeTask fails on Fedora 34+
> -------------------------------------------------
>
>                 Key: MAPREDUCE-7373
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-7373
>             Project: Hadoop Map/Reduce
>          Issue Type: Improvement
>          Components: build, nativetask
>            Reporter: Kengo Seki
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> Fedora 34 adopted GCC 11, in which C++17 features are enabled by default.
> https://gcc.gnu.org/projects/cxx-status.html#cxx17
> Building MapReduce NativeTask with it leads to the following error.
> (I found it on branch-3.2, but it's supposed to be the same as trunk)
> {code}
> $ mvn package -Pdist,native -DskipTests -Dtar -Dmaven.javadoc.skip=true
> ...
> [WARNING] In file included from /home/vagrant/hadoop/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-nativetask/src/main/native/src/lib/MapOutputCollector.h:30,
> [WARNING]                  from /home/vagrant/hadoop/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-nativetask/src/main/native/src/handler/MCollectorOutputHandler.cc:24:
> [WARNING] /home/vagrant/hadoop/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-nativetask/src/main/native/src/lib/PartitionBucket.h:127:36: error: ISO C++17 does not allow dynamic exception specifications
> [WARNING]   127 |   void spill(IFileWriter * writer) throw (IOException, UnsupportException);
> [WARNING]       |                                    ^~~~~
> [WARNING] make[2]: *** [CMakeFiles/nativetask_static.dir/build.make:160: CMakeFiles/nativetask_static.dir/main/native/src/handler/MCollectorOutputHandler.cc.o] Error 1
> [WARNING] make[1]: *** [CMakeFiles/Makefile2:115: CMakeFiles/nativetask_static.dir/all] Error 2
> [WARNING] make: *** [Makefile:91: all] Error 2
> ...
> [INFO] Apache Hadoop MapReduce HistoryServer Plugins ...... SUCCESS [  0.570 s]
> [INFO] Apache Hadoop MapReduce NativeTask ................. FAILURE [ 11.016 s]
> [INFO] Apache Hadoop MapReduce Uploader ................... SKIPPED
> [INFO] Apache Hadoop MapReduce Examples ................... SKIPPED
> [INFO] Apache Hadoop MapReduce ............................ SKIPPED
> [INFO] Apache Hadoop MapReduce Streaming .................. SKIPPED
> [INFO] Apache Hadoop Distributed Copy ..................... SKIPPED
> [INFO] Apache Hadoop Archives ............................. SKIPPED
> [INFO] Apache Hadoop Archive Logs ......................... SKIPPED
> [INFO] Apache Hadoop Rumen ................................ SKIPPED
> [INFO] Apache Hadoop Gridmix .............................. SKIPPED
> [INFO] Apache Hadoop Data Join ............................ SKIPPED
> [INFO] Apache Hadoop Extras ............................... SKIPPED
> [INFO] Apache Hadoop Pipes ................................ SKIPPED
> [INFO] Apache Hadoop OpenStack support .................... SKIPPED
> [INFO] Apache Hadoop Amazon Web Services support .......... SKIPPED
> [INFO] Apache Hadoop Kafka Library support ................ SKIPPED
> [INFO] Apache Hadoop Azure support ........................ SKIPPED
> [INFO] Apache Hadoop Aliyun OSS support ................... SKIPPED
> [INFO] Apache Hadoop Client Aggregator .................... SKIPPED
> [INFO] Apache Hadoop Scheduler Load Simulator ............. SKIPPED
> [INFO] Apache Hadoop Resource Estimator Service ........... SKIPPED
> [INFO] Apache Hadoop Azure Data Lake support .............. SKIPPED
> [INFO] Apache Hadoop Tools Dist ........................... SKIPPED
> [INFO] Apache Hadoop Tools ................................ SKIPPED
> [INFO] Apache Hadoop Client API ........................... SKIPPED
> [INFO] Apache Hadoop Client Runtime ....................... SKIPPED
> [INFO] Apache Hadoop Client Packaging Invariants .......... SKIPPED
> [INFO] Apache Hadoop Client Test Minicluster .............. SKIPPED
> [INFO] Apache Hadoop Client Packaging Invariants for Test . SKIPPED
> [INFO] Apache Hadoop Client Packaging Integration Tests ... SKIPPED
> [INFO] Apache Hadoop Distribution ......................... SKIPPED
> [INFO] Apache Hadoop Client Modules ....................... SKIPPED
> [INFO] Apache Hadoop Cloud Storage ........................ SKIPPED
> [INFO] Apache Hadoop Cloud Storage Project ................ SKIPPED
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time:  04:10 min
> [INFO] Finished at: 2022-03-30T01:49:59Z
> [INFO] ------------------------------------------------------------------------
> [ERROR] Failed to execute goal org.apache.hadoop:hadoop-maven-plugins:3.2.4-SNAPSHOT:cmake-compile (cmake-compile) on project hadoop-mapreduce-client-nativetask: make failed with error code 2 -> [Help 1]
> {code}



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: mapreduce-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: mapreduce-issues-help@hadoop.apache.org