Can't go on in LFS.
I have came to the STEP 5.7. Adjusting the Toolchain .
but I can go on new. when I have typed down the below: mv -v /tools/bin/{ld,ld-old} mv -v /tools/$(gcc -dumpmachine)/bin/{ld,ld-old} mv -v /tools/bin/{ld-new,ld} ln -sv /tools/bin/ld /tools/$(gcc -dumpmachine)/bin/ld yes,it works very well. but next : this: gcc -dumpspecs | sed 's@^/lib/ld-linux.so.2@/tools&@g' \ > `dirname $(gcc -print-libgcc-file-name)`/specserror is like this: sed:can't read /mnt/lfs/tools/bin/../lib/gcc/i686-pc-linux-gnu/4.1.2/specs: NO such file or directory and I don't where is wrong.so I go on. typed: GCC_INCLUDEDIR=`dirname $(gcc -print-libgcc-file-name)`/include && find ${GCC_INCLUDEDIR}/* -maxdepth 0 -xtype d -exec rm -rvf '{}' \; && rm -vf `grep -l "DO NOT EDIT THIS FILE" ${GCC_INCLUDEDIR}/*` && unset GCC_INCLUDEDIR but when I check: echo 'main(){}' > dummy.c cc dummy.c readelf -l a.out | grep ': /tools' I get nothing!!!! There must be some problems. But where? |
What does "echo $(gcc -print-libgcc-file-name)" show?
|
this
Quote:
/mnt/lfs/tools/bin/../lib/gcc/i686-pc-linux-gnu/4.1.2/libgcc.a SO what is wrong? |
Is there a specs directory in /mnt/lfs/tools/bin/../lib/gcc/i686-pc-linux-gnu/4.1.2? If not, that's why the error is occuring.
|
NO,just
libgcc.a |
Actually, the directory is wrong in the given question. And have I understood it right that I only need to copy specs file to the important folder ?
|
he
Quote:
I cann't find the file. where do you find it ? by "JUST copy the specs to the folder" can solve this problem? |
I'm having the same problem... I need to solve it... did anyone know what could be the solution???????? :S
|
I cannot find the specs directory... Please anyone can help me with this??.... i already have check this command once and once and once, and i cant find anything that could be possibly wrong... it keeps saying that /specs directory doesn't exists!!!
|
After copying specs file, I,ve got printered specs file and nothing else done.
|
Can't umount /mnt/lfs
move my post to theme
|
Hey guys,
I had problems here too. I ran through the first three commands in the section without a hitch, but the fourth command failed. I then tried the next command with the specs, and had the same problems you did. I solved it by copying and pasting each line from the first four lines (a couple errors regarding files not found popped up the first couple times) and then I was careful to cut and paste the fifth command. I was tripped up by the second line starting with a '>' character, and assumed it was just to represent the prompt; you NEED that greater than symbol in your code! Cut and paste the entire line exactly as it's in the book, and you should be good to go again. Good luck! |
originally there is no specs and no spec directory, gcc -dumpspecs is trying to generate a spec file in a directory(the directory is $gcc -print-libgcc-file-name), so i suggest,first run gcc -print-libgcc-file-name to find out what directory it is,and run gcc -dumpspecs to see if gcc can generate a file named specs in it,then run sed to modify it,hopefull it will be there,if not,there maybe problem that you typed something wrong,i know it's silly,but i found it's common,beware of the ", . `" symbols,and type it right.
|
All times are GMT -5. The time now is 10:54 AM. |