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


Ok, I downloaded 5.2, and everything built fine for 64-bit (although I'm
still going to have to modify source code to make this work with EDG
demangling)
Here's the steps I followed (ksh):

1) export CC='gcc -m64'
2) ./configure --prefix=<INSTALL DIR>
3) make
4) make install

This worked just fine.  I will be working on getting 5.2 to work with the
Kai C++ compiler so it can demangle the names properly, and I will mail that
to the Intel/Kai folks so they can hopefully post that on a website
somewhere for any Kai C++/KCC users
Thanks again
--JC

-----Original Message-----
From: Andrew Cagney [mailto:ac131313@ges.redhat.com]
Sent: Wednesday, June 26, 2002 10:10 PM
To: Chu, Josh
Cc: 'gdb@sources.redhat.com'; Kun Li
Subject: 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]