LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   i got error in 6.12-GCC-4.0.3 of LFS-Book-6.2 (https://www.linuxquestions.org/questions/linux-from-scratch-13/i-got-error-in-6-12-gcc-4-0-3-of-lfs-book-6-2-a-660845/)

luckybtn 08-06-2008 07:13 AM

i got error in 6.12-GCC-4.0.3 of LFS-Book-6.2
 
Hi,



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/Makefile.in
==============================================================

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

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

============================================================
sed -i 's/@have_mktemp_command@/yes/' gcc/gccbug.in
============================================================

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...

weibullguy 08-06-2008 09:52 AM

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.


All times are GMT -5. The time now is 01:15 PM.