[lfs-support] Installing 'Binutils' -- './configure' No such file or directory

Ken Moffat zarniwhoop at ntlworld.com
Mon Aug 6 15:52:56 PDT 2012


On Mon, Aug 06, 2012 at 06:10:36PM -0400, Christopher Adams wrote:
> I've run into a problem trying to configure the 'binutils' package.
> 
> Note: I'm working on Section 5.3.1 (Compiling Binutils) of LFS version 6.3;
> my host is lfs-livecd x86_64-6.3-r2145 on an HP Pavillion a1200e - AMD
> Sempron.
> 
 Apart from Bruce's comment, which already tells you your correct
next step (i.e. don't use such an old version!), a few comments:

1. I'm surprised that there is an x86_64 live CD from 6.3-ish.  Why
am I surprised (after all, I was already using x86_64 at that time)
? : 6.3 contains grub-0.97 which will not build on x86_64, it needs
32-bit assembler.

> I unpacked the 'binutils-2.17.tar.bz2' package, then I created the
> '../binutils-build' directory, and changed to it; but I got the following
> error message when I tried to run './configure':
> 
> bash: ./configure: No such file or directory
> 
> There is a 'configure' script in the 'binutils-2.17' directory; should I
> run the './configure' command in that directory, or is there some other
> step I'm missing?
> 
> Also, I'm a bit confused by the options for './configure':
> 
> CC="gcc -B/usr/bin/" ../binutils-2.17/configure --prefix=/tools
> --disable-nls --disable-werror
> I assume that this line is placed where the ellipsis occurs in the 'time'
> command. If not, when should I enter it?
> Chris Adams

2. why do you think those are options for './configure' ?  That is
the *full* configure command - override CC in the environment, and
run ../binutils-2.17/configure with some options.

 If you read the page, I'm sure the command is explained.  Briefly,
you create a binutils-build directory, change to it, and then run
the configure script (in ../binutils-2.17) from there.

 I'm stressing this because the principles haven't changed in the
current book.  Somehow, you seem to be misreading : ./configure is
not the correct way to invoke the configure script in binutils, gcc.

ĸen
-- 
das eine Mal als Tragödie, das andere Mal als Farce



More information about the lfs-support mailing list