← Back to team overview

openjdk team mailing list archive

Bug#828873: openjdk-8-jre-headless: inconsistent library installation paths

 

Package: openjdk-8-jre-headless
Version: 8u91-b14-3
Severity: important

On i386, openjdk-8-jre-headless installs libraries to
/usr/lib/jvm/java-8-openjdk-i386/jre/lib/i386(/server), consistently
using DEB_HOST_ARCH_CPU throughout.  On arm64, however, these libraries
wind up in /usr/lib/jvm/java-8-openjdk-arm64/jre/lib/aarch64(/server),
where arm64 corresponds to DEB_HOST_ARCH_CPU (as on i386) but aarch64
corresponds to DEB_HOST_GNU_CPU.  (On most other architectures, these
two variables are equivalent in practice.)

Presumably as a result of this discrepancy, gridengine FTBFS on arm64
due to looking in a nonexistent directory:

     [java]      [exec] cc -o jgdi_test -g  -DSGE_LOCK_DEBUG -L. -Wl,-z,relro -rdynamic -Wl,-rpath,\$ORIGIN/../../lib/lx-arm64  -L/usr/lib/jvm/java-8-openjdk-arm64/jre/lib/arm64/server  jgdi_test.o -ljvm libuti.a libcommlists.a -lm -lpthread  
     [java]      [exec] ../libs/jgdi/Makefile:77: recipe for target 'jgdi_test' failed
     [java]      [exec] make[2]: Leaving directory '/«BUILDDIR»/gridengine-8.1.8+dfsg/source/LINUXARM64'
     [java]      [exec] not done
     [java]      [exec] /usr/bin/ld: cannot find -ljvm
     [java]      [exec] collect2: error: ld returned 1 exit status
     [java]      [exec] make[2]: *** [jgdi_test] Error 1

Could you please address this discrepancy, or explain to gridengine's
maintainers how to locate these libraries generically?

Thanks!


Follow ups