problem - compiling gcc (pass 1)

daniel widyanto kunil at dsp.itb.ac.id
Tue Feb 17 07:03:34 PST 2004


Try to install glibc-static-lib

After that use : make BOOT_LDFLAGS="-static" cleanstrap
to start everything from beginning

> hello !
>
> I have a similar problem
> MDK 9.2
> LFS 5.0
> gcc *not patched*
>
> for the bootstrap compilation (make BOOT_LDFLAGS="-static" bootstrap)
> I have the following mistake and cannot go further up on the road
> look a the end of the _very big_ message :
>
> /tools/i686-pc-linux-gnu/bin/ld: cannot find -lc
> collect2: ld returned 1 exit status
> make[2]: *** [gengenrtl] Erreur 1
> make[2]: Leaving directory `/mnt/lfs/sources/gcc-build/gcc'
> make[1]: *** [stage2_build] Erreur 2
> make[1]: Leaving directory `/mnt/lfs/sources/gcc-build/gcc'
> make: *** [bootstrap] Erreur 2
>
>
> when i try to re-compile, i have a shorter message
> (hit : in french, "Rien à faire pour" means "nothing to do for")
>
> make[1]: Entering directory `/mnt/lfs/sources/gcc-build/libiberty'
> make[2]: Entering directory
> `/mnt/lfs/sources/gcc-build/libiberty/testsuite'
> make[2]: Rien à faire pour « all ».
> make[2]: Leaving directory
> `/mnt/lfs/sources/gcc-build/libiberty/testsuite'
> make[1]: Leaving directory `/mnt/lfs/sources/gcc-build/libiberty'
> Bootstrapping the compiler
> make[1]: Entering directory `/mnt/lfs/sources/gcc-build/gcc'
> make CC=" stage1/xgcc -Bstage1/ -B/tools/i686-pc-linux-gnu/bin/" \
>           STAGE_PREFIX=stage1/ \
>           ADAC="\$(CC)" AR_FOR_TARGET="ar" RANLIB_FOR_TARGET="ranlib"
> CFLAGS="-g -O2" LDFLAGS="-static" WARN_CFLAGS="\$(GCC_WARN_CFLAGS)"
> STRICT_WARN="-Wtraditional -pedantic -Wno-long-long" libdir=/tools/lib
> LANGUAGES="c gcov " MAKEOVERRIDES= OUTPUT_OPTION="-o \$@"
> make[2]: Entering directory `/mnt/lfs/sources/gcc-build/gcc'
> 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
> make[2]: Leaving directory `/mnt/lfs/sources/gcc-build/gcc'
> make[1]: Leaving directory `/mnt/lfs/sources/gcc-build/gcc'
>
> /tools/i686-pc-linux-gnu/bin/ld: cannot find -lc
> collect2: ld returned 1 exit status
> make[2]: *** [gengenrtl] Erreur 1
> make[2]: Leaving directory `/mnt/lfs/sources/gcc-build/gcc'
> make[1]: *** [stage2_build] Erreur 2
> make[1]: Leaving directory `/mnt/lfs/sources/gcc-build/gcc'
> make: *** [bootstrap] Erreur 2
> --
> http://linuxfromscratch.org/mailman/listinfo/lfs-support
> FAQ: http://www.linuxfromscratch.org/lfs/faq.html
> Unsubscribe: See the above information page
>



More information about the lfs-support mailing list