I tried to send this a few minutes before i got accepted to the mailing
list, and from searching the archives it doesnt appear to have gotten sent,
so im trying again.  I appologize if i do end up double sending.

Im working with the development book and am in chapter 5.8, trying to
compile dummy.c, but im getting a file not found error having to do with the
linker.

l...@bitey:/mnt/lfs/sources$ $LFS_TGT-gcc -B/tools/lib/ dummy.c
/mnt/lfs/tools/bin/../lib/gcc/
i686-lfs-linux-gnu/4.5.0/../../../../i686-lfs-linux-gnu/bin/ld: crt1.o: No
such file: No such file or directory
collect2: ld returned 1 exit status

im building this on an ubuntu 9.10 system.  I think ive got all the software
required, for the most part i can catch missing software from ./configure
errors, so i think this is more to do with how i installed something.

Most of the other crt1.o errors were with readjusting the toolchain again in
chapter 6, but it seems part of the spec file is important:

*startfile_prefix_spec:

To create the spec file i followed the commands directly from the book

SPECS=`dirname $($LFS_TGT-gcc -print-libgcc-file-name)`/specs
$LFS_TGT-gcc -dumpspecs | sed \
  -e 's@/lib\(64\)\?/ld@/tools&@g' \
  -e "/^\*cpp:$/{n;s,$, -isystem /tools/include,}" > $SPECS

echo "New specs file is: $SPECS"
unset SPECS


if anyone has any ideas that would be great


thanks,


chris



-- 
Touch not the Cat bot a Glove
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to