LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Help! LFS 6.1 Chapter 6.12- Basic Compiling and Linking Tools don't work! (https://www.linuxquestions.org/questions/linux-from-scratch-13/help-lfs-6-1-chapter-6-12-basic-compiling-and-linking-tools-dont-work-347059/)

TGWDNGHN 07-26-2005 04:42 PM

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?

kjordan 07-26-2005 06:15 PM

What you did shouldn't mess it up (pressing ctrl-c after missing a `) since bash was waiting for the matching ` before it executed the command. What does "ls /lib/libc.*" show? Did you forget to "make install" in 6.11?

TGWDNGHN 07-26-2005 06:25 PM

it shows a symlink libc.so.6 -> libc-2.3.3.so


I think I got it... instead of setting it to libc.so.2 I should've set it to libc.so.2 right?

I won't do anythin until I get this confirmed, but if I am right... then what should I do?


P.S. When building the Temp system- I used the .2 one, so I dunno where the .6 came from


All times are GMT -5. The time now is 08:25 AM.