Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Nov 2021 22:44:46 +0100
From:      Stefan Esser <se@freebsd.org>
To:        Dimitry Andric <dim@FreeBSD.org>, acm@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:  <51a2d269-53c3-4bee-a69d-86b36f436e04@freebsd.org>
In-Reply-To: <BC6602A8-ED51-4D2F-BD90-659BC1F979CB@FreeBSD.org>
References:  <a2207fd7-4b60-9c93-8e90-f2ee3bbe4adb@freebsd.org> <BC6602A8-ED51-4D2F-BD90-659BC1F979CB@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--------------0h4060H0KBJoJCwmMgzYqH8n
Content-Type: multipart/mixed; boundary="------------wrCLEdGwalYcgERdjhKakvxF";
 protected-headers="v1"
From: Stefan Esser <se@freebsd.org>
To: Dimitry Andric <dim@FreeBSD.org>, acm@FreeBSD.org
Cc: FreeBSD CURRENT <freebsd-current@freebsd.org>,
 Jessica Clarke <jrtc27@FreeBSD.org>
Message-ID: <51a2d269-53c3-4bee-a69d-86b36f436e04@freebsd.org>
Subject: Re: Incompatible change in LLD13 causing link errors?
References: <a2207fd7-4b60-9c93-8e90-f2ee3bbe4adb@freebsd.org>
 <BC6602A8-ED51-4D2F-BD90-659BC1F979CB@FreeBSD.org>
In-Reply-To: <BC6602A8-ED51-4D2F-BD90-659BC1F979CB@FreeBSD.org>

--------------wrCLEdGwalYcgERdjhKakvxF
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable


Am 17.11.21 um 21:20 schrieb Dimitry Andric:
> 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 invoc=
ation)
>> 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.
>=20
> See https://bugs.llvm.org/show_bug.cgi?id=3D52384 where this is discuss=
ed.
> 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.

Hi Dimitry,

thank you for the quick reply!

Seems that the breakage of LDC had been noticed (by Jessica?) a few
weeks ago, and that a possible solution could be to build LDC with
LLVM>=3D13.0.0.

But apparently LDC-1.23.0 cannot be built with llvm13, and a naive
attempt to upgrade the LDC port to 1.28.0 failed (MAINTAINER in CC).

Since LDC currently depends on LLVM10 I'll just add that as a
dependency to my failing port and hard-code lld10 as the linker
to use.

A better fix could be to import the (apparently not yet completely
accepted) patch

	https://github.com/ldc-developers/ldc/pull/3850/

to explicitly define the garbage collected symbols in rt.dso into
LDC.

Anyway, my lang/silq port seems to be fixed by using llvm10 (poudriere
test builds ongoing).

Regards, STefan

--------------wrCLEdGwalYcgERdjhKakvxF--

--------------0h4060H0KBJoJCwmMgzYqH8n
Content-Type: application/pgp-signature; name="OpenPGP_signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="OpenPGP_signature"

-----BEGIN PGP SIGNATURE-----

wsB5BAABCAAjFiEEo3HqZZwL7MgrcVMTR+u171r99UQFAmGVd84FAwAAAAAACgkQR+u171r99USv
Ogf9GIibyq+in4WG+GEgjfrphhQF2vBs2EynuiZnjIIc9I7rUrvkFWTd2/zG1ES/X/0oXO+t3Cn8
RFq4BWmOiHmGxsrwx5j5/QKoDx/D1PxuxkDEZq3h2usAlPI0CqDEojKl1eXn/HjQ2b5pxuFVK8gH
kkSi5z008/dkjScWWzxuM5f8Pel7kPkHnvv6jegb7/cXy4PN+ufQdL5BOqTMOswcz7ZCvD2fQQKn
CbSTPr9fZfMe2x9O5+UlDLTbKRJUqUZ9d5GFb3LHmZUsY/1343i3DRg78SUOXCD+GoxtEVVLnRIQ
Eti5SDygIzi/EQUKziXiVtu/eFDMHgTW6UAT2guUpQ==
=bYnJ
-----END PGP SIGNATURE-----

--------------0h4060H0KBJoJCwmMgzYqH8n--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?51a2d269-53c3-4bee-a69d-86b36f436e04>