failing the ch.5 sanity check

Justin jruggle at earthlink.net
Thu Jun 17 19:55:50 PDT 2004


This is my first time attempting to build LFS and I'm running into a 
snag at ch.5 "Adjusting the Toolchain."  When I run 'cc dummy.c' I get 
the following error:

/mnt/lfs/tools/bin/../lib/gcc-lib/i586-pc-linux-gnu/3.3.3/../../../../i586-pc-linux-gnu/bin/ld: 
no input files
collect2: ld returned 1 exit status

'gcc -v dummy.c' gets me:

Reading specs from 
/mnt/lfs/tools/bin/../lib/gcc-lib/i586-pc-linux-gnu/3.3.3/specs
Configured with: ../gcc-3.3.3/configure --prefix=/tools 
--with-local-prefix=/tools --disable-nls --enable-shared 
--enable-languages=c
Thread model: posix
gcc version 3.3.3
/mnt/lfs/tools/bin/../lib/gcc-lib/i586-pc-linux-gnu/3.3.3/cc1 -quiet -v 
-iprefix /mnt/lfs/tools/bin/../lib/gcc-lib/i586-pc-linux-gnu/3.3.3/ 
-D__GNUC__=3 -D__GNUC_MINOR__=3 -D__GNUC_PATCHLEVEL__=3 dummy.c -quiet 
-dumpbase dummy.c -auxbase dummy -version -o /tmp/ccv7yy37.s
GNU C version 3.3.3 (i586-pc-linux-gnu)
   compiled by GNU C version 3.3.3.
GGC heuristics: --param ggc-min-expand=34 --param ggc-min-heapsize=7796
ignoring nonexistent directory "/mnt/lfs/tools/i586-pc-linux-gnu/include"
ignoring nonexistent directory "/tools/i586-pc-linux-gnu/include"
ignoring duplicate directory 
"/tools/lib/gcc-lib/i586-pc-linux-gnu/3.3.3/include"
#include "..." search starts here:
#include <...> search starts here:
/mnt/lfs/tools/lib/gcc-lib/i586-pc-linux-gnu/3.3.3/include
/tools/include
/usr/include
End of search list.
/mnt/lfs/tools/bin/../lib/gcc-lib/i586-pc-linux-gnu/3.3.3/../../../../i586-pc-linux-gnu/bin/as 
-V -Qy -o /tmp/cclfvlQG.o /tmp/ccv7yy37.s
GNU assembler version 2.14 (i586-pc-linux-gnu) using BFD version 2.14 
20030612
/mnt/lfs/tools/bin/../lib/gcc-lib/i586-pc-linux-gnu/3.3.3/collect2 
--eh-frame-hdr -m elf_i386
/mnt/lfs/tools/bin/../lib/gcc-lib/i586-pc-linux-gnu/3.3.3/../../../../i586-pc-linux-gnu/bin/ld: 
no input files
collect2: ld returned 1 exit status

I've double-triple checked all the things the book mentions might be the 
problem (PATH, specs, cc symlink) with no avail.  My host distribution is
Slackware 9.0, which compiles dummy.c just fine.  It seems that it's getting
to ld in a kindof roundabout way, but the path works.  I've been searching
the list archives/Google/anything-I-could-find, and I've had no luck.  I can 
usually work my way out of a build error, but compiler internals are 
kinda foreign to me at this point.  Any suggestions would be great!

Thanks,
Justin




More information about the lfs-support mailing list