Linux From ScratchThis Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
i have a problem with adjusting toolchain process
i'm reading LFS 7 and my dist is debian squeeze
also im in /mnt/lfs/sources directory with lfs account
when i issue this command:
SPECS=`dirname $($LFS_TGT-gcc -print-libgcc-file-name)`/specs
i got this error:
bash: i686-lfs-linux-gnu-gcc: command not found
dirname: missing operand
Try `dirname --help' for more information.
i did a few things and when i issue this command:
cat /specs | grep ':/tools'
here's the output:
%{muclibc:/tools/lib/ld-uClibc.so.0;:%{mbionic:/system/bin/linker;:/tools/lib/ld-linux.so.2}}
when i issue this command:
SPECS=`dirname $($LFS_TGT-gcc -print-libgcc-file-name)`/specs
i got this error:
bash: i686-lfs-linux-gnu-gcc: command not found
If this executable cannot be found then you probably messed up the previous step (5.7. Glibc-2.14.1), which installed it.
Assuming you did not make a typo in the SPECS=`dirname $($LFS_TGT-gcc -print-libgcc-file-name)`/specs, it looks ok and the content of $LFS_TGT also seems ok (i686-lfs-linux-gnu). Run uname -m to check the i686 part.
If I look at your LFS post history I see you had a lot of problems. My advise: Start from scratch again to make sure all your previous problems are solved.
thanks for your answer
content of LFS_TGT is equal to $(uname -m)-lfs-linux-gnu
i found i686-pc-linux-gnu-gcc under /tools/bin, but there was no i686-lfs-linux-gnu-gcc.i'm sure i did everything right so far.
could you tell me where should i look for i686-lfs-linux-gnu-gcc.i'm confuse aboute the location of i686-lfs-linux-gnu-gcc.
i found i686-pc-linux-gnu-gcc under /tools/bin, but there was no i686-lfs-linux-gnu-gcc.i'm sure i did everything right so far.
could you tell me where should i look for i686-lfs-linux-gnu-gcc.i'm confuse aboute the location of i686-lfs-linux-gnu-gcc.
Although I cannot check it at this moment, I do believe it should reside in (/mnt/lfs)/tools/bin.
You do mention having this one: i686-pc-linux-gnu-gcc. If that is the case than you did make a mistake somewhere down the road.
PS: I made a mistake in my previous reply: i686-lfs-linux-gnu-gcc is installed during the build of gcc, and _not_ glibc as mentioned before!
i'm doing LFS from begining.i'm in chapter 5 compiling gcc.i issued make and make install command and they went well.but when i want to create the symbolic link i got this error:
root@ubuntu:/mnt/lfs/sources/gcc-build# ln -vs libgcc.a `$LFS_TGT-gcc -print-libgcc-file-name | \
> sed 's/libgcc/&_eh/'`
No command '-gcc' found, did you mean:
Command 'cgcc' from package 'sparse' (multiverse)
Command 'gcc' from package 'gcc' (main)
Command 'gcc' from package 'pentium-builder' (universe)
-gcc: command not found
what should i do,should i put a "./" before $LFS_TGT-gcc"?
i konw and i did everything as lfs ,so far.but i can't make sym link.maybe i don't have permission.what should i do?
I really doubt that:
Quote:
Originally Posted by devilboy09
i unzip,configure and make the packages as lfs user and make install it as root
You either used root to do the make install step, or you gave us the wrong information. The permission denied message points to doing the make install step as root user.....
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.