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: Can't configure gdb-5.3 for sparc64-linux: Could not find a term library


On Sun, Feb 02, 2003 at 08:23:53AM +0100, Christian Jönsson wrote:
> On Sat, Feb 01, 2003 at 02:14:04PM +0100, Mark Kettenis wrote:
> > Christian Jönsson <c.christian.joensson@telia.com> writes:
> > 
> > > > checking compiler warning flags...  -Wimplicit -Wreturn-type -Wcomment -Wtrigraphs -Wformat -Wparentheses -Wpointer-arith -Wuninitialized
> > > > checking for cygwin... no
> > > > checking for tgetent in -lncurses... (cached) no
> > > > checking for tgetent in -lHcurses... no
> > > > checking for tgetent in -ltermlib... no
> > > > checking for tgetent in -ltermcap... (cached) no
> > > > checking for tgetent in -lcurses... (cached) no
> > > > checking for tgetent in -lterminfo... no
> > > > configure: error: Could not find a term library
> > > > Configure in /usr/local/src/gcc-binutils/branch/objdir-gdb-5.3/gdb failed, exiting.
> > 
> > Note the "(cached)" in the above output.  What happens if you remove
> > the toplevel config.cache and reconfigure in the gdb subdir
> > (./config.status --recheck)?  If that doesn't solve the problem,
> > please post the output of the config.log file in the gdb subdirectory.
> 
> well, same thing, attached is the config.log
> 
> > > > 
> > > > but ncurses and termcap is installed...
> > > > 
> > > > ncurses-5.2-26
> > > > ncurses-devel-5.2-26
> > > > libtermcap-2.0.8-28
> > > > libtermcap-devel-2.0.8-28
> > > > termcap-11.0.1-10
> > > > 
> > > 
> > > well, not much response here, is there something obvious I might have missed reading< perhaps?
> > > 
> > > is it perhaps so that if I want a gdb for sparc64-linux, I'll have to
> > > have more than just binutils and gcc for sparc64-linux, such as
> > > ncurses and/or termcap?
> > 
> > I'm not familiar with sparc64-linux, but if you want to build a native
> > sparc64-linux GDB, you'll need the 64-bit versions of the libs needed
> > by GDB I suppose.
> 
> OK, then I'll need ncurses for sparc64-linux, right?
> 

After fiddling around a little on and off today, ncurses-5.3 and
binutils cvs HEAD installed separatly, I got away but had a failure in
sparc-nat:


gcc -m64 -c -g    -I. -I/usr/local/src/gcc-binutils/branch/gdb-5.3/gdb -I/usr/local/src/gcc-binutils/branch/gdb-5.3/gdb/config -DLOCALEDIR="\"/usr/local/gcc-binutils/share/locale\"" -DHAVE_CONFIG_H -I/usr/local/src/gcc-binutils/branch/gdb-5.3/gdb/../include/opcode -I/usr/local/src/gcc-binutils/branch/gdb-5.3/gdb/../readline/.. -I../bfd -I/usr/local/src/gcc-binutils/branch/gdb-5.3/gdb/../bfd  -I/usr/local/src/gcc-binutils/branch/gdb-5.3/gdb/../include -I../intl -I/usr/local/src/gcc-binutils/branch/gdb-5.3/gdb/../intl -D_BSD_SOURCE -D_XOPEN_SOURCE=500 -D_LARGEFILE64_SOURCE  -DMI_OUT=1 -DUI_OUT=1 -Wimplicit -Wreturn-type -Wcomment -Wtrigraphs -Wformat -Wparentheses -Wpointer-arith -Wuninitialized  /usr/local/src/gcc-binutils/branch/gdb-5.3/gdb/corelow.c
cc1: warning: -Wuninitialized is not supported without -O
gcc -m64 -c -g    -I. -I/usr/local/src/gcc-binutils/branch/gdb-5.3/gdb -I/usr/local/src/gcc-binutils/branch/gdb-5.3/gdb/config -DLOCALEDIR="\"/usr/local/gcc-binutils/share/locale\"" -DHAVE_CONFIG_H -I/usr/local/src/gcc-binutils/branch/gdb-5.3/gdb/../include/opcode -I/usr/local/src/gcc-binutils/branch/gdb-5.3/gdb/../readline/.. -I../bfd -I/usr/local/src/gcc-binutils/branch/gdb-5.3/gdb/../bfd  -I/usr/local/src/gcc-binutils/branch/gdb-5.3/gdb/../include -I../intl -I/usr/local/src/gcc-binutils/branch/gdb-5.3/gdb/../intl -D_BSD_SOURCE -D_XOPEN_SOURCE=500 -D_LARGEFILE64_SOURCE  -DMI_OUT=1 -DUI_OUT=1 -Wimplicit -Wreturn-type -Wcomment -Wtrigraphs -Wformat -Wparentheses -Wpointer-arith -Wuninitialized  /usr/local/src/gcc-binutils/branch/gdb-5.3/gdb/sparc-nat.c
cc1: warning: -Wuninitialized is not supported without -O
In file included from /usr/include/asm/reg.h:4,
                 from /usr/local/src/gcc-binutils/branch/gdb-5.3/gdb/sparc-nat.c:36:
