openjdk8 fastdebug build fails

Greg Lewis glewis at eyesbeyond.com
Sun Nov 30 03:19:58 UTC 2014


On Fri, Nov 28, 2014 at 07:08:46PM -0800, Brian Gardner wrote:
> 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.

The mailing lists tend to strip out attachments.  Can you put the
patches in a PR or send them directly?

-- 
Greg Lewis                          Email   : glewis at eyesbeyond.com
Eyes Beyond                         Web     : http://www.eyesbeyond.com
Information Technology              FreeBSD : glewis at FreeBSD.org


More information about the freebsd-java mailing list