Not able to find libraries if sysroot= tooldir

Alan Modra amodra@gmail.com
Fri Jan 18 02:39:00 GMT 2019


On Thu, Jan 17, 2019 at 10:12:48AM +0100, Christer Solskogen wrote:
> /opt/cross/x86_64-blug-linux-gnu/bin/ld: cannot find crti.o: No such file or
> directory

This one isn't anything to do with ld.  gcc isn't finding crti.o and
thus isn't passing the full path to ld.

> /opt/cross/x86_64-blug-linux-gnu/bin/ld: cannot find -lc

If your libc.so is a script as it usually is on linux, do you have the
paths correct in the script?  They shouldn't include the sysroot
prefix..

-- 
Alan Modra
Australia Development Lab, IBM



More information about the Binutils mailing list