Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 176107 - app-emulation/xen-3.0.2 with USE=hardened dies b/c of -fno-stack-protector-all
Summary: app-emulation/xen-3.0.2 with USE=hardened dies b/c of -fno-stack-protector-all
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Xen Devs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-26 12:21 UTC by Tim Weber
Modified: 2007-08-26 23:56 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Weber 2007-04-26 12:21:33 UTC
Trying to emerge app-emulation/xen-3.0.2 on an ACCEPT_KEYWORDS="x86" system, app-emulation/xen{,-tools} and xen-sources added to package.keywords. I have USE="hardened" and gcc 4.1.1.-r3.

The error message is (sorry for brevity, no copy&paste available):
cc1: error: unrecognized command line option "-fno-stack-protector-all".

There are two sentences about this on gentoo-wiki which basically say "well, remove USE=hardened then": http://gentoo-wiki.com/HOWTO_Xen_and_Gentoo#gcc_.26_.27-fno-stack-protector-all.27_error
"Xen 3.0.2 has some problems with Hardended USE Flag. If you get error of gcc because of '-fno-stack-protector-all' option try remove hardended flag."

Since I think that this solution is as optimal as "if your Xen doesn't compile, don't install it", I'd be glad to hear if there are other solutions. Would using a ~x86 gcc help?
Comment 1 solar (RETIRED) gentoo-dev 2007-04-26 15:04:12 UTC
This package should not make decisions based on the 'hardened' use flag but rather by detecting runtime variables using flag-o-matic/toolchain and other eclasses.
Comment 2 Luca Lesinigo 2007-08-20 12:46:40 UTC
app-emulation/xen-3.0.4_p1 seems ok on hardened/amd64 profile with the obvious USE=hardened (see also the different but related bug #171670).
Comment 3 Micheal Marineau (RETIRED) gentoo-dev 2007-08-26 23:56:55 UTC
fixed in xen versions >=3.0.4, closing