/usr/include/asm-sparc64/reg.h:49: redefinition of `struct fpu'
/usr/local/src/gcc-binutils/branch/gdb-5.3/gdb/sparc-nat.c: In function `fetch_inferior_registers':
/usr/local/src/gcc-binutils/branch/gdb-5.3/gdb/sparc-nat.c:99: warning: cast from pointer to integer of different size
/usr/local/src/gcc-binutils/branch/gdb-5.3/gdb/sparc-nat.c:103: warning: implicit declaration of function `memcpy'
/usr/local/src/gcc-binutils/branch/gdb-5.3/gdb/sparc-nat.c:105: structure has no member named `r_ps'
/usr/local/src/gcc-binutils/branch/gdb-5.3/gdb/sparc-nat.c:106: structure has no member named `r_pc'
/usr/local/src/gcc-binutils/branch/gdb-5.3/gdb/sparc-nat.c:107: structure has no member named `r_npc'
/usr/local/src/gcc-binutils/branch/gdb-5.3/gdb/sparc-nat.c:129: warning: cast from pointer to integer of different size
/usr/local/src/gcc-binutils/branch/gdb-5.3/gdb/sparc-nat.c: In function `store_inferior_registers':
/usr/local/src/gcc-binutils/branch/gdb-5.3/gdb/sparc-nat.c:254: structure has no member named `r_ps'
/usr/local/src/gcc-binutils/branch/gdb-5.3/gdb/sparc-nat.c:256: structure has no member named `r_pc'
/usr/local/src/gcc-binutils/branch/gdb-5.3/gdb/sparc-nat.c:258: structure has no member named `r_npc'
/usr/local/src/gcc-binutils/branch/gdb-5.3/gdb/sparc-nat.c:264: warning: cast from pointer to integer of different size
/usr/local/src/gcc-binutils/branch/gdb-5.3/gdb/sparc-nat.c:278: warning: cast from pointer to integer of different size
/usr/local/src/gcc-binutils/branch/gdb-5.3/gdb/sparc-nat.c: In function `fetch_core_registers':
/usr/local/src/gcc-binutils/branch/gdb-5.3/gdb/sparc-nat.c:312: structure has no member named `r_ps'
/usr/local/src/gcc-binutils/branch/gdb-5.3/gdb/sparc-nat.c:313: structure has no member named `r_pc'
/usr/local/src/gcc-binutils/branch/gdb-5.3/gdb/sparc-nat.c:314: structure has no member named `r_npc'
make[1]: *** [sparc-nat.o] Error 1
make[1]: Leaving directory `/usr/local/src/gcc-binutils/branch/objdir-gdb-5.3/gdb'
make: *** [all-gdb] Error 2

This was on a Aurora SPARC Linux 1.0 (Ansel) Ultra1 single UltraSparc I
sun4u system with these packages:

binutils 2.13.90 20030202 sparc64-linux
bison-1.35-1
dejagnu-1.4.2-10 (ftp://ftp.redhat.com/pub/redhat/linux/rawhide/SRPMS/SRPMS)
expect-5.32.2-67
gcc-2.96-113
glibc-2.2.5-42
glibc64-2.2.5-42
kernel-2.4.19-1.2sparc (from Aurora SPARC Linux 0.42)
tcl-8.3.3-67

Any ideas?

I'll try gdb cvs now...


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