This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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:

Fortunatly these utils don't need to be built before you can use GDB.
Anyway, this is again weird - .LL177 is a gcc symbol - so I'm again wondering about GCC?


Andrew


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]