LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Install gcc-3.3.1 error (https://www.linuxquestions.org/questions/linux-from-scratch-13/install-gcc-3-3-1-error-157667/)

matador 03-14-2004 05:11 PM

Install gcc-3.3.1 error
 
I've been using several distros for a long time but never really learned enough. So I figured LFS could be perfect to learn more. I've gotten to chapter 5 in LFS 5.0 but now I encountered the following problem compiling gcc-3.3.1

make BOOT_LDFLAGS="-static" bootstrap

Code:

/gcc/../include ../../gcc-3.3.1/gcc/gengenrtl.c -o gengenrtl.o
stage1/xgcc -Bstage1/ -B/tools/i686-pc-linux-gnu/bin/  -g -O2 -DIN_GCC  -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long  -DHAVE_CONFIG_H -DGENERATOR_FILE -static -o gengenrtl \
 gengenrtl.o ../libiberty/libiberty.a
/tools/i686-pc-linux-gnu/bin/ld: cannot find -lc
collect2: ld returned 1 exit status
make[2]: *** [gengenrtl] Error 1
make[2]: Leaving directory `/mnt/lfs/tools/gcc-build/gcc'
make[1]: *** [stage2_build] Error 2
make[1]: Leaving directory `/mnt/lfs/tools/gcc-build/gcc'
make: *** [bootstrap] Error 2

This might be something easy since this is new to me... I have followed the book and only used the proper downloads + I've copy/pasted from the book to avoid type-o's. Any help is appreciated.

matador 03-15-2004 04:58 PM

Don't underestimate the power of the FAQ!

http://www.se.linuxfromscratch.org/l...cannot-find-lc

It took me quite a while (and a helping hand from a friend) to figure out that libc.a was missing in the install of mandrake. I searched the LFS support, the forum, but not the FAQ.....


All times are GMT -5. The time now is 10:35 AM.