gcc-3.2 build fails with ld error

Keith Harwood vitalmis at bigpond.net.au
Sun Jan 19 21:26:29 PST 2003


I have started building LFS-4.0.

Static build of gcc-3.2 failed as follows.

Bootstrapping the compiler
make[1]: Entering directory `/mnt/lfs/usr/src/gcc-build/gcc'
make CC="stage1/xgcc -Bstage1/ -B/static/alphaev6-unknown-linux-gnu/bin/" \
         STAGE_PREFIX=stage1/ \
         CFLAGS="-g -O2" LDFLAGS="-static" WARN_CFLAGS="\$(GCC_WARN_CFLAGS)"
STRICT_WARN="-Wtraditional -pedantic -Wno-long-long" libdir=/static/lib
LANGUAGES="c gcov " MAKEOVERRIDES= OUTPUT_OPTION="-o \$@"
make[2]: Entering directory `/mnt/lfs/usr/src/gcc-build/gcc'
stage1/xgcc -Bstage1/ -B/static/alphaev6-unknown-linux-gnu/bin/ -DIN_GCC    -g
-O2 -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
/usr/bin/ld: Dwarf Error: Invalid or unhandled FORM value: 14.
gengenrtl.o(.debug_info+0x3de9): relocation truncated to fit: REFLONG
.debug_ranges
gengenrtl.o(.debug_info+0x3f49): relocation truncated to fit: REFLONG
.debug_ranges
gengenrtl.o(.debug_info+0x3fdf): relocation truncated to fit: REFLONG
.debug_ranges
collect2: ld returned 1 exit status
make[2]: *** [gengenrtl] Error 1
make[2]: Leaving directory `/mnt/lfs/usr/src/gcc-build/gcc'
make[1]: *** [stage2_build] Error 2
make[1]: Leaving directory `/mnt/lfs/usr/src/gcc-build/gcc'
make: *** [bootstrap] Error 2 

Looks to me like the stage1 gcc is generating something that my existing linker
can't handle. 
My ld clains to be 
GNU ld version 2.9.5 (with BFD 2.9.5.0.24)
and reports
ld: supported targets: elf64-alpha ecoff-littlealpha elf64-little elf64-big
elf32-little elf32-big srec symbolsrec tekhex binary ihex trad-core
ld: supported emulations: elf64alpha alpha
ld: emulation specific options:
  no emulation specific options.

Can anyone suggest how I can get around this problem?

----------------------------------
E-Mail: Keith Harwood <vitalmis at bigpond.net.au>
Date: 20-Jan-03
Time: 15:53:43

This message was sent by XFMail
----------------------------------
-- 
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe lfs-support' in the subject header of the message



More information about the lfs-support mailing list