Created attachment 194651 [details] Patch to define libssp as part of gcclibs GCC includes libssp which we have historically linked into our libc(!), It appears this library is not really needed as it is meant to support FORTIFY_SOURCE but we never brought any way to link the wrapper functions. As discussed in https://reviews.freebsd.org/D15687, we should get away by building along with the other gcclibs only when GCC is built. Buildworld passes on current, but If you can please try a clean build with this patch we should confirm if some port is trying to link anything from there.
We can't build any port with the provided patch. checking whether the C compiler works... no configure: error: in `/wrkdirs/usr/ports/ports-mgmt/pkg/work/pkg-1.10.5': configure: error: C compiler cannot create executables
From config.log: configure:3586: checking whether the C compiler works configure:3608: cc -O2 -pipe -Wno-error -fstack-protector -fno-strict-aliasing -fstack-protector conftest.c >&5 /usr/bin/ld: error: cannot open /usr/lib/libssp_nonshared.a: No such file or directory cc: error: linker command failed with exit code 1 (use -v to see invocation)
Thanks it was good to know what is failing but I abandoned the revision, at least for now.
Created attachment 195162 [details] Define libssp as part of gcclibs and don't include libssp in libc Looking at this further, libssp_nonshared shouldn't be in libc at all.
Re-open: can you kindly test this new patch?
(In reply to Pedro F. Giffuni from comment #5) Nevermind .. I am having build issues.
Created attachment 206258 [details] Fix by adjusting libc.ldscript to not link libssp libc was bogusly linking libgcc_noshared when we were expecting simply to drop it. The issue seems to be in libc.ldscript. This patch works for all platforms except powerpc but jhibbits has confirmed the issue will go away once powerpc is moved to clang. An exp-run should work OK now.
New patch: should work on all platforms, except powerpc temporarily.
Exp-run is still not good, for instance checking whether the C compiler works... no configure: error: in `/wrkdirs/usr/ports/net-mgmt/net-snmp/work/net-snmp-5.7.3': configure: error: C compiler cannot create executables
(In reply to Antoine Brodin from comment #9) Thanks (back to drawing board)
(In reply to Antoine Brodin from comment #9) What does config.log say for the failing case?
Add kevans@; he is working on the issue. Glad to see renewed interest!
*** Bug 242950 has been marked as a duplicate of this bug. ***
Alternative committed as r356356.