From nobody Wed Nov 17 20:20:45 2021 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id D55FA185229C for ; Wed, 17 Nov 2021 20:20:59 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HvZ7b5PJLz4pH3; Wed, 17 Nov 2021 20:20:59 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "tensor.andric.com", Issuer "R3" (verified OK)) (Authenticated sender: dim) by smtp.freebsd.org (Postfix) with ESMTPSA id 7C0DEFBDD; Wed, 17 Nov 2021 20:20:59 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from smtpclient.apple (longrow.home.andric.com [192.168.0.17]) (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 0CC541857; Wed, 17 Nov 2021 21:20:58 +0100 (CET) From: Dimitry Andric Message-Id: Content-Type: multipart/signed; boundary="Apple-Mail=_3A7FC25C-77DF-4DA3-A5F2-0A9F62B6674C"; protocol="application/pgp-signature"; micalg=pgp-sha1 List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Subject: Re: Incompatible change in LLD13 causing link errors? Date: Wed, 17 Nov 2021 21:20:45 +0100 In-Reply-To: Cc: FreeBSD CURRENT , Jessica Clarke To: Stefan Esser References: X-Mailer: Apple Mail (2.3654.120.0.1.13) X-ThisMailContainsUnwantedMimeParts: N --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 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--