Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 281002 - sys-libs/libstdc++-v3-3.3.6 build failed: trying to use system CPPFLAGS with self-compiled xgcc (gcc 3.3.6)
Summary: sys-libs/libstdc++-v3-3.3.6 build failed: trying to use system CPPFLAGS with ...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-10 14:20 UTC by Denis Kaganovich
Modified: 2009-08-15 17:34 UTC (History)
0 users

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


Attachments
libstdc++-v3-3.3.6.ebuild patch (libstdc++.nocppflags.ebuild.patch,325 bytes, patch)
2009-08-10 14:22 UTC, Denis Kaganovich
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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?