LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Binutils Error (https://www.linuxquestions.org/questions/linux-from-scratch-13/binutils-error-599165/)

wangcow 11-12-2007 05:57 PM

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

weibullguy 11-12-2007 06:04 PM

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


gilead 11-12-2007 06:14 PM

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

wangcow 11-12-2007 06:20 PM

to weibullguy i still get the same error

to gilead i get ls cannot access blablabla

any advice???

gilead 11-12-2007 06:38 PM

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.

wangcow 11-12-2007 07:14 PM

the wierd thing is is that i do have the configure file. is there like, some kind of lock on it or something?

thanks

wangcow 11-12-2007 07:54 PM

?!?!?! anybody?

gilead 11-12-2007 08:09 PM

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.

wangcow 11-12-2007 08:11 PM

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

gilead 11-12-2007 08:25 PM

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?

wangcow 11-12-2007 08:29 PM

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)

wangcow 11-12-2007 08:31 PM

btw, when i cd i can navigate all the way to the binutils-2.17 file if that helps

jschiwal 11-12-2007 08:35 PM

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.

wangcow 11-12-2007 08:44 PM

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

weibullguy 11-12-2007 09:14 PM

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.


All times are GMT -5. The time now is 10:46 PM.