Build.log, environment and emerge --info output in a minute. PS: All of <2.95.3-r9>, <3.1.1-r2> and <3.2.3-r4> do not compile here.
Created attachment 168346 [details] Build log
Created attachment 168348 [details] environment
Created attachment 168350 [details] emerge --info --verbose
Same error with stable gcc-2.95.3-r9: In file included from /usr/include/sys/types.h:270, from /usr/include/stdlib.h:438, from /var/tmp/portage/sys-devel/gcc-2.95.3-r9/work/gcc-2.95.3/gcc/frame.c:42: /usr/include/bits/pthreadtypes.h:69: warning: unnamed struct/union that defines no instances /var/tmp/portage/sys-devel/gcc-2.95.3-r9/work/gcc-2.95.3/gcc/frame.c:55: extra brace group at end of initializer /var/tmp/portage/sys-devel/gcc-2.95.3-r9/work/gcc-2.95.3/gcc/frame.c:55: (near initialization for `object_mutex.__data') /var/tmp/portage/sys-devel/gcc-2.95.3-r9/work/gcc-2.95.3/gcc/frame.c:55: warning: excess elements in struct initializer /var/tmp/portage/sys-devel/gcc-2.95.3-r9/work/gcc-2.95.3/gcc/frame.c:55: warning: (near initialization for `object_mutex.__data') make[2]: *** [libgcc2.a] Error 1 This bug is older than 1 month. Can somebody look for this?
older versions are provided for convenience and nothing more. if you want a version guaranteed to work, use the latest stable.
@pavel What I read on the web it seems we need a much older glibc to build GCC 2.95 which seems quite risky to me. I managed to build 3.2.3-r4 with GCC 3.4.6 though (in case you are looking for any pre-3.3.6 version) like this: $ gcc-config i686-pc-linux-gnu-3.4.6 ; source /etc/profile <set working CFLAGS in /etc/make.conf, e.g. CFLAGS="-O2 -pipe" > $ emerge =sys-devel/gcc-3.2.3-r4 $ gcc-config i686-pc-linux-gnu-4.1.2 ; source /etc/profile # restore Sebastian
known issue -- gcc-2 will not build on NPTL systems due to magic in the internal pthread headers
No way are we going to fix gcc-2. If you want to use it, you are expected to understand what is implied.
*** Bug 282708 has been marked as a duplicate of this bug. ***