From owner-freebsd-java@FreeBSD.ORG Sat Nov 29 03:08:58 2014 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 30D4878B for ; Sat, 29 Nov 2014 03:08:58 +0000 (UTC) Received: from mailA.getsnappy.com (mailA.getsnappy.com [72.29.186.40]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 105A8A4D for ; Sat, 29 Nov 2014 03:08:57 +0000 (UTC) Received: from [192.168.0.2] (138-229-191-115.dhcp.snlo.ca.charter.com [138.229.191.115] (may be forged)) (authenticated bits=0) by mailA.getsnappy.com (8.14.9/8.14.7) with ESMTP id sAT38mMg007165 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 28 Nov 2014 19:08:51 -0800 (PST) (envelope-from openjdk@getsnappy.com) X-Authentication-Warning: mailA.getsnappy.com: Host 138-229-191-115.dhcp.snlo.ca.charter.com [138.229.191.115] (may be forged) claimed to be [192.168.0.2] From: Brian Gardner Subject: openjdk8 fastdebug build fails Message-Id: Date: Fri, 28 Nov 2014 19:08:46 -0800 To: freebsd-java@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 8.1 \(1993\)) X-Mailer: Apple Mail (2.1993) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Nov 2014 03:08:58 -0000 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