Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 191088 - Gentoo glibc multilibs break gcc-4.3+
Summary: Gentoo glibc multilibs break gcc-4.3+
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
: 201490 213771 213869 218748 225545 225585 225641 225667 269487 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-09-02 20:25 UTC by Torsten Kaiser
Modified: 2009-11-04 23:05 UTC (History)
22 users (show)

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 Torsten Kaiser 2007-09-02 20:25:01 UTC
If I try any of the toolchain-overlay gcc-4.3 snapshots I get the following error:
libtool: compile:  /var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070831/work/build/./gcc/xgcc -shared-libgcc -B/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070831/work/build/./gcc -nostdinc++ -L/var/tmp/portage/s
ys-devel/gcc-4.3.0_alpha20070831/work/build/x86_64-pc-linux-gnu/libstdc++-v3/src -L/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070831/work/build/x86_64-pc-linux-gnu/libstdc++-v3/src/.libs -B/usr/x86_64-pc-linu
x-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/ -isystem /usr/x86_64-pc-linux-gnu/include -isystem /usr/x86_64-pc-linux-gnu/sys-include -I/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070831/work/build/x86_64-pc-linu
x-gnu/libstdc++-v3/include/x86_64-pc-linux-gnu -I/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070831/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include -I/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070831/work
/gcc-4.3-20070831/libstdc++-v3/libsupc++ -fno-implicit-templates -Wall -Wextra -Wwrite-strings -Wcast-qual -fdiagnostics-show-location=once -ffunction-sections -fdata-sections -O2 -march=opteron -pipe -D_GNU_S
OURCE -c /var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070831/work/gcc-4.3-20070831/libstdc++-v3/src/codecvt.cc  -fPIC -DPIC -o .libs/codecvt.o
In file included from /var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070831/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/char_traits.h:48,
                 from /var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070831/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/string:47,
                 from /var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070831/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/locale_classes.h:47,
                 from /var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070831/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/locale:46,
                 from /var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070831/work/gcc-4.3-20070831/libstdc++-v3/src/codecvt.cc:30:
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070831/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:101: error: '::fpos_t' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070831/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:103: error: '::clearerr' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070831/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:104: error: '::fclose' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070831/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:105: error: '::feof' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070831/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:106: error: '::ferror' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070831/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:107: error: '::fflush' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070831/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:108: error: '::fgetc' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070831/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:109: error: '::fgetpos' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070831/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:110: error: '::fgets' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070831/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:111: error: '::fopen' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070831/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:112: error: '::fprintf' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070831/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:113: error: '::fputc' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070831/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:114: error: '::fputs' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070831/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:115: error: '::fread' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070831/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:116: error: '::freopen' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070831/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:117: error: '::fscanf' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070831/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:118: error: '::fseek' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070831/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:119: error: '::fsetpos' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070831/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:120: error: '::ftell' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070831/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:121: error: '::fwrite' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070831/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:122: error: '::getc' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070831/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:123: error: '::getchar' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070831/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:124: error: '::gets' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070831/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:125: error: '::perror' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070831/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:126: error: '::printf' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070831/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:127: error: '::putc' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070831/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:128: error: '::putchar' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070831/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:129: error: '::puts' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070831/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:130: error: '::remove' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070831/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:131: error: '::rename' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070831/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:132: error: '::rewind' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070831/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:133: error: '::scanf' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070831/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:134: error: '::setbuf' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070831/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:135: error: '::setvbuf' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070831/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:136: error: '::sprintf' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070831/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:137: error: '::sscanf' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070831/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:138: error: '::tmpfile' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070831/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:139: error: '::tmpnam' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070831/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:140: error: '::ungetc' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070831/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:141: error: '::vfprintf' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070831/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:142: error: '::vprintf' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070831/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:143: error: '::vsprintf' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070831/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:170: error: '::snprintf' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070831/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:171: error: '::vfscanf' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070831/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:172: error: '::vscanf' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070831/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:173: error: '::vsnprintf' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070831/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:174: error: '::vsscanf' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070831/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:181: error: '__gnu_cxx::snprintf' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070831/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:182: error: '__gnu_cxx::vfscanf' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070831/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:183: error: '__gnu_cxx::vscanf' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070831/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:184: error: '__gnu_cxx::vsnprintf' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070831/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:185: error: '__gnu_cxx::vsscanf' has not been declared
In file included from /var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070831/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/string:47,
                 from /var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070831/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/locale_classes.h:47,
                 from /var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070831/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/locale:46,
                 from /var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070831/work/gcc-4.3-20070831/libstdc++-v3/src/codecvt.cc:30:
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070831/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/char_traits.h: In static member function 'static typename __gnu_cxx::_Char_types<_CharT>::int_type __gnu_cxx::char_traits<_CharT>::eof()':
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070831/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/char_traits.h:141: error: 'EOF' was not declared in this scope
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070831/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/char_traits.h: In static member function 'static int std::char_traits<char>::eof()':
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070831/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/char_traits.h:293: error: 'EOF' was not declared in this scope
make[4]: *** [codecvt.lo] Error 1
make[4]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070831/work/build/x86_64-pc-linux-gnu/libstdc++-v3/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070831/work/build/x86_64-pc-linux-gnu/libstdc++-v3'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070831/work/build/x86_64-pc-linux-gnu/libstdc++-v3'
make[1]: *** [all-target-libstdc++-v3] Error 2
make[1]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070831/work/build'
make: *** [profiledbootstrap] Error 2

