View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0015408CMakeCMakepublic2015-02-18 01:122015-07-08 08:57
ReporterTiago Stürmer Daitx 
Assigned ToBrad King 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSLinuxOS VersionAny
Product VersionCMake-2-6 
Target VersionCMake 3.2Fixed in VersionCMake 3.2 
Summary0015408: FindJNI missing JAVA_AWT_LIBRARY on JDK9 as jdk/lib/<arch> is not included in JAVA_AWT_LIBRARY_DIRECTORIES
DescriptionJDK9'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)
Steps To Reproduce1. Build JDK9
2. Compile hadoop-common-project/hadoop-common
Additional Informationhadoop-common has its own bug and might require a patch, see https://issues.apache.org/jira/browse/HADOOP-11610 [^]
TagsCMake, java, patch
Attached Filespatch file icon cmake_findjni-jdk9-support.patch [^] (389 bytes) 2015-02-18 01:16 [Show Content]

 Relationships

  Notes
(0037991)
Brad King (manager)
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 (manager)
2015-02-20 10:58

I've merged this back to the 'release' branch for the next 3.2 release candidate.
(0039057)
Robert Maynard (manager)
2015-07-08 08:57

Closing resolved issues that have not been updated in more than 4 months.

 Issue History
Date Modified Username Field Change
2015-02-18 01:12 Tiago Stürmer Daitx New Issue
2015-02-18 01:15 Tiago Stürmer Daitx Note Added: 0037989
2015-02-18 01:16 Tiago Stürmer Daitx Tag Attached: CMake
2015-02-18 01:16 Tiago Stürmer Daitx Tag Attached: java
2015-02-18 01:16 Tiago Stürmer Daitx Tag Attached: patch
2015-02-18 01:16 Tiago Stürmer Daitx Note Deleted: 0037989
2015-02-18 01:16 Tiago Stürmer Daitx File Added: cmake_findjni-jdk9-support.patch
2015-02-18 09:18 Brad King Note Added: 0037991
2015-02-18 09:18 Brad King Assigned To => Brad King
2015-02-18 09:18 Brad King Status new => resolved
2015-02-18 09:18 Brad King Resolution open => fixed
2015-02-18 09:18 Brad King Fixed in Version => CMake 3.3
2015-02-18 09:18 Brad King Target Version => CMake 3.3
2015-02-18 09:20 Brad King Note Edited: 0037991
2015-02-20 10:58 Brad King Note Added: 0038009
2015-02-20 10:58 Brad King Fixed in Version CMake 3.3 => CMake 3.2
2015-02-20 10:58 Brad King Target Version CMake 3.3 => CMake 3.2
2015-07-08 08:57 Robert Maynard Note Added: 0039057
2015-07-08 08:57 Robert Maynard Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team