Created attachment 229833 [details] patch to restore lld 12.0 behaviour wrt start-stop-gc Note, this is an "inverse" exp-run - I am interested in ports that newly build with this change (rather than ports that newly fail). lld before 13.0 defaulted to -nostart-stop-gc, and the 13.0 update switched it to -start-stop-gc by default. Most issues relating to the LLVM 13 update were addressed via the exp-run in PR 258209, but there may have been some leaf port failures due to this lld change that were not addressed. This change restores the default to match lld 12.
These failures seem to be fixed by the patch: http://gohan03.nyi.freebsd.org/data/main-amd64-default-baseline/p95394a8fd25d_scbe9faa50b/logs/errors/igv-2.9.4.log http://gohan03.nyi.freebsd.org/data/main-amd64-default-baseline/p95394a8fd25d_scbe9faa50b/logs/errors/firebird25-client-2.5.9_1.log http://gohan03.nyi.freebsd.org/data/main-amd64-default-baseline/p95394a8fd25d_scbe9faa50b/logs/errors/dub-1.14.0.log http://gohan03.nyi.freebsd.org/data/main-amd64-default-baseline/p95394a8fd25d_scbe9faa50b/logs/errors/ghidra-9.1.log http://gohan03.nyi.freebsd.org/data/main-amd64-default-baseline/p95394a8fd25d_scbe9faa50b/logs/errors/apache-openoffice-4.1.11.log http://gohan03.nyi.freebsd.org/data/main-amd64-default-baseline/p95394a8fd25d_scbe9faa50b/logs/errors/apache-openoffice-devel-4.2.1633255994,4.log http://gohan03.nyi.freebsd.org/data/main-amd64-default-baseline/p95394a8fd25d_scbe9faa50b/logs/errors/pioneer-20210723_1.log http://gohan03.nyi.freebsd.org/data/main-amd64-default-baseline/p95394a8fd25d_scbe9faa50b/logs/errors/signald-0.15.0.log http://gohan03.nyi.freebsd.org/data/main-amd64-default-baseline/p95394a8fd25d_scbe9faa50b/logs/errors/onedrive-2.4.12.log http://gohan03.nyi.freebsd.org/data/main-amd64-default-baseline/p95394a8fd25d_scbe9faa50b/logs/errors/keepass-2.46.log http://gohan03.nyi.freebsd.org/data/main-amd64-default-baseline/p95394a8fd25d_scbe9faa50b/logs/errors/reptyr-0.8.0.log http://gohan03.nyi.freebsd.org/data/main-amd64-default-baseline/p95394a8fd25d_scbe9faa50b/logs/errors/gtk-sharp-beans-2.14.1_1.log http://gohan03.nyi.freebsd.org/data/main-amd64-default-baseline/p95394a8fd25d_scbe9faa50b/logs/errors/gtkd-3.9.0.log
devel/dub, x11-toolkits/gtkd, and net/onedrive are due to ldc (https://github.com/ldc-developers/ldc/issues/3861): `ld: error: undefined hidden symbol: __start_minfo`. (Quick workaround is to remove --gc-sections from ldc source) All other ports appear unrelated to the linker change.
(In reply to Fangrui Song from comment #2) Thanks for triaging these.
We have moved beyond lld 12/13 in FreeBSD