About gmp and mpfr dependencies for gdb building

Iru Cai vimacs.hacks@gmail.com
Thu Mar 13 08:32:48 GMT 2025


On 3/13/25 16:14, lijiang via Gdb wrote:
> Hi,
>
> For the gmp and mpfr dependency libs, is it possible to provide an option
> to enable/disable the gmp and mpfr instead of forcely enabling them when
> building gdb?
>
> Sometimes, we would like to cross compile the gdb in the crash-utility, but
> we did not run into any issues before upgrading to gdb 16.2.
>
> BTW: crash-utility used gdb-10.2 before upgrading to gdb-16.2
>
> Any ideas or suggestions?
>
>
> Thanks
> Lianbo

Hi Lianbo,

It seems that gdb cannot be built without gmp and mpfr. You can download 
the gmp and mpfr tarball and unpack them to the binutils-gdb source 
tree, rename gmp-<version>, mpfr-<version> to gmp, mpfr, then building 
gdb will also build the bundled gmp and mpfr, just like the gcc build 
system.

Iru



More information about the Gdb mailing list