crti.o: No such file: No such file or directory when compiling gcc 4.5.2

Ian Lance Taylor iant@google.com
Mon Apr 25 17:56:00 GMT 2011


Lukas Österreicher <lukas.oesterreicher@inode.at> writes:

> I'm trying to complile gcc 4.5.2 (unless you suggest another version
> for my dual-core atom based embedded linux NAS system).
>
> This is the error I get:
> /home/slug/optware/ts509/toolchain/i686-unknown-linux-gnu/bin/i686-unknown-linux-gnu-ld: crti.o: No such file: No such file or directory

gcc does not provide crti.o.  On a GNU/Linux system it comes from glibc.

> I did this in /opt/etc/gcc-4.5.2-build and gcc sources residing in
> /opt/etc/gcc-4.5.2 with the command /opt/etc/gcc-4.5.2/configure
> --prefix=/opt
>
> crti.o is present in /opt/i686-unknown-linux-gnu/lib/crti.o
> and /opt/i686-unknown-linux-gnu/lib is provided inside /etc/ld.so.conf

If you run gcc -v you will see the directories where it will look for
crti.o.  If you can't move crti.o to one of those directories, you can
use a -B option to add the directory to the search path.

Ian



More information about the Gcc-help mailing list