Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 293721 - sys-libs/glibc-2.11 fails to compile with sys-devel/gcc-4.3.4-r2 from hardened overlay when not using hardened overlay eclasses
Summary: sys-libs/glibc-2.11 fails to compile with sys-devel/gcc-4.3.4-r2 from hardene...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Hardened (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: The Gentoo Linux Hardened Team
URL:
Whiteboard:
Keywords:
: 293961 308967 317725 (view as bug list)
Depends on:
Blocks: 318171
  Show dependency tree
 
Reported: 2009-11-19 11:49 UTC by Christian Apeltauer
Modified: 2010-06-16 01:45 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
output of paludis --info sys-libs/glibc (info,15.00 KB, text/plain)
2009-11-19 11:50 UTC, Christian Apeltauer
Details
bzip2 compressed build log of glibc-2.11 (1258176858-install-sys-libs_glibc-2.11:2.2::gentoo.out.bz2,165.85 KB, application/octet-stream)
2009-11-19 11:55 UTC, Christian Apeltauer
Details
Fix the build error without change the flag-o-matic.eclass (common.eblit.patch,746 bytes, text/plain)
2010-05-02 15:18 UTC, Magnus Granberg
Details
The needed change for _filter-hardened() (flag-o-matic.eclass.patch,1.92 KB, patch)
2010-05-02 15:26 UTC, Magnus Granberg
Details | Diff
Updated patch that only have append-cflag and a test-flags-CC (common.eblit.patch,713 bytes, patch)
2010-05-07 20:59 UTC, Magnus Granberg
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Apeltauer 2009-11-19 11:49:26 UTC
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.
Comment 1 Christian Apeltauer 2009-11-19 11:50:36 UTC
Created attachment 210606 [details]
output of paludis --info sys-libs/glibc
Comment 2 Christian Apeltauer 2009-11-19 11:55:28 UTC
Created attachment 210608 [details]
bzip2 compressed build log of glibc-2.11
Comment 3 Magnus Granberg gentoo-dev 2009-11-19 19:03:11 UTC
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.
Comment 4 Christian Apeltauer 2009-11-20 20:11:00 UTC
Problem resolved as in the above comment suggested.
Thanks
Comment 5 SpanKY gentoo-dev 2009-11-29 21:58:43 UTC
*** Bug 293961 has been marked as a duplicate of this bug. ***
Comment 6 Samuli Suominen (RETIRED) gentoo-dev 2010-03-11 13:00:42 UTC
*** Bug 308967 has been marked as a duplicate of this bug. ***
Comment 7 Magnus Granberg gentoo-dev 2010-04-29 21:06:10 UTC
*** Bug 317725 has been marked as a duplicate of this bug. ***
Comment 8 Magnus Granberg gentoo-dev 2010-05-02 15:18:25 UTC
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.
Comment 9 Magnus Granberg gentoo-dev 2010-05-02 15:26:51 UTC
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.
Comment 10 Magnus Granberg gentoo-dev 2010-05-02 16:17:47 UTC
We need the fix in the tree to enable SSP for >gcc 4.X in the tree.
Comment 11 Anthony Basile gentoo-dev 2010-05-02 23:30:58 UTC
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.
Comment 12 Magnus Granberg gentoo-dev 2010-05-07 20:59:48 UTC
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)
Comment 13 Magnus Granberg gentoo-dev 2010-06-16 01:45:12 UTC
Commited to the tree