Building gdb on 64bit solaris

Chu, Josh josh.chu@retek.com
Tue Jun 25 13:09:00 GMT 2002


I have compiled gcc for 64bit solaris and attempted a compile of gdb.
I ran ./configure followed by 'make' and the compilation stops when trying
to compile core-sol2.c.
Here's my output :
...
gcc -m64 -c -g -O2     -I. -I. -I./config -DHAVE_CONFIG_H
-I./../include/opcode -I./../readline/..  -I../bfd -I./../bfd
-I./../include  -I../intl -I./../intl -I./tui   -DUSE_INCLUDED_REGEX
ser-pipe.c
gcc -m64 -c -g -O2     -I. -I. -I./config -DHAVE_CONFIG_H
-I./../include/opcode -I./../readline/..  -I../bfd -I./../bfd
-I./../include  -I../intl -I./../intl -I./tui   -DUSE_INCLUDED_REGEX
corelow.c
gcc -m64 -c -g -O2     -I. -I. -I./config -DHAVE_CONFIG_H
-I./../include/opcode -I./../readline/..  -I../bfd -I./../bfd
-I./../include  -I../intl -I./../intl -I./tui   -DUSE_INCLUDED_REGEX
core-sol2.c
core-sol2.c: In function `fetch_core_registers':
core-sol2.c:62: sizeof applied to an incomplete type
core-sol2.c:69: dereferencing pointer to incomplete type
core-sol2.c:71: dereferencing pointer to incomplete type
core-sol2.c:72: dereferencing pointer to incomplete type
core-sol2.c:73: dereferencing pointer to incomplete type
core-sol2.c:74: dereferencing pointer to incomplete type
*** Error code 1
make: Fatal error: Command failed for target `core-sol2.o'
Current working directory /files0/retl/tools/share/gdb/gdb-5.0/gdb
*** Error code 1
make: Fatal error: Command failed for target `all-gdb'
(/files0/retl/tools/share/gdb/gdb-5.0)$ uname -a
SunOS mspdev25 5.8 Generic_108528-13 sun4u sparc SUNW,Ultra-80
(/files0/retl/tools/share/gdb/gdb-5.0)$ echo $CC
gcc -m64
(/files0/retl/tools/share/gdb/gdb-5.0)$ file `which gcc`
/files0/retl/tools/gcc/bin/gcc: ELF 64-bit MSB executable SPARCV9 Version 1,
dynamically linked, not stripped

Any idea why I am getting these errors?  Is this a known problem when
compiling 64bit solaris?
Thanks!
--JC



More information about the Gdb mailing list