Hi Gerald, > On Fri, 26 Apr 2024, Jonathan Wakely wrote: >> How are you testing on FreeBSD? >> >> When I build GCC trunk on FreeBSD 14.0 and try to run the libstdc++ >> testsuite it fails due to lots of these errors: >> >> Excess errors: >> /usr/local/bin/ld: /tmp//ccev946q.o: relocation R_X86_64_32 against >> symbol `_ZTIN10__cxxabiv115__forced_unwindE@@CXXABI_1.3.2' can not be >> used when making a PDE object; recompile with -fPIE >> /usr/local/bin/ld: failed to set dynamic section sizes: bad value > > my first reaction was to recommend using binutils instead of /usr/bin/ld > which is LLD 16.0.6 or similar (since a while ago FreeBSD switched to that > toolchain as part of the base system).
right: some time ago I tried bootstrapping trunk on FreeBSD 14.0 myself, which was a very rough journey unfortunately. I've filed a number of PRs for the issues found. They should all be referenced in PR target/112959 install.tex needs updates on FreeBSD which is primarily a call for documention so the next unwary non-FreeBSD developer won't run into all the same known issues again. Rainer -- ----------------------------------------------------------------------------- Rainer Orth, Center for Biotechnology, Bielefeld University