Hi,
I am tyring to build the HLFS version SVN 20080603. Everything was going smoothly until i reached chapter 5.5 Adjusting the Toolchain. The following command is giving me error:
echo 'int main(){return 0;}' > dummy.c
cc dummy.c
./a.out &&
readelf -l a.out | grep ': /tools'
The command echo 'int main(){return 0;}' > dummy.c works well but
cc dummy.c give me the following errors.
/mnt/hlfs/tools/bin../lib/gcc/i686-pc-linux-gnu/4.1.2/../../../../
i686-pc-linux-gnu/bin/ld: cannot find -lc
collect2: ld returned 1 exit status
I even tried it with gcc but it does not work.
Finally when i execute this command:
./a.out &&
readelf -l a.out | grep ': /tools'
The following message appears. bash: ./a.out: No such file or directory
the command echo $PATH gives me /tools/bin:/bin:/usr/bin
Can anybody please help.
I've been trying to solve this problem since the past 2 days.
I even tried to start from the beginning but when chapter 5.5 is reached I
got stucked.