Share your knowledge at the LQ Wiki.
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 10-08-2003, 02:36 PM   #1
LQ Newbie
Registered: Oct 2003
Posts: 2

Rep: Reputation: 0
I can't compile the bash


In order to improve my Linux skills, I'd like to install a LFS on my computer. I read the document on the french mirror of LFS, and I began to follow the instruction.

Everything went well untill I tried to compile bash sources. I had a message telling me that there were an conflict with 'gethostname'. It is written in the patch that I have to install the package glibc-static-devel-2.2.5-28mdk.x86_64.rpm

The problem is that to install this package I had to install other package because of dependancies. Actually I have to install glibc, then glibc-devel, then ....

I downloaded the glibc-2.3.1 rpm but I can't install nor upgrade it. I tried to install it with sources but I get a message: "you must configure in a separate build directory".

How may I solved this problem?

Thanks in advance.
Old 10-09-2003, 10:37 AM   #2
Registered: Apr 2003
Location: East Coast USA
Distribution: Slackware
Posts: 59

Rep: Reputation: 16
I'm in the process of installing my first LFS as well. It sounds to me like your not starting the install on a seperate partition in the static dir. Bash is the first thing I installed and there was no dependency error's. Did you follow the book from step one? Did you make the LFS user? Did you pass all of the right options during configure?
Old 10-09-2003, 03:52 PM   #3
LQ Newbie
Registered: Oct 2003
Posts: 2

Original Poster
Rep: Reputation: 0
I found at last what was my mistake. I didn't compile the glibc in a different directory: I had to create a glibc-build directory and start configure from this point.

But, I have yet another problem

I chrooted my LFS partition. Everything went well untill I try to compile GCC.

In LFS book, here are the step to follow:
patch -Np1 -i ../gcc-3.2.patch &&
mkdir ../gcc-build &&
cd ../gcc-build &&
../gcc-3.2/configure --prefix=/usr --enable-shared \
--enable-languages=c,c++ --enable-threads=posix \
--with-slibdir=/lib --enable-_cxa-atexit \
--enable-clocale=gnu &&
make bootstrap &&
make install &&
ln -s ../usr/bin/cpp /lib &&
ln -s ../bin/cpp /usr/lib &&
ln -s gcc /usr/bin/cc
I got an error when I try to execute this command. If I try to execute step-by-step this command, it "crash" at make bootstrap:

Bootstrap comparison failure!
alias.o differs
attribs.o differs
bb-reorder.o differs
make[1]: *** [compare] Error 1
make[1]: Leaving directory `/usr/src/gcc-build/gcc'
make: *** [bootstrap] Error 2
Again, I don't know how to solve this problem .

Did you follow the book from step one? Did you make the LFS user? Did you pass all of the right options during configure?
Yes I follow the book from step one. I maked the LFS user and I copy/paste the whole set of instruction.


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
Compile/Encrypt Bash Script DoubleOTeC Programming 6 10-09-2005 07:33 PM
why did bash 2.05b install delete /bin/bash & "/bin/sh -> bash"? johnpipe Linux - Software 2 06-06-2004 06:42 PM
Bash script to compile kernel Keffin Programming 6 05-03-2004 06:31 PM
compile within bash function? adam_boz Programming 1 09-17-2002 11:13 PM
Bash errors after kernel compile Touchstone Linux - Software 5 02-09-2002 09:18 PM > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 11:11 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