Compilation of glibc-2.11 fails with gcc-4.3.4-r2 from the overlay hardened-development on my hardened amd64 system. The error seems related to ${WORKDIR}/build-amd64-x86_64-pc-linux-gnu-nptl/sunrpc/xbootparam_prot.stmp, but the error message is very unspecific. Reproducible: Always Steps to Reproduce: 1. 2. 3.
Created attachment 210606 [details] output of paludis --info sys-libs/glibc
Created attachment 210608 [details] bzip2 compressed build log of glibc-2.11
Check that you are using the flag-o-matic.eclass from the overlay for you are missing -fno-stack-protector to CFLAGS in the build log.
Problem resolved as in the above comment suggested. Thanks
*** Bug 293961 has been marked as a duplicate of this bug. ***
*** Bug 308967 has been marked as a duplicate of this bug. ***
*** Bug 317725 has been marked as a duplicate of this bug. ***
Created attachment 230039 [details] Fix the build error without change the flag-o-matic.eclass This patch fix the build error without a change to the hardened stuff in the flag-o-matic.eclass.
Created attachment 230041 [details, diff] The needed change for _filter-hardened() This patch is needed if we use filter-flag in the glibc build. gengor did make this code.
We need the fix in the tree to enable SSP for >gcc 4.X in the tree.
I tested the eblit patch in Comment #8 and it worked fine with the tree flag-o-matic. emerge -e world gave all the expected results. I vote to get ride of flag-o-matic.eclass in the overlay and use the eblit patch.
Created attachment 230737 [details, diff] Updated patch that only have append-cflag and a test-flags-CC This patch only use append-cflags $(test-flags-CC -fno-stack-protector)
Commited to the tree