This has been posted to the GCC-Bugzilla as:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30915
There it was marked as INVALID, because the source of the problem was determined as the Gentoo multilib setup.

In the GCC-Bug there is a possible patch, but I can't see that patch being included in gcc, it looks like it would make much more sense in the gentoo patchset.

I also tried to find out more why this breaks, here is what I noticed:
It breaks, because fixincludes from gcc thinks the gentoo stdio.h is broken and needs fixing. But that fix is a rather harmless wrapper, that should normaly just be ignored. But: This wrapper prevents stdio.h from being included twice, and that is just what will happen with the failing .c file.
I modified the "fixed" stdio.h to output a warning each time it is included and it shows the following output:
In file included from /var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070831/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:50,
                 from /var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070831/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/char_traits.h:48,
                 from /var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070831/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/string:47,
                 from /var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070831/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/locale_classes.h:47,
                 from /var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070831/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/locale:46,
                 from /var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070831/work/gcc-4.3-20070831/libstdc++-v3/src/codecvt.cc:30:
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070831/work/build/./gcc/include-fixed/stdio.h:13:2: warning: #warning bla
In file included from /var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070831/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:50,
                 from /var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070831/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/ios_base.h:49,
                 from /var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070831/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/locale_facets.h:50,
                 from /var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070831/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/locale:47,
                 from /var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070831/work/gcc-4.3-20070831/libstdc++-v3/src/codecvt.cc:30:
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20070831/work/build/./gcc/include-fixed/stdio.h:13:2: warning: #warning bla

The when the normal gcc build includes stdio.h a second time it will be skipped because of the fixinclude-fix and so the definitions of ::fpos_t etc. will be missing in one namespace.

So I am opening this bug to ask the toolchain maintainer, if the fix from http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30915 (or something similar that prevents fixincludes from touching the gentoo-multilib-stdio.h) can be included in the gcc-4.3-ebuilds, or if I should file a bug in the gcc bugzilla that they fix the wrapper that fixinclude inserts.
Comment 1 SpanKY gentoo-dev 2007-09-02 21:02:35 UTC
no idea why Jakub is unable to properly sort bugs
Comment 2 gent_bz 2007-11-06 23:24:28 UTC
I've been seeing this bug with some crossdev builds.
Comment 3 Torsten Kaiser 2007-12-22 16:33:01 UTC
Since around october I'm no longer seeing this bug on native builds. (I did not try any crosscompiles)

Instead is later failed when building the precompiled header stdc++.h.
It seems to generate borken definitions for the builtin constants __DBL_MAX__, __DBL_DENORM_MIN__ and __LDBL_MAX__.
I did not report this, as the system I was trying to build the GCC-4.3 was using -ffast-math and that looked related.
But after not even getting this fixed by rebuilding glibc, gmp and mpfr with different gccs I finally tried this on my stable amd64 system, where I never used -ffast-math. The error happend there too, so this doesn't seemed to relate to this (bad) flag.

