From owner-freebsd-ppc@freebsd.org Wed Jan 15 08:38:56 2020 Return-Path: Delivered-To: freebsd-ppc@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 454662255C8 for ; Wed, 15 Jan 2020 08:38:56 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [96.47.72.132]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47yLMh11CKz4Fg5 for ; Wed, 15 Jan 2020 08:38:56 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by freefall.freebsd.org (Postfix) id 1C0BD1783D; Wed, 15 Jan 2020 08:38:56 +0000 (UTC) Delivered-To: powerpc@localmail.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [96.47.72.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits)) (Client CN "mx1.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by freefall.freebsd.org (Postfix) with ESMTPS id F18491783C for ; Wed, 15 Jan 2020 08:38:55 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47yLMg5HLbz4Fg1 for ; Wed, 15 Jan 2020 08:38:55 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id AC9503D4A for ; Wed, 15 Jan 2020 08:38:55 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 00F8ctN6054250 for ; Wed, 15 Jan 2020 08:38:55 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 00F8ctWB054247 for powerpc@FreeBSD.org; Wed, 15 Jan 2020 08:38:55 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: powerpc@FreeBSD.org Subject: [Bug 243182] java/openjdk11: add bootstrap and fix compilation for powerpc64 elfv2 Date: Wed, 15 Jan 2020 08:38:55 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: pkubaj@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: java@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Jan 2020 08:38:56 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D243182 --- Comment #12 from Piotr Kubaj --- (In reply to Greg Lewis from comment #11) Sure, GCC supports ELFv2 since 4.8.3 (https://www.gnu.org/software/gcc/gcc-4.8/changes.html). But FreeBSD/powerp= c64 with ELFv2 uses Clang. >From java/openjdk11/Makefile: .if ${COMPILER_TYPE} =3D=3D gcc USE_GCC=3D yes CONFIGURE_ARGS+=3D=20=20=20=20=20=20=20 --with-extra-ldflags=3D"-Wl,-rpath=3D${LOCALBASE}/lib/gcc${GCC_DEFAULT} -L${LOCALBASE}/lib/gcc${GCC_DEFAULT}" \ =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 --with-extra-cflags=3D"-Wl,-rpath=3D${LOCALBASE}/lib/gcc${GCC_DEFAULT}" \ =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 --with-extra-cxxflags=3D"-Wl,-rpath=3D${LOCALBASE}/lib/gcc${GCC_DEFAULT}" .else MAKE_ENV+=3D USE_CLANG=3Dtrue .endif So new GCC from ports (able to use ELFv2) will be used only when GCC is use= d in the first place (base GCC, which only does ELFv1). If Clang is used (only on ELFv2), you don't switch to GCC. You definitely could build FreeBSD without Clang and use external GCC on EL= Fv2, or use Clang with GNU ld.bfd on ELFv1 (ldd doesn't support ELFv1, in fact M= ark Millard played with Clang + ld.bfd on ELFv1), but this is entirely unsuppor= ted use-case and I doubt anyone does this anymore (even if someone does, it's unsupported). There are of course other ports that need to use GCC from ports on powerpc6= 4, because Clang can't compile them (it's still pretty immature on POWER compa= red to GCC 9 and has some bugs), but it can definitely build OpenJDK. That's why there's this assumption: that GCC means ELFv1 and Clang means EL= Fv2. --=20 You are receiving this mail because: You are on the CC list for the bug.=