public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* Unable to build GDB 13.1 on Solaris 11.3 Sparc
@ 2023-03-08 21:33 Nemo Nusquam
  2023-03-08 22:19 ` Rainer Orth
  2023-03-08 22:43 ` Andrew Pinski
  0 siblings, 2 replies; 7+ messages in thread
From: Nemo Nusquam @ 2023-03-08 21:33 UTC (permalink / raw)
  To: gdb

I am trying (and failing) to build GDB 13.1 on Solaris 11.3 Sparc.

Here is my configuration script.

CXXFLAGS='-g3 -O0' \
CFLAGS='-g3 -O0' \
NM=/usr/bin/gnm \
SHELL=/usr/bin/bash \
AR=/usr/bin/gar \
AS=/usr/bin/as \
CC=/home/build/gcc/git/bin/gcc \
CXX=/home/build/gcc/git/bin/g++ \
../configure \
--with-mpc=/usr/local \
--with-gmp=/usr/local \
--with-mpfr=/usr/local \
--enable-64-bit-bfd \
--enable-tui \
--with-curses \
--disable-bootstrap \
--disable-binutils \
--disable-ld \
--disable-gprof \
--disable-gprofng \
--disable-gold \
--disable-gas \
--disable-sim

(Some flags taken from https://sourceware.org/gdb/wiki/BuildingNatively .)

The makefile creates ./gdb inside the build directory and then stops as 
follows:

checking for libgmp... no
configure: error: GMP is missing or unusable
gmake[1]: *** [Makefile:11447: configure-gdb] Error 1
gmake[1]: Leaving directory '/home/build/opt/gdb-13.1/bld'

I have libgmp (and building gcc 13 uses it) in /usr/local/lib:

/usr/local/lib/libgmp.a:        current ar archive, 32-bit symbol table
/usr/local/lib/libgmp.la:       commands text
/usr/local/lib/libgmp.so:       ELF 64-bit MSB dynamic lib SPARCV9 
Version 1, UltraSPARC3 Extensions Required, dynamically linked, not 
stripped, no debugging information available
/usr/local/lib/libgmp.so.10:    ELF 64-bit MSB dynamic lib SPARCV9 
Version 1, UltraSPARC3 Extensions Required, dynamically linked, not 
stripped, no debugging information available
/usr/local/lib/libgmp.so.10.4.1:        ELF 64-bit MSB dynamic lib 
SPARCV9 Version 1, UltraSPARC3 Extensions Required, dynamically linked, 
not stripped, no debugging information available

Now I note that the Makefile is compiling to 32-bit objects but I have a 
32-bit libgmp.a.  (I tried adding "-m64" but that caused other problems.)

I am stumped.  How do I proceed?

N.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-03-09 18:45 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-08 21:33 Unable to build GDB 13.1 on Solaris 11.3 Sparc Nemo Nusquam
2023-03-08 22:19 ` Rainer Orth
2023-03-09  8:08   ` Andreas Schwab
2023-03-09 10:37     ` Rainer Orth
2023-03-09 18:45   ` Nemo Nusquam
2023-03-08 22:43 ` Andrew Pinski
2023-03-09 18:20   ` Nemo Nusquam

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).