Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Nov 2014 19:08:46 -0800
From:      Brian Gardner <openjdk@getsnappy.com>
To:        freebsd-java@freebsd.org
Subject:   openjdk8 fastdebug build fails
Message-ID:  <E7649C08-A1DE-487D-A69B-04C3111A4DB9@getsnappy.com>

next in thread | raw e-mail | index | archive | help
I=E2=80=99m trying to build openjdk8 on AMD64 with the fastdebug option =
set and I=E2=80=99m 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-ser=
ver-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-ser=
ver-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=E2=80=99

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 =20



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E7649C08-A1DE-487D-A69B-04C3111A4DB9>