Date: Wed, 17 Nov 2021 21:20:45 +0100 From: Dimitry Andric <dim@FreeBSD.org> To: Stefan Esser <se@freebsd.org> Cc: FreeBSD CURRENT <freebsd-current@freebsd.org>, Jessica Clarke <jrtc27@FreeBSD.org> Subject: Re: Incompatible change in LLD13 causing link errors? Message-ID: <BC6602A8-ED51-4D2F-BD90-659BC1F979CB@FreeBSD.org> In-Reply-To: <a2207fd7-4b60-9c93-8e90-f2ee3bbe4adb@freebsd.org>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --] On 17 Nov 2021, at 21:07, Stefan Esser <se@freebsd.org> wrote: > > I have just received pkg-fallout for a port that has not been touched > for several months, specifically lang/silq. > > ld.lld: error: undefined hidden symbol: __start___minfo >>>> referenced by terminal.d >>>> silq.o:(ldc.register_dso) > > ld.lld: error: undefined hidden symbol: __stop___minfo >>>> referenced by terminal.d >>>> silq.o:(ldc.register_dso) > cc: error: linker command failed with exit code 1 (use -v to see invocation) > Error: /usr/bin/cc failed with status: 1 > *** Error code 1 > > This port builds correctly with LLD12 from a port, but fails with the > error message included above for both LLD13 from a port and LLD from > the FreeBSD-CURRENT base system. See https://bugs.llvm.org/show_bug.cgi?id=52384 where this is discussed. Executive summary is to add -Wl,-z,nostart-stop-gc to your LDFLAGS, for now at least. But as you can see in the upstream PR, not everybody is happy with them flipping the default to on. -Dimitry [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.2 iF0EARECAB0WIQR6tGLSzjX8bUI5T82wXqMKLiCWowUCYZVkHQAKCRCwXqMKLiCW o+YMAKCzEHGuUiWRzvuX1lqx0xTttwq7KACeKI3i4nOUGVxq6DIjtElsTusmtcw= =5nos -----END PGP SIGNATURE-----home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BC6602A8-ED51-4D2F-BD90-659BC1F979CB>
