Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
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.


  Search this Thread
Old 06-10-2009, 02:28 PM   #1
LQ Newbie
Registered: Jun 2009
Posts: 4

Rep: Reputation: 0
Bash 3.2 make failes

When I try to compile BASH, I get this error (included the previous command for clarity):
lfs@x:/mnt/lfs/sources/bash-3.2$ make
cd . && autoconf
/bin/sh: autoconf: not found
make: *** [configure] Error 127
I used the configure options as described in the LFS book, so that cannot be the problem.

My best guess is that one of the host requirements hasn't been met. Therefore I have included the output of the bash version check script.
bash, version 3.2.48(1)-release
/bin/sh -> /bin/dash
Binutils: (GNU Binutils) 2.18
bison (GNU Bison) 2.3
/usr/bin/yacc -> /usr/bin/bison.yacc
bzip2,  Version 1.0.5, 10-Dec-2007.
Coreutils:  6.12
diff (GNU diffutils) 2.8.1
find (GNU findutils) 4.4.0
GNU Awk 3.1.6
/usr/bin/awk -> /usr/bin/gawk
gcc (GCC) 4.3.2
GNU C Library stable release version 2.9,
GNU grep 2.5.3
gzip 1.3.12
Linux version 2.6.28-11-generic (buildd@palmer) (gcc version 4.3.3 (Ubuntu 4.3.3-5ubuntu4) ) #42-Ubuntu SMP Fri Apr 17 01:57:59 UTC 2009
m4 (GNU M4) 1.4.11
GNU Make 3.81
patch 2.5.9
Perl version='5.10.0';
GNU sed version 4.1.5
tar (GNU tar) 1.20
makeinfo (GNU texinfo) 4.11
Compilation OK
The host system is Ubuntu 9.04 (32 bits).

Last edited by Bliepo; 06-10-2009 at 02:55 PM.
Old 06-10-2009, 03:37 PM   #2
ReliaFree Maintainer
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
Have you read section 1.5 of the book? What version of the book are you using? What section is the failure occuring? Do you have autoconf installed on you host machine?
Old 06-10-2009, 03:58 PM   #3
LQ Veteran
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405

I see one thing that's not up to specs, but that's probably not the cause of the problem: /bin/sh -> /bin/dash. I haven't used dash yet so I don't know the impact. The LFS document does specifically mention the link to bash.

Another thing I noticed: lfs@x:/mnt/lfs/sources/bash-3.2$
That doesn't look correct, it should look like this: lfs:/mnt/lfs/sources/bash-3.2$

Maybe other environment settings are also wrong......

Did you forget a step in chapter 4.3 and/or 4.4?
Old 06-11-2009, 07:21 AM   #4
LQ Newbie
Registered: Jun 2009
Posts: 4

Original Poster
Rep: Reputation: 0
I have discovered the source of the problem. I didn't have autoconf installed.
It worked fine after I installed autoconf.
Old 08-19-2009, 03:26 PM   #5
LQ Newbie
Registered: Mar 2004
Posts: 5

Rep: Reputation: 0

You find a solution so my input will only be for the record.

This problem just happen to me today on a machine (sparc64 debian lenny) wich usually had no problem to compile bash-3.2 but fail that time with the same error as you.
Just erasing bash source and restarting compilation fix the issue for me.

You should be able to compile bash-3.2 without autoconf installed.
But sometime, probably a timing issue, compilation try to use autconf and fail when it is not installed.

This is the diff of bad and good logs.
--- bash-3.2-sparc-toolchain.bad.log 2009-08-19 19:56:24.000000000 +0200
+++ bash-3.2-sparc-toolchain.good.log 2009-08-19 19:56:26.000000000 +0200
@@ -538,6 +538,4 @@
config.status: executing default commands
cd /root/ipcop/svn/ipcop/trunk/build_sparc/ipcop/usr/src/bash-3.2 && make
make[1]: Entering directory `/root/ipcop/svn/ipcop/trunk/build_sparc/ipcop/usr/src/bash-3.2'
-cd . && autoconf
-/bin/bash: autoconf: command not found
-make[1]: *** [configure] Error 127
+bison -y -d ./parse.y

You could see that in the good case autoconf is even not called, bison is directly executed.
Old 08-19-2009, 05:56 PM   #6
LQ Newbie
Registered: Mar 2004
Posts: 5

Rep: Reputation: 0
the race is due to patching configure and in that order.
If you are unlucky is not in the same second as configure and autoconf will be called.

this will trigger the bug and try to run autoconf each time.
touch configure && sleep 1 && touch && make clean

reverse configure and order and autoconf will not be called


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
Failes with make modules when noting is changed linuxtesting2 Red Hat 1 02-15-2008 09:11 PM
Connection failes yusufs Linux - Newbie 2 01-29-2008 02:01 AM
BASH problems: "configure, make, make install" commands don't work ditch* Linux - General 3 07-19-2005 05:37 PM
networksetup failes ulaoulao Linux - Networking 1 12-08-2004 01:55 AM
Fluxbox compilation failes objorkum Linux - General 5 03-18-2004 10:38 AM > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 07:19 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration