Re: Incompatible change in LLD13 causing link errors?
Date: Wed, 17 Nov 2021 20:20:45 UTC
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