LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This 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


Reply
  Search this Thread
Old 11-10-2003, 12:12 PM   #1
NCappaZoo
LQ Newbie
 
Registered: Aug 2003
Location: Queens, New York, U.S.
Distribution: Linux From Scratch
Posts: 25

Rep: Reputation: 15
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...

Last edited by NCappaZoo; 11-10-2003 at 12:14 PM.
 
Old 11-10-2003, 12:24 PM   #2
lfslinux
LFS Maintainer
 
Registered: Jan 2002
Location: Canmore, Alberta, Canada
Distribution: Linux From Scratch
Posts: 372

Rep: Reputation: 30
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.
 
Old 11-10-2003, 12:53 PM   #3
NCappaZoo
LQ Newbie
 
Registered: Aug 2003
Location: Queens, New York, U.S.
Distribution: Linux From Scratch
Posts: 25

Original Poster
Rep: Reputation: 15
thanks for the reply..... i just have one questions, how would i go about unlinking "as" from itself...
 
Old 11-10-2003, 01:03 PM   #4
lfslinux
LFS Maintainer
 
Registered: Jan 2002
Location: Canmore, Alberta, Canada
Distribution: Linux From Scratch
Posts: 372

Rep: Reputation: 30
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.
 
Old 05-04-2009, 04:39 PM   #5
onage
LQ Newbie
 
Registered: Apr 2009
Posts: 4

Rep: Reputation: 0
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
 
Old 06-13-2009, 05:05 PM   #6
drumguy1384
LQ Newbie
 
Registered: Jun 2009
Location: San Antonio, TX
Distribution: Ubuntu, Manjaro, Kali, CentOS
Posts: 3

Rep: Reputation: 0
Quote:
Originally Posted by onage View Post
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?
 
Old 06-14-2009, 03:47 AM   #7
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
@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).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
building Binutils-2.14 pass 1 (LFS 5.1.1) alihamza Linux From Scratch 1 10-10-2005 07:37 AM
Error Compiling GCC (1st Pass) in LFS 6.0 TGWDNGHN Linux From Scratch 1 06-30-2005 08:57 PM
binutils first pass make install failure in LFS-6.0 dibyadeep Linux From Scratch 3 01-05-2005 03:34 PM
LFS 5.1.1: another problem after binutils pass 2 7.e.Q Linux From Scratch 1 07-12-2004 04:37 AM
binutils-2.14 first pass, gcc error Add1Sun Linux From Scratch 3 04-29-2004 04:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 02:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration