This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: gdb 6.0: build on Solaris 5.8 fails for infrun.c
- From: Klaus Zeitler <kzeitler at lucent dot com>
- To: Andrew Cagney <cagney at gnu dot org>
- Cc: gdb at sources dot redhat dot com
- Date: 24 Oct 2003 12:15:34 +0200
- Subject: Re: gdb 6.0: build on Solaris 5.8 fails for infrun.c
Andrew>
Andrew> Looks very like a GCC bug. I see you're using Sun's assembler
Andrew> (usr/ccs/bin/as) which rules out GAS ;-). As a workaround, try
Andrew>
Andrew> CFLAGS='-g -O' ...path.to.configure/configure
Andrew>
Andrew> or building the file with:
Andrew>
Andrew> make CFLAGS='-g -O' infrun.o
Andrew>
Andrew> or updating your GCC.
thanks, that helped. We still have 2.95.3 installed as our "official" gcc.
But with gcc 3.0.4 this file compiled fine and I could produce a gdb image.
Though there's still a problem in utils. Make stops now with:
cd spu && make "CC=gcc" "CFLAGS=-g -O2" "AR=ar" "AR_FLAGS=rc" "AS=as" "CROSS_CFLAGS=" "TARGET_CFLAGS=" "INCLUDES=" all
make[2]: Entering directory `/vol/freeware/SunOS-5.8/build/gdb-6.0/utils/spu'
gcc -c -I. -I/vol/freeware/source/gdb-6.0/utils/spu -I/vol/freeware/source/gdb-6.0/utils/spu/config -I/vol/freeware/source/gdb-6.0/utils/spu/../../include -g -O2 /vol/freeware/source/gdb-6.0/utils/spu/spu.c
gcc -g -O2 -o spu spu.o
Undefined first referenced
symbol in file
.LL177 spu.o
ld: fatal: Symbol referencing errors. No output written to spu
collect2: ld returned 1 exit status
make[2]: *** [spu] Error 1
make[2]: Leaving directory `/vol/freeware/SunOS-5.8/build/gdb-6.0/utils/spu'
make[1]: *** [all-spu] Error 2
make[1]: Leaving directory `/vol/freeware/SunOS-5.8/build/gdb-6.0/utils'
make: *** [all-utils] Error 2
ERROR: gdb: make
--
------------------------------------------
| Klaus Zeitler Lucent Technologies |
| Email: kzeitler@lucent.com |
------------------------------------------
---
People who fight may lose. People who do not
fight have already lost. -- Bertolt Brecht