This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: glibc-2.3.4 sparc build segfaults
On Thu, 17 Mar 2005, Andrew Shepard prattled cheerily:
> I'm trying to build the glibc-2.3.4 release on an Ultra 10. I'm using
> Linux kernel 2.6.10, gcc 3.4.3 and binutils 2.15.96. The configure
> line was:
>
> env CC="/tools/bin/gcc -m32 -mcpu=ultrasparc -mtune=ultrasparc" CXX="/tools/bin/g++ -m32 -mcpu=ultrasparc -mtune=ultrasparc" ../glibc-2.3.4/configure --prefix=/usr --enable-shared --enable-profile --enable-add-ons=nptl,libidn --with-tls --with-__thread --enable-kernel=2.6.10 --without-cvs --libexecdir=/usr/lib/glibc --with-headers=/tools/include --build=sparc-linux --host=sparc-linux
>
> make fails with this:
This is a symptom of the wrong --host being used. glibc cares if you're
using an UltraSPARC or not even if you're using a 32-bit userspace.
You want to say --build=sparcv9-unknown-linux-gnu --host=sparcv9-unknown-linux-gnu.
(Note also the usual dual-universe considerations for SPARCv9; i.e.,
that you'll need to either move the 32-bit kernel asm/ headers into
place explicitly, or have a tree of stub headers that #include the
appropriate real 32/64-bit headers depending on the value of
__arch64__.)
--
> ...Hires Root Beer...
What we need these days is a stable, fast, anti-aliased root beer
with dynamic shading. Not that you can let just anybody have root.
--- John M. Ford