i am trying to install LFS 6.1 and have not deviated from the handbook
the host system is slackware 10.1 with the following specs:
Code:
cat /proc/version
Linux version 2.6.10 (root@laptop) (gcc version 3.3.4) #4 Sun Jul 3 21:41:36 EDT 2005
when trying to compile the dummy.c for test purposes in chapter 5.7, i receive the following error:
Code:
cc -v dummy.c
Reading specs from /mnt/lfs/tools/bin/../lib/gcc/i686-pc-linux-gnu/3.4.3/specs
Configured with: ../gcc-3.4.3/configure --prefix=/tools --libexecdir=/tools/lib --with-local-prefix=/tools --disable-nls --enable-shared --enable-languages=c
Thread model: posix
gcc version 3.4.3
/mnt/lfs/tools/bin/../lib/gcc/i686-pc-linux-gnu/3.4.3/cc1 -quiet -v -iprefix /mnt/lfs/tools/bin/../lib/gcc/i686-pc-linux-gnu/3.4.3/ dummy.c -quiet -dumpbase dummy.c -mtune=pentiumpro -auxbase dummy -version -o /tmp/ccznT62h.s
ignoring nonexistent directory "/mnt/lfs/tools/bin/../lib/gcc/i686-pc-linux-gnu/3.4.3/../../../../i686-pc-linux-gnu/include"
ignoring duplicate directory "/tools/lib/gcc/i686-pc-linux-gnu/3.4.3/include"
ignoring nonexistent directory "/tools/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../../i686-pc-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
/mnt/lfs/tools/bin/../lib/gcc/i686-pc-linux-gnu/3.4.3/include
/tools/include
/usr/include
End of search list.
GNU C version 3.4.3 (i686-pc-linux-gnu)
compiled by GNU C version 3.4.3.
GGC heuristics: --param ggc-min-expand=62 --param ggc-min-heapsize=60208
/mnt/lfs/tools/bin/../lib/gcc/i686-pc-linux-gnu/3.4.3/../../../../i686-pc-linux-gnu/bin/as -V -Qy -o /tmp/ccmhWJQo.o /tmp/ccznT62h.s
GNU assembler version 2.15.94.0.2.2 (i686-pc-linux-gnu) using BFD version 2.15.94.0.2.2 20041220
/mnt/lfs/tools/bin/../lib/gcc/i686-pc-linux-gnu/3.4.3/collect2 --eh-frame-hdr -m elf_i386
/mnt/lfs/tools/bin/../lib/gcc/i686-pc-linux-gnu/3.4.3/../../../../i686-pc-linux-gnu/bin/ld: no input files
collect2: ld returned 1 exit status
here's the environment of the user attempting to compile:
Code:
export
declare -x HOME="/home/lfs"
declare -x LC_ALL="POSIX"
declare -x LFS="/mnt/lfs"
declare -x OLDPWD="/mnt/lfs"
declare -x PATH="/tools/bin:/bin:/usr/bin"
declare -x PS1="\\u:\\w\$ "
declare -x PWD="/mnt/lfs/sources"
declare -x SHLVL="1"
declare -x TERM="linux"
now, here's something weird i noticed:
Code:
which cc
/tools/bin/cc
cat `cc --print-file specs` | grep ld
%{rdynamic:-export-dynamic} %{!dynamic-linker:-dynamic-linker /tools/lib/ld-linux.so.2}} %{static:-static}}}
cc -dumpspecs | grep ld
%{!static:--eh-frame-hdr} -m elf_i386 %{shared:-shared} %{!shared: %{!ibcs: %{!static: %{rdynamic:-export-dynamic} %{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2}} %{static:-static}}}
i edited the specs file changed the path for finding the non-host ld, but the compiler doesn't seem to take it?
google searches have brought up a similar error on LFS 5.2 with fedora 2 as a host, the problem was solved by using a different version of binutils. but since i am using the exact version from the handbook, i am not sure which way i should go (newer or older version), if that would indeed solve the problem.
any help would be appreciated, thank you very much in advance.