From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B3E813858D35; Mon, 13 Sep 2021 08:39:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B3E813858D35 From: "ro at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug build/28332] New: [11 regression] configure check for GMP is insufficient Date: Mon, 13 Sep 2021 08:39:32 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: build X-Bugzilla-Version: 11.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ro at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone cf_gcchost cf_gcctarget cf_gccbuild Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gdb-prs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-prs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Sep 2021 08:39:32 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D28332 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=3D-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=3D$dir for the default case, = but allowing to specify --with-gmp-include and --with-gmp-lib separately to all= ow for specific situations. --=20 You are receiving this mail because: You are on the CC list for the bug.=