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> References: <a2207fd7-4b60-9c93-8e90-f2ee3bbe4adb@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--Apple-Mail=_3A7FC25C-77DF-4DA3-A5F2-0A9F62B6674C Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 17 Nov 2021, at 21:07, Stefan Esser <se@freebsd.org> wrote: >=20 > I have just received pkg-fallout for a port that has not been touched > for several months, specifically lang/silq. >=20 > ld.lld: error: undefined hidden symbol: __start___minfo >>>> referenced by terminal.d >>>> silq.o:(ldc.register_dso) >=20 > 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 >=20 > 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=3D52384 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 --Apple-Mail=_3A7FC25C-77DF-4DA3-A5F2-0A9F62B6674C 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 iF0EARECAB0WIQR6tGLSzjX8bUI5T82wXqMKLiCWowUCYZVkHQAKCRCwXqMKLiCW o+YMAKCzEHGuUiWRzvuX1lqx0xTttwq7KACeKI3i4nOUGVxq6DIjtElsTusmtcw= =5nos -----END PGP SIGNATURE----- --Apple-Mail=_3A7FC25C-77DF-4DA3-A5F2-0A9F62B6674C--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BC6602A8-ED51-4D2F-BD90-659BC1F979CB>