error output from the stable amd64 system:
make[4]: Entering directory `/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071221/work/build/x86_64-pc-li
nux-gnu/libstdc++-v3/include'
if [ ! -d "./x86_64-pc-linux-gnu/bits/stdc++.h.gch" ]; then \
          mkdir -p ./x86_64-pc-linux-gnu/bits/stdc++.h.gch; \
        fi; \
        /var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071221/work/build/./gcc/xgcc -shared-libgcc -B/var/
tmp/portage/sys-devel/gcc-4.3.0_alpha20071221/work/build/./gcc -nostdinc++ -L/var/tmp/portage/sys-devel
/gcc-4.3.0_alpha20071221/work/build/x86_64-pc-linux-gnu/libstdc++-v3/src -L/var/tmp/portage/sys-devel/g
cc-4.3.0_alpha20071221/work/build/x86_64-pc-linux-gnu/libstdc++-v3/src/.libs -B/usr/x86_64-pc-linux-gnu
/bin/ -B/usr/x86_64-pc-linux-gnu/lib/ -isystem /usr/x86_64-pc-linux-gnu/include -isystem /usr/x86_64-pc
-linux-gnu/sys-include -Winvalid-pch -x c++-header -pipe -march=athlon64 -O2   -D_GNU_SOURCE -I/var/tmp
/portage/sys-devel/gcc-4.3.0_alpha20071221/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/x86_64-p
c-linux-gnu -I/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071221/work/build/x86_64-pc-linux-gnu/libstdc
++-v3/include -I/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071221/work/gcc-4.3-20071221/libstdc++-v3/l
ibsupc++ -O0 -g /var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071221/work/gcc-4.3-20071221/libstdc++-v3/i
nclude/precompiled/stdc++.h -o x86_64-pc-linux-gnu/bits/stdc++.h.gch/O0g.gch
In file included from /var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071221/work/gcc-4.3-20071221/libstdc+
+-v3/include/precompiled/stdc++.h:79:
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071221/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/
limits:1047: error: stray '\275' in program
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071221/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/
limits:1079: error: stray '\230' in program
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071221/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/
limits:1104: error: stray '\232' in program
make[4]: *** [x86_64-pc-linux-gnu/bits/stdc++.h.gch/O0g.gch] Error 1
make[4]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071221/work/build/x86_64-pc-lin
ux-gnu/libstdc++-v3/include'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071221/work/build/x86_64-pc-lin
ux-gnu/libstdc++-v3'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071221/work/build/x86_64-pc-lin
ux-gnu/libstdc++-v3'
make[1]: *** [all-target-libstdc++-v3] Error 2
make[1]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071221/work/build'
make: *** [profiledbootstrap] Error 2 
 *
 * ERROR: sys-devel/gcc-4.3.0_alpha20071221 failed.

Whats interessting is, that some of the first stages build correctly:
bardioc build # echo __DBL_MAX__|stage1-gcc/cc1 -E
# 1 "<stdin>"
# 1 "<built-in>"
# 1 "<command-line>"
# 1 "<stdin>"
1.7976931348623157e+308

bardioc build # echo __DBL_MAX__|prev-gcc/cc1 -E
# 1 "<stdin>"
# 1 "<built-in>"
# 1 "<command-line>"
# 1 "<stdin>"
1.7976931348623157e+308

bardioc build # echo __DBL_MAX__|gcc/cc1 -E
# 1 "<stdin>"
# 1 "<built-in>"
# 1 "<command-line>"
# 1 "<stdin>"
½.3200111555710001e+310

(Yes, gcc really puts a ½ into this number constant. Thats the "stray '\275'" that created the above error.)

bardioc build # grep "^CFLAGS =" *gcc/Makefile
gcc/Makefile:CFLAGS = -pipe -march=athlon64 -O2 -fprofile-use
prev-gcc/Makefile:CFLAGS = -pipe -march=athlon64 -O2 -fprofile-generate
stage1-gcc/Makefile:CFLAGS =


This also looks gentoo related, as the only thing I found like this is Bug 33992 from the gcc bugzilla and that is also a gentoo system.

Patch: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33992#c10
(Changes -O2 to -O1 in toolchain.eclass, I have not tested this myself, as I did not want to mess with this global eclass...)
Comment 4 Torsten Kaiser 2007-12-22 19:38:45 UTC
Addendum:
Because of a bug/feature in the flag-rewriting logic it is not necessary to patch toolchain.eclass.
The rewrite "replace-flags -O? -O2" does not match -O which is identical to -O1. So changing -O3 to -O in make.conf has the same effect as the patch.

Result: same error as in the initial report. So the O2-optimizer-bug only hid the gentoo multilib bug, that bug is still here.

The still broken crosscompiles probably didn't hit this, because they can't use 'profiledbootstrap' and the other bug seems to break only(?) in the "use profile"-stage. (see toolchain.eclass, gcc_do_make() )
Comment 5 Ryan Hill (RETIRED) gentoo-dev 2008-02-09 21:26:55 UTC
that's a completely different bug.  this one is about the multilib patch.
Comment 6 Ben de Groot (RETIRED) gentoo-dev 2008-03-17 19:48:51 UTC
As 4.3.0 is now in the tree, I thought I might test it, but I also run into this problem. Same error as in the original report above.

ben@hummingbird ~ % emerge --info
Portage 2.1.4.4 (default-linux/amd64/dev/2008.0/desktop, gcc-4.2.3, glibc-2.7-r1, 2.6.24-hh1 x86_64)
=================================================================
System uname: 2.6.24-hh1 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 6000+
Timestamp of tree: Mon, 17 Mar 2008 11:46:01 +0000
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.5
dev-lang/python:     2.4.4-r6, 2.5.1-r5
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.24
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -msse3 -O3 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=athlon64 -msse3 -O3 -pipe"
DISTDIR="/var/distfiles"
FEATURES="autoaddcvs collision-protect cvs distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_GB.UTF-8"
LC_ALL="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en_GB"
MAKEOPTS="-j4"
PKGDIR="/var/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/repos/berkano /var/repos/pythonhead /var/repos/sunrise /var/repos/local"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext 7zip S3TC X a52 aac acl acpi aften alsa amd64 amr amrnb amrwb aotuv asf ass avi bash-completion berkdb branding browserplugin bzip2 cairo caps cdda cddb cdr cli cracklib crypt curl dbus divx dlloader dri dts dv dvd dvdnav dvdr dvdread encode exif expat fam fastcgi fbcon firefox flac fontconfig fortran ftp fuse gdbm gif glep glib glibc-compat20 glibc-omitfp glitz gpg gpgme gpm hal html icecast iconv icq icu id3 id3tag idn image innodb jabber javascript jpeg kde lame largefile ldap libsamplerate libssh2 libwww libyaml lm_sensors lua lzo mad matroska midi mikmod mime mixer mmx mmxext mng mod_python mozsvg mp2 mp3 mp4 mp4live mpd mpeg mpeg2 mplayer msn mudflap musepack musicbrainz nano-syntax ncurses neon nepomuk nls no-old-linux nptl nptlonly nsplugin nvidia offensive ogg opengl openmp oss pam pcre pdf pdflib perl php png posix python qt3 qt3support qt4 quicktime readline reflection reiser4 replaygain ruby sdl session spell spl sqlite sqlite3 srt sse sse2 ssl startup-notification subtitles subversion svg tcpd themes theora threads threadsafe tidy tiff timezone toolbar trayicon truetype tunepimp twisted unicode upnp usb userlocales utf8 vim-syntax vim-with-x vorbis vte wav wavpack webdav wifi wma wmf wmp x264 xcomposite xiph xml xmlreader xmlrpc xmlwriter xorg xsl xslt xv xvid zip zlib zsh-completion" ALSA_CARDS="hda-intel usb-audio" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB" USERLAND="GNU" VIDEO_CARDS="fbdev nv nvidia vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Comment 7 Mikko C. 2008-03-17 20:57:25 UTC
I can confirm this bug with the 4.3.0 ebuild in portage.
I solved it by applying the patch provided here: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30915

emerge --info:
Portage 2.1.4.4 (default-linux/amd64/2006.1/desktop, gcc-4.2.3, glibc-2.7-r1, 2.6.24-gentoo-r3 x86_64)
=================================================================
System uname: 2.6.24-gentoo-r3 x86_64 Intel(R) Core(TM)2 CPU T7200 @ 2.00GHz
Timestamp of tree: Mon, 17 Mar 2008 14:00:01 +0000
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.4
dev-lang/python:     2.4.4-r9, 2.5.1-r5
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.24
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/svn/env /usr/kde/svn/share/config /usr/kde/svn/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.ovh.net/gentoo-distfiles/ ftp://pandemonium.tiscali.de/pub/gentoo/ http://mirror.ing.unibo.it/gentoo/ ftp://mirror.ing.unibo.it/gentoo/ "
LANG="it_IT.UTF-8"
LINGUAS="it"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/berkano /usr/portage/local/layman/sunrise /usr/portage/local/layman/portato /usr/portage/local/layman/plasmoids-kde-svn /usr/portage/local/layman/kde /usr/portage/local/layman/minefield /usr/portage/local/layman/minefield /usr/portage/local /usr/portage/local/qt /usr/portage/local/kde4-additional"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X Xaw3d a52 aac accessibility acpi alsa amarok amd64 amd64codecs archive asf audiofile automount autoreplace avi bash-completion browserplugin cairo cdda cddb cdparanoia cdr cdrom cli clucene cracklib crypt curl cursors cvs dbus dell divx dlloader dri dvd dvdr dvdread encode fam fat ffmpeg flac fortran fuse gcj gdbm gif glitz gpm gtk2 hal iconv ipw3945 jack java jfs jpeg kde kdeenablefinal kdm ldap lm_sensors logitech-mouse mad messenger midi mikmod modplug mozilla mp2 mp3 mp4 mpeg mplayermplayer-bin msn mtp mudflap musicbrainz ncurses njb nls nowlistening nptl nptlonly nsplugin ntfs ogg opengl openmp oss pcre pdf pdflib perl png python qt3 qt4 quicktime rar readline realmedia reflection reiser4 reiserfs ruby samba sdl session smp sndfile spell spl sqlite3 ssl subtitles subversion svg symlink syslog taglib tagwriting tcpd theora truetype type1 udev unicodeunzip usb vorbis wavpack wifi winbind wireshark wma wmp x264 xcomposite xfs xine xml xorg xv xvid zip" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear metermulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="mouse keyboard evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it" USERLAND="GNU" VIDEO_CARDS="vesa fglrx"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 8 SpanKY gentoo-dev 2008-03-18 11:38:18 UTC
*** Bug 213771 has been marked as a duplicate of this bug. ***
Comment 9 SpanKY gentoo-dev 2008-03-19 02:10:57 UTC
*** Bug 213869 has been marked as a duplicate of this bug. ***
Comment 10 SpanKY gentoo-dev 2008-03-23 15:13:37 UTC
fixed in glibc-2.7-r2
Comment 11 Ryan Hill (RETIRED) gentoo-dev 2008-03-24 04:30:41 UTC
sorry, it doesn't look like it worked. :/  we're still getting the same failure.
Comment 12 SpanKY gentoo-dev 2008-03-24 07:28:02 UTC
verify your headers no longer refer to gentoo-multilib

gcc-4.3.0 builds fine on my amd64 box
Comment 13 Donnie Berkholz (RETIRED) gentoo-dev 2008-03-24 18:03:03 UTC
(In reply to comment #12)
> verify your headers no longer refer to gentoo-multilib

Mine still have references all over the place to gentoo-multilib, and I've got the same prob as Ryan.

> gcc-4.3.0 builds fine on my amd64 box

Can't reproduce that.

onnie@comet $ qlist -I -v glibc
sys-libs/glibc-2.7-r2
donnie@comet $ grep gentoo-multilib -r .
./argz.h:# include <gentoo-multilib/x86/argz.h>
./argz.h:# include <gentoo-multilib/amd64/argz.h>
./utime.h:# include <gentoo-multilib/x86/utime.h>
./utime.h:# include <gentoo-multilib/amd64/utime.h>
./wordexp.h:# include <gentoo-multilib/x86/wordexp.h>
./wordexp.h:# include <gentoo-multilib/amd64/wordexp.h>
./printf.h:# include <gentoo-multilib/x86/printf.h>
./printf.h:# include <gentoo-multilib/amd64/printf.h>
./nl_types.h:# include <gentoo-multilib/x86/nl_types.h>
./nl_types.h:# include <gentoo-multilib/amd64/nl_types.h>
./wctype.h:# include <gentoo-multilib/x86/wctype.h>
./wctype.h:# include <gentoo-multilib/amd64/wctype.h>
./strings.h:# include <gentoo-multilib/x86/strings.h>
./strings.h:# include <gentoo-multilib/amd64/strings.h>

... etc
Comment 14 SpanKY gentoo-dev 2008-03-24 19:37:18 UTC
hrm, implicit eblit version ordering caused the wrong eblit to get picked up
Comment 15 SpanKY gentoo-dev 2008-03-24 19:44:32 UTC
cvs up and try again eh
Comment 16 Ryan Hill (RETIRED) gentoo-dev 2008-03-25 02:53:35 UTC
woot!
Comment 17 SpanKY gentoo-dev 2008-03-25 13:01:23 UTC
i'd prefer to not revbump glibc yet again just to fix building a masked package on a subset of systems ... so if someone hits this answer, i say we tell them to rebuild glibc manually
Comment 18 Matthias Langer 2008-05-04 14:01:11 UTC
(In reply to comment #10)
> fixed in glibc-2.7-r2

why does gcc-4.3.0 not depend on >=sys-libs/glibc-2.7-r2 then?
Comment 19 Eric Thibodeau 2008-05-11 13:44:02 UTC
*** Bug 218748 has been marked as a duplicate of this bug. ***
Comment 20 Matteo Azzali (RETIRED) gentoo-dev 2008-06-09 12:09:49 UTC
*** Bug 225545 has been marked as a duplicate of this bug. ***
Comment 21 SpanKY gentoo-dev 2008-06-09 18:38:19 UTC
*** Bug 225585 has been marked as a duplicate of this bug. ***
Comment 22 SpanKY gentoo-dev 2008-06-09 23:52:27 UTC
*** Bug 225667 has been marked as a duplicate of this bug. ***
Comment 23 SpanKY gentoo-dev 2008-06-09 23:52:58 UTC
*** Bug 225641 has been marked as a duplicate of this bug. ***
Comment 24 Emopig 2008-06-11 11:48:01 UTC
Why is this bug marked as FIXED? Just look at the number of dupes recently and it is clear it OBVIOUSLY IS NOT. I ran into this _exact_ same build error today, as posted last September by Torsten.

What is the fix for this issue? I know there is a patch for GCC that supposedly fixes this but it has *not* hit the portage tree, so what is going on?

This is NOT fixed in glibc-2.7-r2, as I have that version emerged and upgrades from 4.2.4 to 4.3.1 are still broken on ~amd64-multilib!

From reading this problem seems possibly related to this:
http://bugs.gentoo.org/show_bug.cgi?id=201490
Comment 25 Harrison Metzger 2008-06-11 13:55:30 UTC
I compiled GCC 4.3.1 fine yesterday. I did an emerge --sync. After that when I went to update I noticed that GCC 4.3.1 wanted to pull in glibc 2.8 which. With that glibc installed, it builds fine. Try it out and let us know.
Comment 26 Craig Goodrich 2008-06-11 19:32:12 UTC
(In reply to comment #25)
> I compiled GCC 4.3.1 fine yesterday. I did an emerge --sync. After that when I
> went to update I noticed that GCC 4.3.1 wanted to pull in glibc 2.8 which. With
> that glibc installed, it builds fine. Try it out and let us know.
> 

Built fine for me, too; apparently glibc 2.08 fixes it.  142 minutes total (glibc+gcc) on a dual AMD64, Ouch!  Now if GCC would only support a parallel build...

Thanks, guys.
Comment 27 Michael Haubenwallner (RETIRED) gentoo-dev 2008-08-14 07:23:12 UTC
*** Bug 201490 has been marked as a duplicate of this bug. ***
Comment 28 Peter Alfredsen (RETIRED) gentoo-dev 2009-05-12 09:11:47 UTC
*** Bug 269487 has been marked as a duplicate of this bug. ***
Comment 29 Lars 2009-11-04 22:34:40 UTC
REOPEN!
the bug is still out here with gcc-4.3.4 and glibc-2.9_p20081201-r2
:-/

Current make.profile symlink:
  default/linux/amd64/10.0/desktop
Comment 30 Lars 2009-11-04 22:52:06 UTC
some of the output:
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/include/g++-v4/bits/char_traits.h:48,                                                                           
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/include/g++-v4/ios:46,                                                                                          
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/include/g++-v4/ostream:45,                                                                                      
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/include/g++-v4/iostream:45,                                                                                     
                 from ./../common/inc/bank_checker.h:18,                                                                                                                     
                 from src/bank_checker.cpp:15:                                                                                                                               
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/include/g++-v4/cstdio:101: error: ‘::fpos_t’ has not been declared                                                                    
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/include/g++-v4/cstdio:103: error: ‘::clearerr’ has not been declared                                                                  
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/include/g++-v4/cstdio:104: error: ‘::fclose’ has not been declared                                                                    
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/include/g++-v4/cstdio:105: error: ‘::feof’ has not been declared                                                                      
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/include/g++-v4/cstdio:106: error: ‘::ferror’ has not been declared





emerge --info

Portage 2.1.6.13 (default/linux/amd64/10.0/desktop, gcc-4.3.4, glibc-2.9_p20081201-r2, 2.6.30-gentoo-r5de x86_64)
=================================================================                                                
System uname: Linux-2.6.30-gentoo-r5de-x86_64-Intel-R-_Core-TM-2_Duo_CPU_P7550_@_2.26GHz-with-gentoo-1.12.11.1   
Timestamp of tree: Wed, 04 Nov 2009 01:45:02 +0000                                                               
app-shells/bash:     4.0_p28                                                                                     
dev-java/java-config: 2.1.9-r1                                                                                   
dev-lang/python:     2.6.2-r1                                                                                    
dev-util/cmake:      2.6.4                                                                                       
sys-apps/baselayout: 1.12.11.1                                                                                   
sys-apps/sandbox:    1.6-r2                                                                                      
sys-devel/autoconf:  2.13, 2.63-r1                                                                               
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2                                                        
sys-devel/binutils:  2.18-r3                                                                                     
sys-devel/gcc-config: 1.4.1                                                                                      
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer -msse -msse2 -msse3 -mmmx"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=native -O2 -pipe -fomit-frame-pointer -msse -msse2 -msse3 -mmmx"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://de-mirror.org/distro/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo "
LANG="en_US.utf8"
LC_ALL="en_US.utf8"
LDFLAGS="-Wl,-O1"
LINGUAS="de"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://manifest/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 ao apache2 apm arts audiofile bash-completion berkdb bidi bluetooth branding bzip2 cairo cdda cdinstall cdio cdparanoia cdr chm cli consolekit cracklib crypt css cups dbus dga dirac djvu dri dts dv dvd dvdr dvdread ebook eds emboss enblend encode evo fam ffmpeg firefox flac fortran freetype ftp gcj gdbm gif gimp gnuplot gnutls gpm gstreamer gtk hal history httpd iconv icq ieee1394 ilbc imap irc jabber java javascript jpeg jpeg2k kde kpathsea kqemu kvm lame laptop latex libnotify libwww lirc live lxc mad matroska mbrola mikmod mime mjpeg mmx mng modules mp3 mp4 mpeg mplayer mudflap multilib musepack musicbrainz mysql nas ncurses nls nntp nocd npp nptl nptlonly nsplugin nvidia ogg oggvorbis openal opengl openmp oscar pam pcmcia pcre pdf perl php png ppds pppd pulseaudio python qemu qt3 qt3support qt4 quicktime raw readline reflection rss samba scga schroedinger sdl session sift smartcard sndfile sox speex spell spl sql sse sse2 sse3 ssl ssse3 startup-notification stream subtitles svg sysfs szip tcpd tetex theora threads thunar tiff truetype unicode usb v4l v4l2 vcd vlm vorbis wavpack webkit wifi wxwindows x264 xcomposite xine xinerama xinetd xml xorg xosd xpm xsl xulrunner xv xvid xvmc zlib" ALSA_CARDS="hda-intel intel8×0 intel8×0m usb-audio" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev mouse keyboard synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" LIRC_DEVICES="devinput" USERLAND="GNU" VIDEO_CARDS="nvidia nv vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 31 Lars 2009-11-04 23:05:11 UTC
hm, i FIXED this by patching /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/include/g++-v4/cstdio

#include <bits/c++config.h>
#include <cstddef>
-#include <stdio.h>
+#include "/usr/include/stdio.h"

#ifndef _GLIBCXX_CSTDIO
#define _GLIBCXX_CSTDIO 1

which gave me *A LOT* of warnings like /usr/include/stdio.h(283): warning: attribute "__warn_unused_result__" ignored

but it compiles...