This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC 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: native compile with multilib on x86_64 that doesn't have crt1.so crti.so crtn.so


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.


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