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: crti.o: No such file: No such file or directory when compiling gcc 4.5.2


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


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