openjdk8 fastdebug build fails
Brian Gardner
openjdk at getsnappy.com
Sat Nov 29 03:08:58 UTC 2014
I’m trying to build openjdk8 on AMD64 with the fastdebug option set and I’m getting the following build errror. This happens with both 9.3 and 10.0.
/usr/bin/objcopy: libinstrument.debuginfo: Invalid operation
gmake[3]: *** [/wrkdirs/usr/ports/java/openjdk8/work/openjdk/build/bsd-x86_64-normal-server-fastdebug/jdk/objs/libinstrument/libinstrument.debuginfo] Error 1
lib/ServiceabilityLibraries.gmk:245: recipe for target '/wrkdirs/usr/ports/java/openjdk8/work/openjdk/build/bsd-x86_64-normal-server-fastdebug/jdk/objs/libinstrument/libinstrument.debuginfo' failed
gmake[3]: *** Waiting for unfinished jobs....
gmake[3]: Leaving directory '/wrkdirs/usr/ports/java/openjdk8/work/openjdk/jdk/make'
BuildJdk.gmk:70: recipe for target 'libs-only' failed
gmake[2]: *** [libs-only] Error 2
gmake[2]: Leaving directory '/wrkdirs/usr/ports/java/openjdk8/work/openjdk/jdk/make’
Looking into the cause it's related to statically linking libjli instead of dynamically linking libjli. Does anybody no why we statically link libjli? Mac OSX also statically links libjli but all other platforms dynamically link to it. The following patches fix the build mirroring Linux with some minor adaptions.
Brian
More information about the freebsd-java
mailing list