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.
Im sort of having a problem with compiling binutils-2.14 pass 1 for a LFS-5.0 installation. I am curently using RedHat 9.0 to compile the new LFS system with its basic gcc rpm. Now everytime i inflict the command "../binutils-2.14/configure --prefix=/tools --disable-nls".... i get this error message:
gcc: installation problem, cannot exec `as': Too many levels of symbolic links
*** The command 'gcc -o conftest -O2 conftest.c' failed.
*** You must set the environment variable CC to a working compiler.
Which i would think is gcc needing to be linked to cc... so....
i performed a "ln -s gcc cc" in /usr/bin..... still having same problem...
and i think the as problem is the assembler which ive read around.....
any info would be greatly appreciated.. .thanks in advance...
Originally posted by NCappaZoo Im sort of having a problem with compiling binutils-2.14 pass 1 for a LFS-5.0 installation. I am curently using RedHat 9.0 to compile the new LFS system with its basic gcc rpm. Now everytime i inflict the command "../binutils-2.14/configure --prefix=/tools --disable-nls".... i get this error message:
gcc: installation problem, cannot exec `as': Too many levels of symbolic links
*** The command 'gcc -o conftest -O2 conftest.c' failed.
*** You must set the environment variable CC to a working compiler.
Which i would think is gcc needing to be linked to cc... so....
i performed a "ln -s gcc cc" in /usr/bin..... still having same problem...
and i think the as problem is the assembler which ive read around.....
any info would be greatly appreciated.. .thanks in advance...
Your problem is with 'as' - it says too many levels of symbolic links. The problem is probably that as is a symlink pointing to itself. See if that is the case and correct the problem.
Check to make sure it is a symlink. If so, remove it. You may to reinstall the binutils package using your distribution's package manager to get everything installed properly again.
In the Linux from scratch book I didn't get this command to work. I couldn't figure out where ld-new came from and what exactly this command is doing.
cp -v ld/ld-new /tools/bin
Install the package:
make install
Next, prepare the linker for the “Adjusting” phase later on:
make -C ld clean
make -C ld LIB_PATH=/tools/lib
cp -v ld/ld-new /tools/bin
I have the exact same question. I get to this part of the book and I don't want to continue without this working like it says it will, however, when I run those commands I get the follwing errors:
"$ make -C ld clean
make: *** ld: No such file or directory. Stop."
"$ cp -v ld/ld-new /tools/bin
cp: cannot stat `ld/ld-new': No such file or directory"
@drumguy1384: This is a very old thread (10th Nov 2003, 19:12) and deals with LFS 5, not LFS 6.X
If you have a problem please open a new thread, give the appropriate information (LFS version, problem chapter, problem and the last 10-15 lines of the error).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.