LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   binutils - trying to compile (https://www.linuxquestions.org/questions/linux-software-2/binutils-trying-to-compile-216346/)

peok 08-11-2004 03:15 PM

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.


Tinkster 08-11-2004 04:41 PM

Never been there, but I'd try CC=/path/to/gcc


Cheers,
Tink

peok 08-12-2004 12:30 AM

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)

slyman 08-12-2004 02:43 AM

Have a look in config.log and see if there is anything relevent in there.

peok 08-13-2004 11:10 AM

config.log didin't have any information past checking host/target/build system info. Is there another program that has taken over after that?

peok 08-15-2004 03:50 PM

well, still trying, figured out how to reinstall gcc of the slackware cd with pkgtool, didn't change anything.

peok 08-16-2004 12:49 PM

maybe I should try a differecnt os... who knows :confused:

I wish I knew more linux.

peok 08-16-2004 03:34 PM

wow. I just installed redhat 9. same thing. what a waste of time, kinda. I guess I'll look around for yet another distro.

peok 08-17-2004 12:09 PM

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.


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