Date: Sat, 29 Nov 2014 19:19:47 -0800 From: Greg Lewis <glewis@eyesbeyond.com> To: Brian Gardner <openjdk@getsnappy.com> Cc: freebsd-java@freebsd.org Subject: Re: openjdk8 fastdebug build fails Message-ID: <20141130031947.GA65479@misty.eyesbeyond.com> In-Reply-To: <E7649C08-A1DE-487D-A69B-04C3111A4DB9@getsnappy.com> References: <E7649C08-A1DE-487D-A69B-04C3111A4DB9@getsnappy.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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@eyesbeyond.com Eyes Beyond Web : http://www.eyesbeyond.com Information Technology FreeBSD : glewis@FreeBSD.org
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20141130031947.GA65479>