public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: Nat! <nat@mulle-kybernetik.com>
To: gdb@sourceware.org
Subject: Problem building the gdb-14-branch probably due to GMP
Date: Mon, 18 Mar 2024 16:02:35 +0100	[thread overview]
Message-ID: <09734b18-ceb2-4f72-ac1c-6dbb26a41ea4@mulle-kybernetik.com> (raw)

[-- 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
```


             reply	other threads:[~2024-03-18 15:02 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-18 15:02 Nat! [this message]
2024-03-18 15:17 ` Willgerodt, Felix

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=09734b18-ceb2-4f72-ac1c-6dbb26a41ea4@mulle-kybernetik.com \
    --to=nat@mulle-kybernetik.com \
    --cc=gdb@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).