Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Oct 2020 15:49:26 -0400
From:      Shawn Webb <shawn.webb@hardenedbsd.org>
To:        Dimitry Andric <dim@FreeBSD.org>
Cc:        FreeBSD Ports <freebsd-ports@freebsd.org>
Subject:   Re: OpenJDK ports and 13-CURRENT
Message-ID:  <20201010194926.jnypzmbpu33wilbl@mutt-hbsd>
In-Reply-To: <8DD818E8-2569-4E2F-8BAD-143F8AE7FAE5@FreeBSD.org>
References:  <20201010190337.qtvivmpmzw4gtk3h@mutt-hbsd> <4ADAFC01-2148-48BE-AAE8-5E6A269C14CE@FreeBSD.org> <20201010192334.auepsizn3w57soes@mutt-hbsd> <8DD818E8-2569-4E2F-8BAD-143F8AE7FAE5@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--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 <shawn.webb@hardenedbsd.org> wrote:
> >=20
> > On Sat, Oct 10, 2020 at 09:18:08PM +0200, Dimitry Andric wrote:
> >> On 10 Oct 2020, at 21:03, Shawn Webb <shawn.webb@hardenedbsd.org> 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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20201010194926.jnypzmbpu33wilbl>