Problem building the gdb-14-branch probably due to GMP

Nat! <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <[email protected]>
When I build a somewhat slimmed down gdb, I get the following error:

```
   CXX    init.o
   CXXLD  gdb
./libtool: line 5209: cd: no/lib: No such file or directory
libtool: link: cannot determine absolute directory name of `no/lib'
make[2]: *** [Makefile:2186: gdb] Fehler 1
make[2]: Verzeichnis „/home/src/srcL/gdb-14-branch/gdb“ wird verlassen
```

 From the Makefile I deduced that this has something to do with GMP, 
which I don't need, so I configured that out. But it made no difference.

I am on:

```
commit 2b5f0fe3230f707ab736d759af4bf436d2c43837 (HEAD -> master, 
origin/master, origin/HEAD)
Author: Tom Tromey <[email protected]>
Date:   2024-02-14 08:00:03 -0700

     Use string_view in quirk_rust_enum
```

I want to build a slimmed down gdb, therefore I leave out a few 
configuration options.

```
./configure \
    --disable-binutils \
    --disable-ld \
    --disable-gold \
    --disable-gas \
    --disable-sim \
    --disable-gprof \
    --disable-gprofng \
    --disable-libmcheck \
    --disable-gprofng \
    --enable-64-bit-bfd \
    --with-separate-debug-dir="/usr/lib/debug" \
    --with-system-gdbinit="/etc/gdb/gdbinit" \
    --with-curses \
    --without-gmp \
    --without-mpfr \
    --without-expat \
    --without-guile \
    --without-lmza \
    --without-intel-pt \
    --without-python \
    --without-tcl \
    --without-tk \
    --with-tui \
    --without-libunwind-ia64 \
    --without-x \
    --without-babeltrace
```


As an experiement I reduced this to

```
./configure
    --disable-binutils    \
    --disable-ld  \
    --disable-gold \
    --disable-gas \
    --disable-sim \
    --disable-gprof \
    --disable-libmcheck \
    --disable-gprofng \
    --without-gmp
```

and build this (doing a git clean -d -f beforehand. It doesn't work 
either, but on a rerun I get this funny error:

```
configure: loading cache ./config.cache
configure: error: `GMPLIBS' has changed since the previous run:
configure:   former value:  `-Lno/lib -Lno/lib -lmpfr -lgmp'
configure:   current value: `-Lno/lib -lmpfr -lgmp'
configure: error: `GMPINC' has changed since the previous run:
configure:   former value:  `-Ino/include -Ino/include '
configure:   current value: `-Ino/include '
configure: error: in `/home/src/srcL/gdb-14-branch/gdb':
configure: error: changes in the environment can compromise the build
configure: error: run `make distclean' and/or `rm ./config.cache' and 
start over
```

Something seems out of whack with respect to GMP in the build process.

My OS:

```
Distributor ID:    Ubuntu
Description:    Ubuntu 22.04.4 LTS
Release:    22.04
Codename:    jammy
```
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.