Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 241864 - sys-devel/gcc-2.95.3 does not compile with NPTL
Summary: sys-devel/gcc-2.95.3 does not compile with NPTL
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
: 282708 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-10-14 00:48 UTC by Sebastian Pipping
Modified: 2009-08-30 12:50 UTC (History)
1 user (show)

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


Attachments
Build log (gcc-2.95.3-r10-build.log,119.25 KB, text/plain)
2008-10-14 00:50 UTC, Sebastian Pipping
Details
environment (gcc-2.95.3-r10-environment,178.73 KB, text/plain)
2008-10-14 00:50 UTC, Sebastian Pipping
Details
emerge --info --verbose (emerge-info-verbose,10.54 KB, text/plain)
2008-10-14 00:51 UTC, Sebastian Pipping
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian Pipping gentoo-dev 2008-10-14 00:48:47 UTC
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.
Comment 1 Sebastian Pipping gentoo-dev 2008-10-14 00:50:28 UTC
Created attachment 168346 [details]
Build log
Comment 2 Sebastian Pipping gentoo-dev 2008-10-14 00:50:58 UTC
Created attachment 168348 [details]
environment
Comment 3 Sebastian Pipping gentoo-dev 2008-10-14 00:51:22 UTC
Created attachment 168350 [details]
emerge --info --verbose
Comment 4 Pavel Shirov 2008-12-05 09:13:57 UTC
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?
Comment 5 SpanKY gentoo-dev 2008-12-08 04:49:32 UTC
older versions are provided for convenience and nothing more.  if you want a version guaranteed to work, use the latest stable.
Comment 6 Sebastian Pipping gentoo-dev 2008-12-09 04:25:55 UTC
@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
Comment 7 SpanKY gentoo-dev 2008-12-09 06:00:45 UTC
known issue -- gcc-2 will not build on NPTL systems due to magic in the internal pthread headers
Comment 8 Mark Loeser (RETIRED) gentoo-dev 2009-05-01 01:10:11 UTC
No way are we going to fix gcc-2.  If you want to use it, you are expected to understand what is implied.
Comment 9 Justin Lecher (RETIRED) gentoo-dev 2009-08-30 12:50:20 UTC
*** Bug 282708 has been marked as a duplicate of this bug. ***