problem - compiling gcc (pass 1)

JP Caruana invalid_000jean-philippe.Caruana at wanadoo.fr_invalid
Tue Feb 17 15:03:15 PST 2004


daniel widyanto a écrit :
> Try to install glibc-static-lib
> 
> After that use : make BOOT_LDFLAGS="-static" cleanstrap
> to start everything from beginning

done it
when you said "to start everything from beginning", did you mean that I 
had to do it again or that it was useless ?

after a cleanstrap compilation, I decided to start from the begining, i 
had the following error :

../../gcc-3.3.1/gcc/gcc.c:689: warning: string length `524' is greater 
than the length `509' ISO C89 compilers are required to support
../../gcc-3.3.1/gcc/gcc.c:836: warning: string length `523' is greater 
than the length `509' ISO C89 compilers are required to support
../../gcc-3.3.1/gcc/gcc.c:1423: warning: string length `595' is greater 
than the length `509' ISO C89 compilers are required to support
../../gcc-3.3.1/gcc/gcc.c: In function `fatal':
../../gcc-3.3.1/gcc/gcc.c:6470: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
make[2]: *** [gcc.o] Erreur 1
make[2]: Leaving directory `/mnt/lfs/sources/gcc-build/gcc'
make[1]: *** [stage3_build] Erreur 2
make[1]: Leaving directory `/mnt/lfs/sources/gcc-build/gcc'
make: *** [bootstrap] Erreur 2



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