LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-11-2004, 03:15 PM   #1
peok
Member
 
Registered: Aug 2003
Location: CA, USA
Distribution: (Almost) LFS 6.1.1
Posts: 91

Rep: Reputation: 15
binutils - trying to compile


I originally had another thread going in the Linux From Scratch forum, because that's what I'm trying to build, but I think this is really a compiling question, I'm having trouble compiling binutils.

Quote:
Originally posted by peok
Ok, first I've found a few threads which had the same problem going on, but like this one, they didn't solve my problem.

I'm on the Binutils-2.14 - Pass 1, I've been following the directions to the letter so far as far as I know. I entered
Code:
../binutils-2.14/configure --prefix=/tools --disable-nls
from the "binutils-build" directory, and got the following output:
Code:
loading cache ./config.cache
checking host system type... i586-pc-linux-gnulibc1
checking target system type... i586-pc-linux-gnulibc1
checking build system type... i586-pc-linux-gnulibc1
/usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../../
        i486-slackware-linux/bin/ld:
        crtl.o: No such file: No such file or directory
collect2: ld returned 1 exit status
*** The command 'gcc -o conftest -g -O2   conftest.c' failed.
*** You must set the environment variable CC to a working compiler.
I had to copy using pen and paper, and retype as 1, it would be hard for me to get a text file to a computer w/ internet and 2, the command
Code:
../binutils-2.14/configure --prefix=/tools --disable-nls > output
only writes the first 4 lines, up until the errors, so if I typed something wrong and its not a trivial thing, sorry.

I tried changing the command to
Code:
CC=gcc ../binutils-2.14/configure --prefix=/tools --disable-nls
but there wasn't any change. What's going on? I'm building on a fresh slack 10.0.

Last edited by peok; 08-12-2004 at 12:31 AM.
 
Old 08-11-2004, 04:41 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Never been there, but I'd try CC=/path/to/gcc


Cheers,
Tink
 
Old 08-12-2004, 12:30 AM   #3
peok
Member
 
Registered: Aug 2003
Location: CA, USA
Distribution: (Almost) LFS 6.1.1
Posts: 91

Original Poster
Rep: Reputation: 15
yeah tinkster, that didn't work. and I noticed that "conftest.c" doesn't exist in my binutils-2.XX directory. I would have expected it to be there from the error message, and actually I can't find it anywhere. can I use the "whereis" command to search across the entire system? (not that I expect to find it somewhere, I was just wondering)

Last edited by peok; 08-12-2004 at 12:32 AM.
 
Old 08-12-2004, 02:43 AM   #4
slyman
Member
 
Registered: Jun 2004
Location: Sydney, Australia
Distribution: FC3, Linux From Scratch, Knoppix
Posts: 99

Rep: Reputation: 15
Have a look in config.log and see if there is anything relevent in there.
 
Old 08-13-2004, 11:10 AM   #5
peok
Member
 
Registered: Aug 2003
Location: CA, USA
Distribution: (Almost) LFS 6.1.1
Posts: 91

Original Poster
Rep: Reputation: 15
config.log didin't have any information past checking host/target/build system info. Is there another program that has taken over after that?
 
Old 08-15-2004, 03:50 PM   #6
peok
Member
 
Registered: Aug 2003
Location: CA, USA
Distribution: (Almost) LFS 6.1.1
Posts: 91

Original Poster
Rep: Reputation: 15
well, still trying, figured out how to reinstall gcc of the slackware cd with pkgtool, didn't change anything.
 
Old 08-16-2004, 12:49 PM   #7
peok
Member
 
Registered: Aug 2003
Location: CA, USA
Distribution: (Almost) LFS 6.1.1
Posts: 91

Original Poster
Rep: Reputation: 15
maybe I should try a differecnt os... who knows

I wish I knew more linux.
 
Old 08-16-2004, 03:34 PM   #8
peok
Member
 
Registered: Aug 2003
Location: CA, USA
Distribution: (Almost) LFS 6.1.1
Posts: 91

Original Poster
Rep: Reputation: 15
wow. I just installed redhat 9. same thing. what a waste of time, kinda. I guess I'll look around for yet another distro.
 
Old 08-17-2004, 12:09 PM   #9
peok
Member
 
Registered: Aug 2003
Location: CA, USA
Distribution: (Almost) LFS 6.1.1
Posts: 91

Original Poster
Rep: Reputation: 15
well, now it's time to try mandrake 9.1... I suspect it's something I'm doing, not the distro, but because of the lack of ideas I'm coming up with, the fact I'm not getting any help, and I'm having a real hard time giving up, it's the only thing I know how to do.

I searched the mailing lists at lfs's website, and found someone with an identical problem. They deleted the binutils folder and unpacked it again, which fixed it for them. I had already done that several times before I found that. And the md5 inside checks out.
 
  


Reply



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
Binutils won't compile because it can't find install.sh CPUFreak91 Linux From Scratch 2 09-01-2005 08:32 AM
How to specify target when compile binutils? huweiming268 Programming 3 07-17-2005 11:42 PM
HELP!!! Binutils won't compile correctly microsoft/linux Linux From Scratch 6 07-12-2005 12:11 PM
Compile binutils as lfs or root? El Basto Linux From Scratch 5 09-13-2004 01:37 PM
can't compile binutils (chapter 6) alaios Linux From Scratch 2 03-24-2004 04:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:40 PM.

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