This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Re: Building and installing a new version of GLIBC on CentOS
- From: Ian Trudel <ian dot trudel at gmail dot com>
- To: Florian Weimer <fweimer at redhat dot com>
- Cc: libc-help at sourceware dot org
- Date: Fri, 23 Aug 2019 09:27:55 -0400
- Subject: Re: Building and installing a new version of GLIBC on CentOS
- References: <CAA3ugiZBUaQObhaCOfpvKFs9zZgVoxF46SAVv+2eHU-NwS99Cw@mail.gmail.com> <87v9vywr9g.fsf@oldenburg2.str.redhat.com> <CAA3ugia-w-Xma2jW9kzPwyyGuVg=B5_jE7D4b1H=ka14djyKOQ@mail.gmail.com> <87r26mwp1d.fsf@oldenburg2.str.redhat.com> <CAA3ugia32dmi=WKwrWqpeek+YhuqpXXrrzx1_TgWK_Tws3Zbzg@mail.gmail.com> <87muhawmep.fsf@oldenburg2.str.redhat.com> <CAA3ugiZSAFZnA6KhJ9fN=kfqwCgeK8aqWkNf2iEr9BnST390iA@mail.gmail.com> <87tva8t4z2.fsf@oldenburg2.str.redhat.com>
Hi Florian,
The reason I came up with this build switch is that it was reported by
configure. I inspected the results and noticed build and host were
different, used the value reported and it worked.
Ian
Le ven. 23 août 2019, à 08 h 56, Florian Weimer <fweimer@redhat.com> a
écrit :
> * Ian Trudel:
>
> > Here is the solution to build the 32 bit version of glibc on CentOS:
> >
> > ../../configure --prefix=/usr --disable-profile --enable-add-ons
> --with-headers=/usr/include --with-binutils=/usr/bin
> > --build=x86_64-x32-linux-gnu --host=i686-pc-linux-gnu CC="gcc -m32"
> CXX="g++ -m32" CFLAGS="-O2 -march=i686"
> > CXXFLAGS="-O2 -march=i686"
> >
> > The build and host switches have to be different for some strange reason.
>
> --build=x86_64-x32-linux-gnu seems wrong.
>
> CC="gcc -m32" CXX="g++ -m32" --build=i686-linux-gnu
>
> works for me, with a sufficiently recent gcc and g++ on the path.
>
> Thanks,
> Florian
>