LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-12-2007, 06:57 PM   #1
wangcow
LQ Newbie
 
Registered: Nov 2007
Posts: 12

Rep: Reputation: 0
Binutils Error


Hello,

well i have a few errors. the first, when i cd.. into /binutils-build and extracted binutils-2.17.tar.bz2 there using tar -jxvf filename.tar.bz2. so heres the first thing, whenever i browse to that directory (using vim) there is no configure file, only config, so when i go to type in
Code:
CC="gcc -B/usr/bin/" ../binutils-2.17/config \ --prefix=tools --disable-nls --disable-werror
i get an error that says
Code:
bash: ../binutils-2.17/config: no such file or directory
Help is greatly appreciated!!

THANKS
 
Old 11-12-2007, 07:04 PM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,755
Blog Entries: 1

Rep: Reputation: 238Reputation: 238Reputation: 238
Sheesh, why not try executing the command the way it's written?
Code:
CC="gcc -B/usr/bin/" ../binutils-2.17/configure \
    --prefix=/tools --disable-nls --disable-werror
 
Old 11-12-2007, 07:14 PM   #3
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 162Reputation: 162
The configure script should be there (it was for me a while back). What do you get when you run the following?
Code:
ls -l ../binutils-2.17/configure
 
Old 11-12-2007, 07:20 PM   #4
wangcow
LQ Newbie
 
Registered: Nov 2007
Posts: 12

Original Poster
Rep: Reputation: 0
to weibullguy i still get the same error

to gilead i get ls cannot access blablabla

any advice???
 
Old 11-12-2007, 07:38 PM   #5
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 162Reputation: 162
I just downloaded http://ftp.gnu.org/gnu/binutils/binutils-2.17.tar.bz2 from the link on the LFS page. The configure file is included, so I'd suggest re-extracting the files. You could just cd to the directory containing your sources and run:
Code:
rm -rf binutils-2.17 && tar -xjf binutils-2.17.tar.bz2
If you've made changes in there, you'll have to make them again. If you just want the configure file, you can run:
Code:
tar -xvjf binutils-2.17.tar.bz2 binutils-2.17/configure
That should just extract configure into your existing binutils-2.17 directory.
 
Old 11-12-2007, 08:14 PM   #6
wangcow
LQ Newbie
 
Registered: Nov 2007
Posts: 12

Original Poster
Rep: Reputation: 0
the wierd thing is is that i do have the configure file. is there like, some kind of lock on it or something?

thanks
 
Old 11-12-2007, 08:54 PM   #7
wangcow
LQ Newbie
 
Registered: Nov 2007
Posts: 12

Original Poster
Rep: Reputation: 0
?!?!?! anybody?
 
Old 11-12-2007, 09:09 PM   #8
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 162Reputation: 162
No, there's no lock on it. But what do you mean, you do have it now? In your first post you said it wasn't there and later you couldn't access it with ls. If it's there and executable by your user account, you should be able to run it.
 
Old 11-12-2007, 09:11 PM   #9
wangcow
LQ Newbie
 
Registered: Nov 2007
Posts: 12

Original Poster
Rep: Reputation: 0
its definantely there, when i go to the file browser in vim i can see it there in the right folder, but when i try to access it from anywhere else, like using the ln or doing the ../blabla it says it doesnt exist. i dont get it. if it helps im doing this on a mac using vmware fusion v1.0
 
Old 11-12-2007, 09:25 PM   #10
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 162Reputation: 162
Did you do the following?
- Start VMWare;
- Boot the LFS live CD inside VMWare;
- Partition your virtual hard disk inside VMWare;
- Successfully complete the LFS steps prior to binutils, installing everything to the virtual disk inside VMWare.
So at this stage you're up to either step 5.3 or 6.11 to be working on binutils. If so, Vim isn't installed yet - it gets installed at step 6.57.

If you have vim available, either you're not inside the virtual setup, or something has gone wrong with the procedure you're following (or I've misunderstood your post).

What path are you following in vim to be able to select the binutils-2.17/configure file?
 
Old 11-12-2007, 09:29 PM   #11
wangcow
LQ Newbie
 
Registered: Nov 2007
Posts: 12

Original Poster
Rep: Reputation: 0
i have everything done perfectly fine up to 5.3.1. in vim, the path is binutils-build/binutils-2.17. (yes binutils-build is at root)
 
Old 11-12-2007, 09:31 PM   #12
wangcow
LQ Newbie
 
Registered: Nov 2007
Posts: 12

Original Poster
Rep: Reputation: 0
btw, when i cd i can navigate all the way to the binutils-2.17 file if that helps
 
Old 11-12-2007, 09:35 PM   #13
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655
Why are you using the vim editor to determine what files you have. Use the ls command instead and make sure you are in the project directory. Opening configure in vim might just lock the file or rename it to "configure~". What are the permissions of it?

I've run into a few projects where there wasn't a configure script but there was a configure.ac script. In this case running autoconf generated the configure script.
 
Old 11-12-2007, 09:44 PM   #14
wangcow
LQ Newbie
 
Registered: Nov 2007
Posts: 12

Original Poster
Rep: Reputation: 0
ok, i ran that ln thing again but with the full directory, so now it seems like this is working, but when i do that theres a bunch of text on the screen. i see a few error type of things like input/output error. then when i type 'make' it says No Targets. Stop.

any ideas?

thanks
 
Old 11-12-2007, 10:14 PM   #15
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,755
Blog Entries: 1

Rep: Reputation: 238Reputation: 238Reputation: 238
If you insist on tackling (C)LFS (which I suggest you put off until you get a little more experience with Linux), do yourself a favor, read section 1.5 of the book, and heed the advice contained therein. You're not following the book verbatim, you're not describing what you're doing that is different from the instructions in the book, and you're not posting even close to enough information about the problem.
 
  


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
error in binutils make gobi_dgm Linux - Software 4 09-21-2006 10:58 AM
Binutils Error hell_carnage Linux From Scratch 1 06-26-2005 09:33 AM
Error in binutils Macky Linux From Scratch 1 04-29-2005 06:39 PM
Binutils Error! chakkaradeepcc Linux From Scratch 2 04-28-2005 05:53 AM
binutils error lordtweety Linux From Scratch 5 12-01-2004 09:37 AM


All times are GMT -5. The time now is 06:10 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration