Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.6.0
    • Fix Version/s: None
    • Component/s: build
    • Environment:

      JDK9

      Description

      The new JDK9 directory structure lacks a jre directory under jdk. Due to that hadoop-common fails to build:

      Error output:

      [exec] – The C compiler identification is GNU 4.8.2
      [exec] – The CXX compiler identification is GNU 4.8.2
      [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] – Detecting CXX compiler ABI info
      [exec] JAVA_HOME=, JAVA_JVM_LIBRARY=JAVA_JVM_LIBRARY-NOTFOUND
      [exec] JAVA_INCLUDE_PATH=/home/tdaitx/jdk9-dev/build/linux-ppc64-normal-server-release/images/jdk/include, JAVA_INCLUDE_PATH2=/home/tdai$
      x/jdk9-dev/build/linux-ppc64-normal-server-release/images/jdk/include/linux
      [exec] CMake Error at JNIFlags.cmake:120 (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 - done
      [exec] – Configuring incomplete, errors occurred!
      [exec] See also "/home/tdaitx/hadoop-2.6.0-src/hadoop-common-project/hadoop-common/target/native/CMakeFiles/CMakeOutput.log".

        Issue Links

          Activity

          Hide
          tdaitx Tiago Stürmer Daitx added a comment -

          Fix JDK9 library arch path. JDK9's jdk dir does not contain a jre entry and jdk/lib/<arch> must be used in place of jdk/jre/lib/<arch>.

          Show
          tdaitx Tiago Stürmer Daitx added a comment - Fix JDK9 library arch path. JDK9's jdk dir does not contain a jre entry and jdk/lib/<arch> must be used in place of jdk/jre/lib/<arch>.
          Hide
          tdaitx Tiago Stürmer Daitx added a comment -

          CMake also needs a patched FindJNI.cmake to work. I opened a bug to track that issue.

          Show
          tdaitx Tiago Stürmer Daitx added a comment - CMake also needs a patched FindJNI.cmake to work. I opened a bug to track that issue .

            People

            • Assignee:
              Unassigned
              Reporter:
              tdaitx Tiago Stürmer Daitx
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:

                Development