[
https://issues.apache.org/jira/browse/HADOOP-10968?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14101221#comment-14101221
]
Dinar Valeev commented on HADOOP-10968:
---------------------------------------
On ppc64 (big-endian) javaarch matches ppc64. While on ppc64le it can be
ppc64(openjdk) or ppc64le(IBM Java).
openJDK since 2.5 sets ppc64 as java arch, openJDK lower than 2.5 has ppc64le.
IBM Java still sets ppc64le so we need that check for backward compatibility.
It is no possible to run LE code on ppc64, so there is no chance to see ppc64le
libarch on big-endian.
> hadoop common fails to detect java_libarch on ppc64le
> -----------------------------------------------------
>
> Key: HADOOP-10968
> URL: https://issues.apache.org/jira/browse/HADOOP-10968
> Project: Hadoop Common
> Issue Type: Bug
> Components: build
> Affects Versions: 2.3.0
> Reporter: Dinar Valeev
> Fix For: 0.23.2
>
> Attachments: 0001-Set-java_libarch-for-ppc64le-2.patch
>
>
> [INFO]
> [INFO] --- maven-antrun-plugin:1.7:run (make) @ hadoop-common ---
> [INFO] Executing tasks
> main:
> [exec] -- The C compiler identification is GNU 4.8.3
> [exec] -- The CXX compiler identification is GNU 4.8.3
> [exec] -- Check for working C compiler: /usr/bin/cc
> [exec] -- Check for working C compiler: /usr/bin/cc -- works
> [exec] -- Detecting C compiler ABI info
> [exec] -- Detecting C compiler ABI info - done
> [exec] -- Check for working CXX compiler: /usr/bin/c++
> [exec] -- Check for working CXX compiler: /usr/bin/c++ -- works
> [exec] JAVA_HOME=, JAVA_JVM_LIBRARY=JAVA_JVM_LIBRARY-NOTFOUND
> [exec]
> JAVA_INCLUDE_PATH=/usr/lib64/jvm/java-1.7.0-openjdk-1.7.0/include,
> JAVA_INCLUDE_PATH2=/usr/lib64/jvm/java-1.7.0-openjdk-1.7.0/include/linux
> [exec] CMake Error at JNIFlags.cmake:114 (MESSAGE):
> [exec] Failed to find a viable JVM installation under JAVA_HOME.
> [exec] Call Stack (most recent call first):
> [exec] CMakeLists.txt:24 (include)
> [exec]
> [exec]
> [exec] -- Detecting CXX compiler ABI info
> [exec] -- Detecting CXX compiler ABI info - done
> [exec] -- Configuring incomplete, errors occurred!
> [exec] See also
> "/root/bigtop/build/hadoop/rpm/BUILD/hadoop-2.3.0-src/hadoop-common-project/hadoop-common/target/native/CMakeFiles/CMakeOutput.log".
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Reactor Summary:
> [INFO]
> [INFO] Apache Hadoop Main ................................. SUCCESS [ 10.680
> s]
> [INFO] Apache Hadoop Project POM .......................... SUCCESS [ 0.716
> s]
> [INFO] Apache Hadoop Annotations .......................... SUCCESS [ 3.270
> s]
> [INFO] Apache Hadoop Assemblies ........................... SUCCESS [ 0.274
> s]
> [INFO] Apache Hadoop Project Dist POM ..................... SUCCESS [ 1.819
> s]
> [INFO] Apache Hadoop Maven Plugins ........................ SUCCESS [ 3.284
> s]
> [INFO] Apache Hadoop MiniKDC .............................. SUCCESS [ 2.863
> s]
> [INFO] Apache Hadoop Auth ................................. SUCCESS [ 4.032
> s]
> [INFO] Apache Hadoop Auth Examples ........................ SUCCESS [ 2.475
> s]
> [INFO] Apache Hadoop Common ............................... FAILURE [ 10.458
> s]
> [INFO] Apache Hadoop NFS .................................. SKIPPED
> [INFO] Apache Hadoop Common Project ....................... SKIPPED
> [INFO] Apache Hadoop HDFS ................................. SKIPPED
> [INFO] Apache Hadoop HttpFS ............................... SKIPPED
> [INFO] Apache Hadoop HDFS BookKeeper Journal .............. SKIPPED
> [INFO] Apache Hadoop HDFS-NFS ............................. SKIPPED
> [INFO] Apache Hadoop HDFS Project ......................... SKIPPED
> [INFO] hadoop-yarn ........................................ SKIPPED
> [INFO] hadoop-yarn-api .................................... SKIPPED
> [INFO] hadoop-yarn-common ................................. SKIPPED
> [INFO] hadoop-yarn-server ................................. SKIPPED
> [INFO] hadoop-yarn-server-common .......................... SKIPPED
> [INFO] hadoop-yarn-server-nodemanager ..................... SKIPPED
> [INFO] hadoop-yarn-server-web-proxy ....................... SKIPPED
> [INFO] hadoop-yarn-server-resourcemanager ................. SKIPPED
> [INFO] hadoop-yarn-server-tests ........................... SKIPPED
> [INFO] hadoop-yarn-client ................................. SKIPPED
> [INFO] hadoop-yarn-applications ........................... SKIPPED
> [INFO] hadoop-yarn-applications-distributedshell .......... SKIPPED
> [INFO] hadoop-yarn-applications-unmanaged-am-launcher ..... SKIPPED
> [INFO] hadoop-yarn-site ................................... SKIPPED
> [INFO] hadoop-yarn-project ................................ SKIPPED
> [INFO] hadoop-mapreduce-client ............................ SKIPPED
> [INFO] hadoop-mapreduce-client-core ....................... SKIPPED
> [INFO] hadoop-mapreduce-client-common ..................... SKIPPED
> [INFO] hadoop-mapreduce-client-shuffle .................... SKIPPED
> [INFO] hadoop-mapreduce-client-app ........................ SKIPPED
> [INFO] hadoop-mapreduce-client-hs ......................... SKIPPED
> [INFO] hadoop-mapreduce-client-jobclient .................. SKIPPED
> [INFO] hadoop-mapreduce-client-hs-plugins ................. SKIPPED
> [INFO] Apache Hadoop MapReduce Examples ................... SKIPPED
> [INFO] hadoop-mapreduce ................................... SKIPPED
> [INFO] Apache Hadoop MapReduce Streaming .................. SKIPPED
> [INFO] Apache Hadoop Distributed Copy ..................... SKIPPED
> [INFO] Apache Hadoop Archives ............................. 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 Client ............................... SKIPPED
> [INFO] Apache Hadoop Mini-Cluster ......................... SKIPPED
> [INFO] Apache Hadoop Scheduler Load Simulator ............. SKIPPED
> [INFO] Apache Hadoop Tools Dist ........................... SKIPPED
> [INFO] Apache Hadoop Tools ................................ SKIPPED
> [INFO] Apache Hadoop Distribution ......................... SKIPPED
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 42.273 s
> [INFO] Finished at: 2014-08-13T00:43:06+02:00
> [INFO] Final Memory: 61M/465M
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-antrun-plugin:1.7:run (make) on project
> hadoop-common: An Ant BuildException has occured: exec returned: 1
> [ERROR] around Ant part ...<exec
> dir="/root/bigtop/build/hadoop/rpm/BUILD/hadoop-2.3.0-src/hadoop-common-project/hadoop-common/target/native"
> executable="cmake" failonerror="true">... @ 4:156 in
> /root/bigtop/build/hadoop/rpm/BUILD/hadoop-2.3.0-src/hadoop-common-project/hadoop-common/target/antrun/build-main.xml
> [ERROR] -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e
> switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions, please
> read the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
> [ERROR]
> [ERROR] After correcting the problems, you can resume the build with the
> command
> [ERROR] mvn <goals> -rf :hadoop-common
> error: Bad exit status from /var/tmp/rpm-tmp.suXMUs (%build)
--
This message was sent by Atlassian JIRA
(v6.2#6252)