This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Help needed with sparc
- From: Brad Lucier <lucier at math dot purdue dot edu>
- To: drow at mvista dot com (Daniel Jacobowitz)
- Cc: lucier at math dot purdue dot edu (Brad Lucier), jsturm at one-point dot com (Jeff Sturm), atpoquet at ucdavis dot edu, gcc at gcc dot gnu dot org
- Date: Wed, 23 Jan 2002 20:38:13 -0500 (EST)
- Subject: Re: Help needed with sparc
> That's not an error of any significance. Does anything else work?
OK, some more data.
A 32-bit version of gdb-5.1 definitely does not work:
banach-532% gdb !$
gdb gengenrtl
GNU gdb 5.1
Copyright 2001 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "sparc-sun-solaris2.8"...
.gdbinit:7: Error in sourced command file:
../../gcc/gdbinit.in:91: Error in sourced command file:
Function "fancy_abort" not defined.
(gdb) run
Starting program: /export/u3/lucier/programs/gcc/gcc-3.1/objdirv9/gcc/gengenrtl
procfs:4328 -- process not stopped.
procfs: ...giving up...
(gdb) The program is running. Exit anyway? (y or n) banach-533%
A 64-bit version of today's CVS version of gdb does not work:
banach-527% ~/programs/gdb/src/gdb/gdb gengenrtl
GNU gdb 2002-01-23-cvs
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "sparc-sun-solaris2.8"...
.gdbinit:7: Error in sourced command file:
../../gcc/gdbinit.in:91: Error in sourced command file:
Function "fancy_abort" not defined.
(gdb) run
Starting program: /export/u3/lucier/programs/gcc/gcc-3.1/objdirv9/gcc/gengenrtl
Segmentation fault
(this is after I fixed gdb/doublest.c, and I just filed a gdb bug report)
A 64-bit version of gdb 5.1 gets me further:
banach-533% ~/programs/gdb/gdb-5.1/gdb/gdb gengenrtl
GNU gdb 5.1
Copyright 2001 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "sparc-sun-solaris2.8"...
.gdbinit:7: Error in sourced command file:
../../gcc/gdbinit.in:91: Error in sourced command file:
Function "fancy_abort" not defined.
(gdb) run
Starting program: /export/u3/lucier/programs/gcc/gcc-3.1/objdirv9/gcc/gengenrtl
Program received signal SIGSEGV, Segmentation fault.
0x1000020d4 in __do_global_ctors_aux ()
(gdb) where
#0 0x1000020d4 in __do_global_ctors_aux ()
#1 0x100002140 in _init ()
(gdb) list
Cannot access memory at address 0x1fc8
banach-534% ldd ~/programs/gdb/gdb-5.1/gdb/gdb
libcurses.so.1 => /usr/lib/sparcv9/libcurses.so.1
libsocket.so.1 => /usr/lib/sparcv9/libsocket.so.1
libnsl.so.1 => /usr/lib/sparcv9/libnsl.so.1
libdl.so.1 => /usr/lib/sparcv9/libdl.so.1
libm.so.1 => /usr/lib/sparcv9/libm.so.1
libc.so.1 => /usr/lib/sparcv9/libc.so.1
libmp.so.2 => /usr/lib/sparcv9/libmp.so.2
/usr/platform/SUNW,Ultra-4/lib/sparcv9/libc_psr.so.1
banach-535% ldd gengenrtl
libc.so.1 => /usr/lib/sparcv9/libc.so.1
libdl.so.1 => /usr/lib/sparcv9/libdl.so.1
/usr/platform/SUNW,Ultra-4/lib/sparcv9/libc_psr.so.1
I don't really know what's relevant here, so if you need more information,
I'd be glad to provide it.
Brad