This is the mail archive of the gcc@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: x86_64 ld error


Doug Shubert <doug@accessgate.net> writes:

> Hello,
>
> I'm having a consistent error message when attempting to compile
> GCC 3.3 on RH GinGin Opteron x86_64. The latest binutils
> are installed (binutils-2.14.90.0.4-19.x86_64.bin).
>
> /usr/bin/ld: cannot open crti.o: No such file or directory
> collect2: ld returned 1 exit status
> make[2]: *** [32/libgcc_s_32.so] Error 1

You do not have a 32-bit development environment setup.  By default
GCC will be build on x86_64 in a way that you can compile both 64-bit
x86-64 and 32-bit x86 objects (for the latter use -m32)  but for this
you need a 32-bit environment.

Workaround to build only a 64-bit compiler: configure with
--disable-multilib.

Andreas
-- 
 Andreas Jaeger, aj@suse.de, http://www.suse.de/~aj
  SuSE Linux AG, Deutschherrnstr. 15-19, 90429 Nürnberg, Germany
   GPG fingerprint = 93A3 365E CE47 B889 DF7F  FED1 389A 563C C272 A126


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