This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: --with-sysroot newbie troubles: "ld: cannot open crt1.o"
Daniel Jacobowitz wrote:
That's the bug. Find out why GCC is not searching.
Commands like
$ xgcc -print-file-name=crti.o
$ for dir in `xgcc -print-search-dirs | grep librar | tr '=:' ' ' | fmt`; do
(test -d $d && cd $d && pwd; )
done | sort -u
$ find $prefix -name crti.o
were quite helpful. Turns out I configured glibc with the wrong prefix, d'oh.
I don't have a working build script yet, and it might take me a
while still (given that it's two hours each time I test a change),
but at least I'm not stuck.
- Dan