Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 43247 - lilo build fails with hardened gcc-3.3.3-r1
Summary: lilo build fails with hardened gcc-3.3.3-r1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Hardened (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Alexander Gabert (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-28 20:40 UTC by Antony Suter
Modified: 2004-09-23 18:27 UTC (History)
0 users

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


Attachments
patch to add "hardened" to lilo-22.5.8-r1.ebuild (lilo-22.5.8-r1.ebuild.patch,841 bytes, patch)
2004-02-28 20:43 UTC, Antony Suter
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Antony Suter 2004-02-28 20:40:17 UTC
With USE flag "hardened" set and gcc-3.3.3-r1 installed, sys-boot/lilo-22.5.8-r1 does not compile. Patch to add knowledge of USE flag "hardened" is added.

Reproducible: Always
Steps to Reproduce:
1. set USE flag "hardened" in /etc/make.conf
2. ebuild /usr/portage/sys-devel/gcc/gcc-3.3.3-r1.ebuild merge
3. ACCEPT_KEYWORDS="~x86" /usr/bin/emerge =sys-boot/lilo-22.5.8-r1

Actual Results:  
Compile fails with error like:
error: can't find a register in class `BREG' while reloading `asm'

Expected Results:  
Compiled successfully.
Comment 1 Antony Suter 2004-02-28 20:43:05 UTC
Created attachment 26550 [details, diff]
patch to add "hardened" to lilo-22.5.8-r1.ebuild

This proposed patch adds knowledge of the USE flag "hardened" to the file
/usr/portage/sys-boot/lilo/lilo-22.5.8-r1.ebuild
Comment 2 Antony Suter 2004-02-28 21:37:57 UTC
I have learnt that USE flag "hardened" is intended to be internal to the gcc ebuild. Instead USE flags "pic", "pie" and "ssp" should be used where appropriate. I will change the title of this bug report for accuracy.
Comment 3 Alexander Gabert (RETIRED) gentoo-dev 2004-03-01 06:57:07 UTC
can you try building lilo with CFLAGS="-static"

just a question
Comment 4 Alexander Gabert (RETIRED) gentoo-dev 2004-09-23 18:27:42 UTC
recent versions honour SSP and PIE building