You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Alan Burlison (JIRA)" <ji...@apache.org> on 2015/05/15 11:44:00 UTC

[jira] [Created] (HADOOP-11975) Native code needs to be built to match the 32/64 bitness of the JVM

Alan Burlison created HADOOP-11975:
--------------------------------------

             Summary: Native code needs to be built to match the 32/64 bitness of the JVM
                 Key: HADOOP-11975
                 URL: https://issues.apache.org/jira/browse/HADOOP-11975
             Project: Hadoop Common
          Issue Type: Bug
          Components: build
    Affects Versions: 2.7.0
         Environment: Solaris
            Reporter: Alan Burlison
            Assignee: Alan Burlison


When building with a 64-bit JVM on Solaris the following error occurs at the link stage of building the native code:

     [exec] ld: fatal: file /usr/jdk/instances/jdk1.8.0/jre/lib/amd64/server/libjvm.so: wrong ELF class: ELFCLASS64
     [exec] collect2: error: ld returned 1 exit status
     [exec] make[2]: *** [target/usr/local/lib/libhadoop.so.1.0.0] Error 1
     [exec] make[1]: *** [CMakeFiles/hadoop.dir/all] Error 2

The compilation flags in the makefiles need to explicitly state if 32 or 64 bit code is to be generated, to match the JVM.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)