This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: crti.o: No such file: No such file or directory when compiling gcc 4.5.2
- From: Ian Lance Taylor <iant at google dot com>
- To: Lukas Ãsterreicher <lukas dot oesterreicher at inode dot at>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Mon, 25 Apr 2011 10:50:54 -0700
- Subject: Re: crti.o: No such file: No such file or directory when compiling gcc 4.5.2
- References: <278230788.20110424121909@inode.at>
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