Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 281002

Summary: sys-libs/libstdc++-v3-3.3.6 build failed: trying to use system CPPFLAGS with self-compiled xgcc (gcc 3.3.6)
Product: Gentoo Linux Reporter: Denis Kaganovich <mahatma>
Component: New packagesAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: RESOLVED INVALID    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: libstdc++-v3-3.3.6.ebuild patch

Description Denis Kaganovich 2009-08-10 14:20:25 UTC
sys-libs/libstdc++-v3-3.3.6 build failed: trying to use unfiltered system-wide CPPFLAGS with self-compiled xgcc (gcc 3.3.6).

To reproduce just add any "new" gcc flag into CPPFLAGS (-msse4.1 or -fivopts or -ftree-loop-linear):
CPPFLAGS="-ftree-loop-linear" emerge -1 libstdc++-v3

Solution: add 'CPPFLAGS=""' or 'CPPFLAGS="${CFLAGS}"' into "emake" commandline.
(attaching in patch form)


Reproducible: Always
Comment 1 Denis Kaganovich 2009-08-10 14:22:35 UTC
Created attachment 200847 [details, diff]
libstdc++-v3-3.3.6.ebuild patch
Comment 2 Ryan Hill (RETIRED) gentoo-dev 2009-08-15 17:34:28 UTC
Why are you putting those flags in there in the first place?  CPPFLAGS are flags that are passed to the preprocessor.  Those flags aren't preprocessor flags.  Are you mixing it up with CXXFLAGS?