Bug 28625 - Can't find libgmp during Configure
Summary: Can't find libgmp during Configure
Status: RESOLVED DUPLICATE of bug 28500
Alias: None
Product: gdb
Classification: Unclassified
Component: build (show other bugs)
Version: 11.1
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
Depends on:
Reported: 2021-11-25 01:04 UTC by Brandon Denton
Modified: 2022-03-06 16:09 UTC (History)
1 user (show)

See Also:
Last reconfirmed: 2022-02-27 00:00:00

Build Configuration lob (5.71 KB, text/plain)
2021-11-25 01:04 UTC, Brandon Denton

Note You need to log in before you can comment on or make changes to this bug.
Description Brandon Denton 2021-11-25 01:04:57 UTC
Created attachment 13804 [details]
Build Configuration lob

I have an 'unusal' libgmp location. I've specified the directory with /include and /lib via --with-gmp=/path/to/gmp/directory. I can see in the config.log file that the correct location is being used in the compilation options but I still receive the

GMP is missing or unusable error.

It looks like the locations for MPC and MPFR are correctly located via the GCC dependencies but GMP is not.

I have GCC 11.2 installed with GMP v6.2.1, MPC v1.2.1 and MPFR v4.1.0. Each installed in their own location.

OS :: Ubuntu 20.04

Thoughts on how I can get GDB v11.1 to install?

configuration log file is attached
Comment 1 Tom Tromey 2022-02-27 20:53:12 UTC
This may be the wrong config.log, because I don't see any direct
checks for GMP in there.
Maybe try a clean build and then look in gdb/config.log.
Comment 2 Tom Tromey 2022-03-06 16:09:06 UTC
>  --with-gmp=/path/to/gmp/directory

Ok, I think this is the top-level option, but gdb has its own flavor
unfortunately.  Using the gdb variant ought to work.

I'm arbitrarily picking one bug as the canonical one here and
marking this one as a dup.

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