Help! LFS 6.1 Chapter 6.12- Basic Compiling and Linking Tools don't work!
in the part where I need to test my basic compiling and linking functions- it doesn't work!
I type:
echo 'main() {}' > dummy.c
cc dummy.c
The result:
/tools/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../../i686-pc-linux-gnu/bin/ld: cannot find /lib/libc.so.6
collect2: ld returned 1 exit status
This probably happened when I typed:
perl -pi -e 's@ /tools/lib/ld-linux.so.2@ /lib/ld-linux.so.2@g;' \
-e 's@\*startfile_prefix_spec:\n@$_/usr/lib/ @g;' \
`gcc --print-file specs`
At first I left out the last `. But then terminal was waiting for input so I immediately pressed Ctrl-C, and typed it again with the ` at the end (Rather I just pushed "up" on my kerboard and added thr `).
I seriouslly hope I didn't mess up, because if I messed up the specs file (which I don't even know what it is or what its for) I have no idea how generate a new one.
The ONLY other thing that has (potentially) gone wrong was when I was building Glibc, I typed "make check" and got the following at the end:
make[2]: *** [/glibc-build/libio/tst-fopenloc.check] Error 127
make[2]: Leaving directory `/glibc-build/libio'
make[1]: *** [libio/tests] Error 2
make[1]: Leaving directory `glibc-2.3.4'
make: *** [check] Error 2
But that I know of- thats just about it
...um, help anyone?
|