Download your favorite Linux distribution at LQ ISO.
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 08-06-2008, 07:13 AM   #1
LQ Newbie
Registered: Jul 2008
Posts: 24

Rep: Reputation: 15
Question i got error in 6.12-GCC-4.0.3 of LFS-Book-6.2


i didn't remove the gcc-build and gcc-4.0.3 directories but i have successfully compile and install the gcc pass2.

first i have done the bellow steps:

i have "cd" to the "gcc-4.0.3" directory and the i have applied the "sed" commands.
sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/

sed -i 's/^XCFLAGS =$/& -fomit-frame-pointer/' gcc/

sed -i 's@\./fixinc\.sh@-c true@' gcc/

sed -i 's/@have_mktemp_command@/yes/' gcc/

and the Configuration is
../gcc-4.0.3/configure --prefix=/usr \
--libexecdir=/usr/lib --enable-shared \
--enable-threads=posix --enable-__cxa_atexit \
--enable-clocale=gnu --enable-languages=c,c++
and I'm getting error after " make" the error is something like this

warning: 'flex' not found

but the the Book in section 6.12 said that,

Test the results, but do not stop at errors:
make -k check

Now , please tell me what i have to do now, how to get rid from this error...

THANX in Advance...
Old 08-06-2008, 09:52 AM   #2
ReliaFree Maintainer
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,812
Blog Entries: 1

Rep: Reputation: 259Reputation: 259Reputation: 259
Have you read section 1.5 yet? Please do. Don't provide the "something like" error message, provide the exact error message and several lines before that.

When you say you didn't remove gcc-4.0.3 and gcc-build directories, did you mean the ones from section 5.11? Read section 5.1, specifically the second Important box. I don't believe section 5.11 tells you to keep these directories.


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 using lfs while compiling lfs book's 6.12 (gcc-4.1.2) section aditya_gpch Linux From Scratch 3 04-24-2008 04:23 PM
error while compiling gcc in lfs 6.12 aditya_gpch Linux - Newbie 3 04-19-2008 05:54 AM
error using lfs while compiling 6.12 gcc-4.1.2 aditya_gpch Programming 1 04-19-2008 04:38 AM
error while compiling gcc in lfs 6.12 aditya_gpch Linux - Software 1 04-19-2008 04:37 AM > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

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