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?
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.
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).
fixed in xen versions >=3.0.4, closing