This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: glibc-2.3.5 doesn't compile with gcc-3.3 and 3.4


On 20 Apr 2005, Urs Thuermann announced authoritatively:
> While compiling glibc-2.3.5 with gcc-3.2 works without problems, I
> cannot compile it using gcc-3.3.x or 3.4.x.  The compilation breaks
> with the following error:
[snip]
> This is on a dual Pentium 3 and Linux-2.4.30 kernel headers.  I configured
> and built with
> 
>     cd /usr/src/glibc-2.3.5-build
>     CFLAGS=-O2 /usr/src/glibc-2.3.5/configure --prefix=/usr \
>             --enable-add-ons=linuxthreads \
>             --with-headers=/usr/src/linux/include
>     make
> 
> Is this a known bug?

This is bug #674.

For you, the easiest way to build a working glibc is probably
to tell configure what your machine is, i.e., add

--build=pentium3-pc-linux-gnu

to your configure line. This will cause linuxthreads to use floating
stacks and TLS, and this problem should go away. (At least, it does
for me when I do this. See the comments to this bug for my flailing
and incompetent attempts to work out what's going on.)

(On Pentiums and below, configuring --without-__thread is the best
`solution' I've found. Should this be wired into configure as a
default, I wonder?)

-- 
This is like system("/usr/funky/bin/perl -e 'exec sleep 1'");
   --- Peter da Silva


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]