LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   LFS-5.0 GCC problem with binutils-2.14 pass 1 (https://www.linuxquestions.org/questions/linux-from-scratch-13/lfs-5-0-gcc-problem-with-binutils-2-14-pass-1-a-114464/)

NCappaZoo 11-10-2003 12:12 PM

LFS-5.0 GCC problem with binutils-2.14 pass 1
 
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...

lfslinux 11-10-2003 12:24 PM

Re: LFS-5.0 GCC problem with binutils-2.14 pass 1
 
Quote:

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.

NCappaZoo 11-10-2003 12:53 PM

thanks for the reply..... i just have one questions, how would i go about unlinking "as" from itself...

lfslinux 11-10-2003 01:03 PM

the as in question would be /usr/bin/as

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.

onage 05-04-2009 04:39 PM

Question on LFS 5.4
 
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

drumguy1384 06-13-2009 05:05 PM

Quote:

Originally Posted by onage (Post 3530078)
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"

Anyone know what this is about?

druuna 06-14-2009 03:47 AM

@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).


All times are GMT -5. The time now is 02:08 PM.