public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug build/28332] New: [11 regression] configure check for GMP is insufficient
@ 2021-09-13  8:39 ro at gcc dot gnu.org
  2021-09-13  8:45 ` [Bug build/28332] " ro at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: ro at gcc dot gnu.org @ 2021-09-13  8:39 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=28332

            Bug ID: 28332
           Summary: [11 regression] configure check for GMP is
                    insufficient
           Product: gdb
           Version: 11.1
            Status: NEW
          Severity: normal
          Priority: P2
         Component: build
          Assignee: unassigned at sourceware dot org
          Reporter: ro at gcc dot gnu.org
  Target Milestone: ---
              Host: sparcv9-sun-solaris2.11, amd64-pc-solaris.2.11
            Target: sparcv9-sun-solaris2.11, amd64-pc-solaris.2.11
             Build: sparcv9-sun-solaris2.11, amd64-pc-solaris.2.11

gdb's configure check for GMP is insufficient to build gdb 11.1 on Solaris
11.3:

* The bundled gmp is too old (at least for gcc's requirements), and even if it
  were ok for gdb, gmp.h lives in /usr/include/gmp, thus the header isn't
found.

* A self-compiled libgmp isn't found for a 64-bit build.  While the header
lives
  in $prefix/include, the library lives in $prefix/lib/sparcv9 resp.
  $prefix/lib/amd64 for the 64-bit case.  Solaris being multilibbed, the 32-bit
  libraries live in .../lib, while the 64-bit libs live in .../lib/sparcv9 etc.
  subdirs.

gdb's --with-gmp-prefix is not enough to describe this situation because it
only
supports $prefix/include and $prefix/lib.  Neither the Solaris 11.3-native
/usr/include/gmp directory for the header no the non-default
$prefix/lib/{sparcv9,amd64} can be described that way.

I tried configuring with LDFLAGS=-L$prefix/lib/sparcv9 so the library is found
at configure time, but this doesn't work because the link line is

gcc -o conftest -g -O2     -I/vol/gcc/include  -L/vol/gcc/lib/sparcv9
conftest.c -lncurses -lsocket -lnsl -lm  /vol/gcc/lib/libgmp.a

i.e. the static library is specified with a (wrong) full path.

gcc gets things right by providing --with-gmp=$dir for the default case, but
allowing to specify --with-gmp-include and --with-gmp-lib separately to allow
for specific situations.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Bug build/28332] [11 regression] configure check for GMP is insufficient
  2021-09-13  8:39 [Bug build/28332] New: [11 regression] configure check for GMP is insufficient ro at gcc dot gnu.org
@ 2021-09-13  8:45 ` ro at gcc dot gnu.org
  2022-03-06 16:05 ` tromey at sourceware dot org
  2022-03-06 16:09 ` tromey at sourceware dot org
  2 siblings, 0 replies; 4+ messages in thread
From: ro at gcc dot gnu.org @ 2021-09-13  8:45 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=28332

--- Comment #1 from Rainer Orth <ro at gcc dot gnu.org> ---
I also tried passing CPPFLAGS=-I/usr/include/gmp so the bundled gmp.h is found,
but that doesn't work either because that isn't used in the subdir configure
runs.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Bug build/28332] [11 regression] configure check for GMP is insufficient
  2021-09-13  8:39 [Bug build/28332] New: [11 regression] configure check for GMP is insufficient ro at gcc dot gnu.org
  2021-09-13  8:45 ` [Bug build/28332] " ro at gcc dot gnu.org
@ 2022-03-06 16:05 ` tromey at sourceware dot org
  2022-03-06 16:09 ` tromey at sourceware dot org
  2 siblings, 0 replies; 4+ messages in thread
From: tromey at sourceware dot org @ 2022-03-06 16:05 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=28332

Tom Tromey <tromey at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tromey at sourceware dot org

--- Comment #2 from Tom Tromey <tromey at sourceware dot org> ---
There was a thread about unifying the two different flags approaches:

https://sourceware.org/pipermail/gdb-patches/2020-November/173301.html

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Bug build/28332] [11 regression] configure check for GMP is insufficient
  2021-09-13  8:39 [Bug build/28332] New: [11 regression] configure check for GMP is insufficient ro at gcc dot gnu.org
  2021-09-13  8:45 ` [Bug build/28332] " ro at gcc dot gnu.org
  2022-03-06 16:05 ` tromey at sourceware dot org
@ 2022-03-06 16:09 ` tromey at sourceware dot org
  2 siblings, 0 replies; 4+ messages in thread
From: tromey at sourceware dot org @ 2022-03-06 16:09 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=28332

Tom Tromey <tromey at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |DUPLICATE
             Status|NEW                         |RESOLVED

--- Comment #3 from Tom Tromey <tromey at sourceware dot org> ---
I'm arbitrarily picking one bug as the canonical one.

*** This bug has been marked as a duplicate of bug 28500 ***

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

end of thread, other threads:[~2022-03-06 16:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-13  8:39 [Bug build/28332] New: [11 regression] configure check for GMP is insufficient ro at gcc dot gnu.org
2021-09-13  8:45 ` [Bug build/28332] " ro at gcc dot gnu.org
2022-03-06 16:05 ` tromey at sourceware dot org
2022-03-06 16:09 ` tromey at sourceware dot org

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).