Subject: gcc-3.0.2 fails to compile on netbsd-1.5.2/sparc
To: None <netbsd-help@netbsd.org>
From: None <jwy@divisionbyzero.com>
List: netbsd-help
Date: 11/21/2001 13:46:58
hi, i'm having trouble bootstrapping gcc-3.0.2 on netbsd-1.5.2/sparc
on a sparcstation4.  compilation fails when trying to use the stage1
compiler:

Bootstrapping the compiler
make CC="stage1/xgcc -Bstage1/
-B/usr/pkg/sparc-unknown-netbsdelf1.5.2/bin/"  ST
AGE_PREFIX=stage1/  CFLAGS="-g -O2"  LDFLAGS=""
WARN_CFLAGS="\$(GCC_WARN_CFLAGS
)"  STRICT_WARN="-Wtraditional -pedantic -Wno-long-long"
libdir=/usr/pkg/lib  L
ANGUAGES="c gcov c++"  MAKEOVERRIDES=  OUTPUT_OPTION="-o \$@"
stage1/xgcc -Bstage1/ -B/usr/pkg/sparc-unknown-netbsdelf1.5.2/bin/
-DIN_GCC
-g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-Wtradi
tional -pedantic -Wno-long-long  -DHAVE_CONFIG_H -DGENERATOR_FILE  -o
gengenrtl
 gengenrtl.o ` case "obstack.o" in ?*) echo obstack.o ;; esac ` ` case ""
in ?*)
 echo  ;; esac ` ` case "" in ?*) echo  ;; esac `   ` case "" in ?*) echo
;; es
ac ` ` case "" in ?*) echo  ;; esac ` ` case "" in ?*) echo  ;; esac `
/usr/bin/ld: warning: cannot find entry symbol start; defaulting to
000104d8
/usr/lib/crt0.o: In function `___start':
/usr/lib/crt0.o(.text+0xf8): undefined reference to `main'
gengenrtl.o: In function `type_from_format':
/opt/src/gcc-obj/gcc/../../gcc-3.0.2/gcc/gengenrtl.c(.text+0x1144):
undefined re
ference to `_abort'
gengenrtl.o: In function `accessor_from_format':
/opt/src/gcc-obj/gcc/../../gcc-3.0.2/gcc/gengenrtl.c(.text+0x12d4):
undefined re
ference to `_abort'
gengenrtl.o: In function `special_format':
/opt/src/gcc-obj/gcc/../../gcc-3.0.2/gcc/gengenrtl.c(.text+0x13b8):
undefined re
ference to `_strchr'
/opt/src/gcc-obj/gcc/../../gcc-3.0.2/gcc/gengenrtl.c(.text+0x13e0):
undefined re
ference to `_strchr'
/opt/src/gcc-obj/gcc/../../gcc-3.0.2/gcc/gengenrtl.c(.text+0x13fc):
undefined re
ference to `_strchr'
/opt/src/gcc-obj/gcc/../../gcc-3.0.2/gcc/gengenrtl.c(.text+0x1418):
undefined re
ference to `_strchr'

etc.

is thias a known problem?  is there a fix/workaround?

cheers,

Joe Yandle

for DVDs in Linux screw the MPAA and ; do dig $DVDs.z.zoy.org ; done | \
   perl -ne 's/\.//g; print pack("H224",$1) if(/^x([^z]*)/)' | gunzip