This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: native compile with multilib on x86_64 that doesn't have crt1.so crti.so crtn.so
- From: Andrew Haley <aph-gcc at littlepinkcloud dot COM>
- To: Poor Yorick <org dot gnu dot gcc dot help at pooryorick dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Thu, 18 Oct 2007 11:22:20 +0100
- Subject: Re: native compile with multilib on x86_64 that doesn't have crt1.so crti.so crtn.so
- References: <4716E83F.3000701@pooryorick.com>
Poor Yorick writes:
> I'd like to compile a native gcc on an x86_64 machine with an
> altertanative prefix and with --with-multilib=all. In particular,
> I want to be able to compile 32-bit binaries using -m32. Problem
> is, this machine does not have 32-bit crt*.o files, and I do not
> have root or sudo access to /usr. Currently, the only way I can
> succesfully compile gcc is with --disable-multilib. Is there any
> way to get gcc to bootstrap its own 32-bit crt*.o, or do I have to
> scrounge up 32-bit crt*.o files which have been compiled elsewhere?
The problem here is that crt?.o isn't part of gcc, it's part of the C
library. So, whatever else you do you'll have to get the 32-bit C
library from somewhere.
Andrew.