[CMake] Regression in FindJNI.cmake on ia64?

Mathieu Malaterre mathieu.malaterre at gmail.com
Fri May 28 10:06:17 EDT 2010


On Fri, May 28, 2010 at 3:55 PM, Denis Barbier <bouzim at gmail.com> wrote:
> On 2010/5/28 Brad King wrote:
>> Denis Barbier wrote:
>>> Hello cmake maintainers,
>>>
>>> vtk 5.4.2-7 FTBFS on ia64
>>>    https://buildd.debian.org/fetch.cgi?pkg=vtk;ver=5.4.2-7;arch=ia64;stamp=1275000467
>>>
>>> In this version, local FindJNI.cmake had been dropped and replaced by
>>> a dependency on cmake >= 2.8.1-3
>>>
>>> Configuration did not find Java libraries:
>>>   -- Java version 1.6.0.18 configured successfully!
>>>   -- Found Java: /usr/lib/jvm/default-java/bin/java
>>>   -- Could NOT find JNI  (missing:  JAVA_AWT_LIBRARY JAVA_JVM_LIBRARY)
>>>
>>> I see nothing wrong in cmake, which is why I do not file a bug report
>>> yet, but are you aware of problems on ia64 with cmake 2.8.1-4?
>>
>> This change appears to be related:
>>
>>  http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=b5bc1d9f
>>  http://www.cmake.org/Bug/view.php?id=9611
>
> AFAICT these patches have been applied in Debian since they have been
> committed into your CVS repository, and no bug has been reported, so
> you do not have to worry too much ;)
> Something goes wrong, but I am not even sure it is related to cmake
> (it may be a Java problem too, or a broken autobuilder), I was asking
> just in case Modestas or others had been experiencing similar
> problems.
>
>> To what does CMAKE_SYSTEM_PROCESSOR get set?
>
> I will try to have access to an ia64 box tonight, but
>   https://buildd.debian.org/fetch.cgi?pkg=gdcm&arch=ia64&ver=2.0.14-9&stamp=1273082198&file=log&as=raw
> contains a successful check:
>  -- Java version 1.6.0.18 configured successfully!
>  -- Found Java: /usr/lib/jvm/default-java/bin/java
>  -- Found JNI: /usr/lib/jvm/default-java/jre/lib/ia64/libjawt.so
> so it looks like CMAKE_SYSTEM_PROCESSOR should be set to ia64.

Hi Denis,

  Thanks for taking care of this.

  Since this is working nicely in GDCM (kudos to Modestas), I would
say something *else* is being doing in VTK. Did you check debian/rules
or debian/CMakeCache.txt does not store some precomputed value for
CMAKE:JAVA_* variables ?

Thanks,
-- 
Mathieu



More information about the CMake mailing list