This is the mail archive of the libc-alpha@sourceware.org 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: building glibc 2.6


On Mon, 18 Jun 2007, Mike Frysinger wrote:

> On Monday 18 June 2007, Allin Cottrell wrote:
> > I'm trying to build glibc 2.6 on i686, using gcc 4.1.2, with
> > configuration as follows:
> >
> > CFLAGS='-O2 -g -march=i486'
> 
> you should really use --host=i486-linux-gnu instead of forcing CFLAGS

Thanks; this gave me the clue that I needed.

Just for the record, here's my understanding of the issue. I have 
been in the habit of building gcc without any "--with-arch" 
directive to the configure script.  I guess this means that it 
defaults to the lowest common denominator of i386.  But glibc 
doesn't support i386 any more.  So when I tried building glibc 2.6 
I got compilation errors.  I could get around those errors using 
the CFLAGS line above, but then I got the errors that I mentioned 
on "make check".  

My solution was to rebuild gcc using "--with-arch=i486".
Then I was able to build glibc 2.6 and also run "make check" 
successfully.  (Actually I got one or two failures on the check, 
but from googling the specific failures it seems they are 
nothing to get too excited about.)

-- 
Allin Cottrell
Department of Economics
Wake Forest University, NC


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