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: Building gdb on 64bit solaris


Could you please download than try GDB 5.2 or better a current snapshot of GDB. See http://sources.redhat.com/gdb/current/ . From other comments, it apparently doesn't build. However, if you can post the details or look closer, it may be possible to figure out what is going wrong.

Andrew



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



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