public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* Problem building the gdb-14-branch probably due to GMP
@ 2024-03-18 15:02 Nat!
  2024-03-18 15:17 ` Willgerodt, Felix
  0 siblings, 1 reply; 2+ messages in thread
From: Nat! @ 2024-03-18 15:02 UTC (permalink / raw)
  To: gdb

[-- Attachment #1: Type: text/plain, Size: 2735 bytes --]

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 <tromey@adacore.com>
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
```


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

* RE: Problem building the gdb-14-branch probably due to GMP
  2024-03-18 15:02 Problem building the gdb-14-branch probably due to GMP Nat!
@ 2024-03-18 15:17 ` Willgerodt, Felix
  0 siblings, 0 replies; 2+ messages in thread
From: Willgerodt, Felix @ 2024-03-18 15:17 UTC (permalink / raw)
  To: Nat!, gdb

> -----Original Message-----
> From: Gdb <gdb-bounces+felix.willgerodt=intel.com@sourceware.org> On Behalf
> Of Nat!
> Sent: Montag, 18. März 2024 16:03
> To: gdb@sourceware.org
> Subject: Problem building the gdb-14-branch probably due to GMP
> 
> 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.

Both GMP and MPFR are mandatory to build GDB nowadays:
https://sourceware.org/gdb/current/onlinedocs/gdb.html/Requirements.html

But yes, the error message is not so nice if you don't know about that.

Felix
Intel Deutschland GmbH
Registered Address: Am Campeon 10, 85579 Neubiberg, Germany
Tel: +49 89 99 8853-0, www.intel.de <http://www.intel.de>
Managing Directors: Christin Eisenschmid, Sharon Heck, Tiffany Doon Silva  
Chairperson of the Supervisory Board: Nicole Lau
Registered Office: Munich
Commercial Register: Amtsgericht Muenchen HRB 186928

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

end of thread, other threads:[~2024-03-18 15:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-18 15:02 Problem building the gdb-14-branch probably due to GMP Nat!
2024-03-18 15:17 ` Willgerodt, Felix

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