MantisBT - CMake
View Issue Details
0015408CMakeCMakepublic2015-02-18 01:122015-07-08 08:57
Tiago Stürmer Daitx 
Brad King 
normalminoralways
closedfixed 
LinuxAny
CMake-2-6 
CMake 3.2CMake 3.2 
0015408: FindJNI missing JAVA_AWT_LIBRARY on JDK9 as jdk/lib/<arch> is not included in JAVA_AWT_LIBRARY_DIRECTORIES
JDK9's directory structure changes and no jdk/jre exists. The right arch lib path is now jdk/lib/<arch> (instead of jdk/jre/lib/<arch>).

CMake error when building hadoop-common:
     [exec] CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:108 (message):
     [exec] Could NOT find JNI (missing: JAVA_AWT_LIBRARY)
     [exec] Call Stack (most recent call first):
     [exec] /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:315 (_FPHSA_FA-- 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".
     [exec] ILURE_MESSAGE)
     [exec] /usr/share/cmake-2.8/Modules/FindJNI.cmake:252 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
     [exec] CMakeLists.txt:103 (find_p
     [exec] ackage)
1. Build JDK9
2. Compile hadoop-common-project/hadoop-common
hadoop-common has its own bug and might require a patch, see https://issues.apache.org/jira/browse/HADOOP-11610 [^]
CMake, java, patch
patch cmake_findjni-jdk9-support.patch (389) 2015-02-18 01:16
https://public.kitware.com/Bug/file/5387/cmake_findjni-jdk9-support.patch
Issue History
2015-02-18 01:12Tiago Stürmer DaitxNew Issue
2015-02-18 01:15Tiago Stürmer DaitxNote Added: 0037989
2015-02-18 01:16Tiago Stürmer DaitxTag Attached: CMake
2015-02-18 01:16Tiago Stürmer DaitxTag Attached: java
2015-02-18 01:16Tiago Stürmer DaitxTag Attached: patch
2015-02-18 01:16Tiago Stürmer DaitxNote Deleted: 0037989
2015-02-18 01:16Tiago Stürmer DaitxFile Added: cmake_findjni-jdk9-support.patch
2015-02-18 09:18Brad KingNote Added: 0037991
2015-02-18 09:18Brad KingAssigned To => Brad King
2015-02-18 09:18Brad KingStatusnew => resolved
2015-02-18 09:18Brad KingResolutionopen => fixed
2015-02-18 09:18Brad KingFixed in Version => CMake 3.3
2015-02-18 09:18Brad KingTarget Version => CMake 3.3
2015-02-18 09:20Brad KingNote Edited: 0037991bug_revision_view_page.php?bugnote_id=37991#r1705
2015-02-20 10:58Brad KingNote Added: 0038009
2015-02-20 10:58Brad KingFixed in VersionCMake 3.3 => CMake 3.2
2015-02-20 10:58Brad KingTarget VersionCMake 3.3 => CMake 3.2
2015-07-08 08:57Robert MaynardNote Added: 0039057
2015-07-08 08:57Robert MaynardStatusresolved => closed

Notes
(0037991)
Brad King   
2015-02-18 09:18   
(edited on: 2015-02-18 09:20)
Applied, thanks:

 FindJNI: Add arch-specific library dir for JDK 9 layout
 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=bce4e20f [^]

(0038009)
Brad King   
2015-02-20 10:58   
I've merged this back to the 'release' branch for the next 3.2 release candidate.
(0039057)
Robert Maynard   
2015-07-08 08:57   
Closing resolved issues that have not been updated in more than 4 months.