LFS 6.8: Problem in Sanity Check in Chroot (chap 6.10)
I've just installed the first three packages after getting into the chroot (which are the kernel, man pages, and glibc). Then completed re-adjusting the chainlink.
The problem is when I try the sanity check, the cc dummy.c -v -Wl,--verbose &> dummy.log command, to be exact. This command doesn't seem to be creating any 'a.out' file as the book says. This can be shown as when I run the readelf -l a.out | grep ': /lib' command, the output is: Code:
readelf: Error: 'a.out: No such file Anyone got solution or the same matter? Thx :) |
Hi,
Info generated during the compilation is inside dummy.log. Did you notice anything interesting? |
oh, yes! I notice that there is this message:
Code:
collect2: ld returned 1 exit status |
Hi,
Quote:
Hope this helps. |
Well this is the dummy.log content, if you want to see.
Code:
Reading specs from /tools/lib/gcc/i686-pc-linux-gnu/4.5.2/specs Thanks |
Hi,
You made a typo: Code:
/tools/lib/gcc/i686-pc-linux-gnu/4.5.2/../../../../i686-pc-linux-gnu/bin/ld: unrecognized option '--verbrose' Hope this helps. |
yeah, that helps quite a lot; but still not generating the a.out file.
thanks, though :D |
Hi,
Quote:
|
This is the dummy.log now:
Code:
Reading specs from /tools/lib/gcc/i686-pc-linux-gnu/4.5.2/specs |
Hi,
looking at the above output I see some success entries on /tools/lib/...... which is very suspicious. The point of the 6.10. Re-adjusting the Toolchain chapter is to switch back from /tools/lib to /lib (and /tools/lib to /usr/lib). I can only assume that something went wrong with one of the previous 2 steps (probably the gcc -dumpspecs | sed -e .... step). Hope this helps. |
Hey, I think you're right! The problem seems to be that I forgot to put a symlink.
So then, the case is closed! Conclusion: misspelling, missing symlink Moral story: be more careful! :D |
I don't know if i could start a new thread but i'm having the same problem here and i issued the commands of the book correctly...
The thing is i can't post the dummy.log here because i'm using the live cd on that particular machine , if anyone could tell me how to do it i'd like that Inside dummy.log certain libs are unable to open such as libgcc_s.so and libgcc_s.a and in the end error messages appear ld : cannot find -lggc_s ld : cannot find -lc i would appreciate any help i'm stuck here... thanks in advance! |
@eliadk: Hi and welcome to LQ
If the information given in the above answers doesn't help: Please start a new thread, this one has the SOLVED status. When you do start a new thread provide the following information: - Which LFS version are you trying to build, - Which chapter are you working on, - Which step and what is the exact error message. You do mention you cannot post the dummy.log, but we do need exact messages in order to help you. Can't you put the log file on a USB stick? Hope this helps. |
@druuna: Hi and Thank you very much!!!
Ok i will start a new thread and i 'm sorry i didn't know... |
All times are GMT -5. The time now is 02:00 AM. |