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: cannot find crti.o: No such file or directory


That solution didn't work. However adding 

export LIBRARY_PATH=/usr/lib/x86_64-linux-gnu

partially solved the problem. Now I get:



/usr/bin/ld: skipping incompatible /usr/lib/../lib/libc.so when
searching for -lc
/usr/bin/ld: skipping incompatible /usr/lib/../lib/libc.a when searching for -lc
/usr/bin/ld: i386:x86-64 architecture of input file
`/usr/lib/../lib/crti.o' is incompatible with i386 output
/usr/bin/ld: i386:x86-64 architecture of input file
`/usr/lib/../lib/crtn.o' is incompatible with i386 output



According to http://gcc.gnu.org/ml/gcc-help/2009-05/msg00236.html
I ran "./configure --disable-multilib" and "make" again. However still get the same error.
?

Regards,
Mahmood



----- Original Message -----
From: Florian Weimer <fweimer@redhat.com>
To: Mahmood Naderan <nt_mahmood@yahoo.com>
Cc: gcc <gcc-help@gcc.gnu.org>
Sent: Wednesday, February 6, 2013 10:08 PM
Subject: Re: cannot find crti.o: No such file or directory

On 02/06/2013 07:09 PM, Mahmood Naderan wrote:

> When I want to make gcc 4.1.2 on my ubuntu 12.04 (x86_64), I get this error
> /usr/bin/ld: cannot find crti.o: No such file or directory
> collect2: ld returned 1 exit status

Ubuntu's
 multi-arch is not backwards-compatible.? You have to get a patched 
version of GCC 4.1 (not sure if this is available), or you can try to 
play with environment variables, as explained here:

? <http://gcc.gnu.org/ml/gcc/2012-02/msg00314.html>

Hope this helps.

-- Florian Weimer / Red Hat Product Security Team


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