From owner-freebsd-ports@freebsd.org Sat Oct 17 12:51:33 2020 Return-Path: Delivered-To: freebsd-ports@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 CA819436FA3 for ; Sat, 17 Oct 2020 12:51:33 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4CD2vn514sz45wX; Sat, 17 Oct 2020 12:51:33 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [IPv6:2001:470:7a58:1::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "tensor.andric.com", Issuer "Let's Encrypt Authority X3" (verified OK)) (Authenticated sender: dim) by smtp.freebsd.org (Postfix) with ESMTPSA id 7CF232153E; Sat, 17 Oct 2020 12:51:33 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from [IPv6:2001:470:7a58::5157:7bd8:fcbb:7778] (unknown [IPv6:2001:470:7a58:0:5157:7bd8:fcbb:7778]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 63A1581B94; Sat, 17 Oct 2020 14:51:31 +0200 (CEST) From: Dimitry Andric Message-Id: <8AD21ECC-4D62-4687-8648-F33029195977@FreeBSD.org> Content-Type: multipart/signed; boundary="Apple-Mail=_ED07FCDD-C8E7-40FD-B101-076F4B289E30"; protocol="application/pgp-signature"; micalg=pgp-sha1 Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.17\)) Subject: Re: OpenJDK ports and 13-CURRENT Date: Sat, 17 Oct 2020 14:51:22 +0200 In-Reply-To: <20201010194926.jnypzmbpu33wilbl@mutt-hbsd> Cc: FreeBSD Ports To: Shawn Webb References: <20201010190337.qtvivmpmzw4gtk3h@mutt-hbsd> <4ADAFC01-2148-48BE-AAE8-5E6A269C14CE@FreeBSD.org> <20201010192334.auepsizn3w57soes@mutt-hbsd> <8DD818E8-2569-4E2F-8BAD-143F8AE7FAE5@FreeBSD.org> <20201010194926.jnypzmbpu33wilbl@mutt-hbsd> X-Mailer: Apple Mail (2.3445.104.17) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Oct 2020 12:51:33 -0000 --Apple-Mail=_ED07FCDD-C8E7-40FD-B101-076F4B289E30 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 10 Oct 2020, at 21:49, Shawn Webb wrote: >=20 > On Sat, Oct 10, 2020 at 09:45:58PM +0200, Dimitry Andric wrote: ... >> The quick way to work around these errors is to set -fcommon in = CFLAGS, >> which will basically fudge around the actual issue. The better way is = to >> get rid of the duplicated symbols. This is usually easy, except that >> Java ports tend to take ages to build. :) I'll submit a patch when my >> machine's finished crunching through it. >=20 > Yup. Another victim: print/tex-luatex: >=20 > = https://git-01.md.hardenedbsd.org/HardenedBSD/hardenedbsd-ports/commit/229= b7663bc82ff7e471dc1e19662f68d4226984a I looked into this one finally, and it's not really an issue with any recent clang import, as the PR is from 2018-12-20: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D234221 The cause is a mixing of libstdc++ and libc++, which should not be done, as it will almost always lead to unexpected linking errors. The following diff fixes that: Index: Makefile =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- Makefile (revision 552400) +++ Makefile (working copy) @@ -74,6 +74,8 @@ CONFIGURE_ARGS+=3D--with-system-$L \ --with-$L-include=3D${LOCALBASE}/include \ --with-$L-libdir=3D${LOCALBASE}/lib .endfor +CONFIGURE_ARGS+=3DCC=3D"${CC}" \ + CXX=3D"${CXX}" CPPFLAGS+=3D -I${LOCALBASE}/include MAKE_JOBS_UNSAFE=3D yes TEX_FORMATS=3D luatex Note that the port's Makefile already has -fcommon added, to work around duplicated symbols. Since the copy of texlive is ancient, it is probably not worth the time to fix the actual issues. -Dimitry --Apple-Mail=_ED07FCDD-C8E7-40FD-B101-076F4B289E30 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.2 iF0EARECAB0WIQR6tGLSzjX8bUI5T82wXqMKLiCWowUCX4roygAKCRCwXqMKLiCW ozfDAKD+eZm++uPqlOb47FerqDnsU6D+8QCfeMoTzmQYVeeCz8iuEv1TIFOKu7k= =EShD -----END PGP SIGNATURE----- --Apple-Mail=_ED07FCDD-C8E7-40FD-B101-076F4B289E30--