From owner-freebsd-ports@freebsd.org Sat Oct 10 19:49:29 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 370634292E6 for ; Sat, 10 Oct 2020 19:49:29 +0000 (UTC) (envelope-from shawn.webb@hardenedbsd.org) Received: from mail-qk1-x741.google.com (mail-qk1-x741.google.com [IPv6:2607:f8b0:4864:20::741]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4C7wWD4j2Vz4FLy for ; Sat, 10 Oct 2020 19:49:28 +0000 (UTC) (envelope-from shawn.webb@hardenedbsd.org) Received: by mail-qk1-x741.google.com with SMTP id a23so14100449qkg.13 for ; Sat, 10 Oct 2020 12:49:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hardenedbsd.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=4TidymBWQgp5CbsisEzVeEXMYJIv1PlnSlJiWeSpfaE=; b=iSMhmXkbXdiB5HfpQp/CUDAv1wc9YONOENhcu0arN8Camg00CkoYSlnDd4pfX+3Xuf KH97t2jsm0/NX5y5dNBKnBAIR+JdA4vnw6Oo2ZC6AmKcUTHmOFMKQ0GsYUvoXl358vs0 SdpV+y8ObKhrbK3GC0IkCL8D5yNIaKxhCEaOsj047tKntY5vD2MGmmCOp3eXwZEWq1+u 0bCs+A5icbn9qP5aTJPXlyZ8trpH1+wI+sTFFruEeHemdljB+SvNixO+FQ67+If/aBwJ DeP1ng4T5iV7NdXzZYA/C/MPcEXQG11BrQ8RmDAeMLHUCZxqv9JZJEW12IxB0lXtuka3 YykA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=4TidymBWQgp5CbsisEzVeEXMYJIv1PlnSlJiWeSpfaE=; b=HDvq5D2j6y76/P6UyyT/sHo6UgUcCtnqaoCzf6zQZhoKaQp1rRKgtcHrm6khtGXrlF LeDqyDvwgdrrtwjaznqxzXRqC8qdsK+sT+cX0t+uhfx9kReavFx+yFKp39W9DE79TqTH HaYksnxBP0kDdShjvbwyaGs7ROAALg8oSDnnudbK5ayGD3Aljz0hzThfC644GO4USxW9 uiDUXdGGcfawAXc6U0NZwVNKhkI4cZgEX7dT36PmwMDmOrN24LHPYMcj/hJ2TSBKP9yB 1ebfRSbBEY7hvTyESkydJldca3byeiHD+VqsW52yFUeo2g8s9yx5DLN5iVu57f9Fzqkb R0sQ== X-Gm-Message-State: AOAM530i8z1k2xI2el1ZTVUD7gOEhpq+jiXfnRpq5BL9PodBA4ykR424 FDWem9rWKYIhN/jhK2i1xeyLQQ== X-Google-Smtp-Source: ABdhPJyaGMUAmOIUpLDs7dMtEPFTGDP2BMDNyvOH3L33JvkbpSACHJuyGLah4mxTnMbAE5Mk0nWqgA== X-Received: by 2002:a37:652:: with SMTP id 79mr3503993qkg.163.1602359367685; Sat, 10 Oct 2020 12:49:27 -0700 (PDT) Received: from mutt-hbsd (pool-100-16-222-53.bltmmd.fios.verizon.net. [100.16.222.53]) by smtp.gmail.com with ESMTPSA id g16sm3960090qke.90.2020.10.10.12.49.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 10 Oct 2020 12:49:27 -0700 (PDT) Date: Sat, 10 Oct 2020 15:49:26 -0400 From: Shawn Webb To: Dimitry Andric Cc: FreeBSD Ports Subject: Re: OpenJDK ports and 13-CURRENT Message-ID: <20201010194926.jnypzmbpu33wilbl@mutt-hbsd> X-Operating-System: FreeBSD mutt-hbsd 13.0-CURRENT-HBSD FreeBSD 13.0-CURRENT-HBSD X-PGP-Key: http://pgp.mit.edu/pks/lookup?op=vindex&search=0xFF2E67A277F8E1FA References: <20201010190337.qtvivmpmzw4gtk3h@mutt-hbsd> <4ADAFC01-2148-48BE-AAE8-5E6A269C14CE@FreeBSD.org> <20201010192334.auepsizn3w57soes@mutt-hbsd> <8DD818E8-2569-4E2F-8BAD-143F8AE7FAE5@FreeBSD.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="5gn26ottxdfpoyi7" Content-Disposition: inline In-Reply-To: <8DD818E8-2569-4E2F-8BAD-143F8AE7FAE5@FreeBSD.org> X-Rspamd-Queue-Id: 4C7wWD4j2Vz4FLy X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=hardenedbsd.org header.s=google header.b=iSMhmXkb; dmarc=none; spf=pass (mx1.freebsd.org: domain of shawn.webb@hardenedbsd.org designates 2607:f8b0:4864:20::741 as permitted sender) smtp.mailfrom=shawn.webb@hardenedbsd.org X-Spamd-Result: default: False [-5.15 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[hardenedbsd.org:s=google]; NEURAL_HAM_MEDIUM(-0.99)[-0.985]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; NEURAL_HAM_LONG(-1.01)[-1.014]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-ports@freebsd.org]; DMARC_NA(0.00)[hardenedbsd.org]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[hardenedbsd.org:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::741:from]; NEURAL_HAM_SHORT(-1.05)[-1.054]; SIGNED_PGP(-2.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; MID_RHS_NOT_FQDN(0.50)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-ports]; RECEIVED_SPAMHAUS_PBL(0.00)[100.16.222.53:received] 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, 10 Oct 2020 19:49:29 -0000 --5gn26ottxdfpoyi7 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Oct 10, 2020 at 09:45:58PM +0200, Dimitry Andric wrote: > On 10 Oct 2020, at 21:23, Shawn Webb wrote: > >=20 > > On Sat, Oct 10, 2020 at 09:18:08PM +0200, Dimitry Andric wrote: > >> On 10 Oct 2020, at 21:03, Shawn Webb wrot= e: > >>> It appears the latest import of llvm 11.0.0 breaks the OpenJDK 12 and > >>> above ports. Is anyone tracking this breakage? > >>=20 > >> Define "break". :) I can't find any PR, so I don't think so. The latest > >> builds on the ports cluster seem to have succeeded, but even though the > >> ports builder says "head-amd64-default-job", it appears to compile with > >> clang 8.0.1, for some reason. Might be incorrect, or on purpose, I don= 't > >> know. > >=20 > > Log of the HardenedBSD 13-CURRENT/amd64 package > > build:http://ci-03.md.hardenedbsd.org/data/hardenedbsd-13_amd64-local/2= 020-10-09_14h46m02s/logs/errors/openjdk12-12.0.2+10.4_1.log > >=20 > > HardenedBSD has switched to a full llvm compiler toolchain. I wonder > > if that's the culprit? Using llvm-ar, llvm-nm, et al. > >=20 > > Googling for the duplicate symbol error brought me this result: > > https://www.mail-archive.com/freebsd-pkg-fallout@freebsd.org/msg1544005= =2Ehtml >=20 > Ah, that is -fno-common fallout, strange that there is no build breakage > reported in the FreeBSD ports build cluster? >=20 > From gcc 10 and clang 11 onwards, -fno-common is the default (this is > really a historical mistake, -fcommon should never have been default). >=20 > It can result in link errors, if duplicate symbols exist in object > files. There is a suprising amount of software that makes this very > basic mistake! >=20 > 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. Yup. Another victim: print/tex-luatex: https://git-01.md.hardenedbsd.org/HardenedBSD/hardenedbsd-ports/commit/229b= 7663bc82ff7e471dc1e19662f68d4226984a --=20 Shawn Webb Cofounder / Security Engineer HardenedBSD GPG Key ID: 0xFF2E67A277F8E1FA GPG Key Fingerprint: D206 BB45 15E0 9C49 0CF9 3633 C85B 0AF8 AB23 0FB2 https://git-01.md.hardenedbsd.org/HardenedBSD/pubkeys/src/branch/master/Sha= wn_Webb/03A4CBEBB82EA5A67D9F3853FF2E67A277F8E1FA.pub.asc --5gn26ottxdfpoyi7 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEA6TL67gupaZ9nzhT/y5nonf44foFAl+CEEMACgkQ/y5nonf4 4fq3Mw/9F5Pp5M41Nvy+P8fGowEkQtAhiLRyLcDxoevpQae8LRAcXcY56VrUUqv9 fQqwbGvxhcA4KrwEYkqeQGbr+GywFAIz9InIKuHSr6/kDtsa+FpG/q2IO7TjMfn6 KoxW77k8NijRBIjenfm9ROK7CzJ9bSQ/X4aKBiK1PVnkrKUIhUwgrelVsiuNaqTJ mfVlTdoOwMHK42T91aW9FhOZqxdNaJ6w+q86AF2zwP2PwrtbiwRJtx8z2MwILVwz N4GmdJ7f4oE6wNpmj789YLFjRLgHRYQ3Si0+sbOvobaI/qezCuKLoLF9hf4AyXaZ w6LFx8A1IVucoC9XlpIPC835P06KGEL8WHi3Uo28xbjcyftwqnn/1Ic5VKmR38YI ShV4je4rgYlmJJrpw8NbFvNbmeqxmS/7w08hFUq+5tza9EYPt94QbNtseCk7YepD MPqzkTtxK6RVvrpPfiQg+qHs3hFVMiY9A4XkhV9WBWKj+pOk4f4xmBOuJ1anGDBm cgt0OQRM5GEFpMNABQU1G5D3y3E6zgR/bingI4Fz0qaVrrmLX8UTWz2/VLXI5Xd4 rcdNodYPixQhw3guA8vbJvTVoBVZc7xQpA5C05O7DTILvHt82FaD1Mt2hElhauJC UHvZht9cyKFNrdvRYtiLPMUxj7wAxuVJVYqF4KfltOTj/7zbzzI= =JNao -----END PGP SIGNATURE----- --5gn26ottxdfpoyi7--