Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 951652 - dev-debug/gdb-16.2-r2: incompatible with >=dev-util/babeltrace-2.0
Summary: dev-debug/gdb-16.2-r2: incompatible with >=dev-util/babeltrace-2.0
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-03-20 09:02 UTC by Benjamin Block
Modified: 2025-03-20 12:25 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Benjamin Block 2025-03-20 09:02:10 UTC
It seems `gdb-16.2` doesn't built with `babeltrace-2.0.5`, `babeltrace-1.5.11` still works.

When having `babeltrace-2.0.5` installed the `gdb` build fails at the point where it tries to configure `gdb` itself - after having finished building `gdbserver`:

  make[2]: Leaving directory '/home/share/gentoo/var/tmp/portage/dev-debug/gdb-16.2-r2/work/gdb-16.2/gdbserver'
  make[1]: Entering directory '/home/share/gentoo/var/tmp/portage/dev-debug/gdb-16.2-r2/work/gdb-16.2'
  Configuring in ./gdb
  configure: loading site script /home/share/gentoo/usr/share/config.site
  configure: loading site script /home/share/gentoo/usr/share/config.site.d/80crossdev.conf
  configure: creating cache ./config.cache
  checking whether to enable maintainer-specific portions of Makefiles... no
  checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc
  checking whether the C compiler works... yes
  checking for C compiler default output file name... a.out
  checking for suffix of executables...
  ..
  checking whether to use babeltrace... yes
  checking for libbabeltrace... no
  configure: error: babeltrace is missing or unusable
  make[1]: *** [Makefile:10313: configure-gdb] Error 1
  make[1]: Leaving directory '/home/share/gentoo/var/tmp/portage/dev-debug/gdb-16.2-r2/work/gdb-16.2'
  make: *** [Makefile:1028: all] Error 2

Looking into `config.log` for this run I see:

  configure:33093: checking whether to use babeltrace
  configure:33095: result: yes
  configure:33535: checking for libbabeltrace
  configure:33565: x86_64-pc-linux-gnu-gcc -o conftest -O2 -pipe -O3 -pipe -march=tigerlake -mtune=tigerlake     -Werror   -Wl,-O1 -Wl,--as-needed conftest.c -ltinfow -lncursesw -lm  -lbabeltrace -lbabeltrace-ctf >&5
  conftest.c:214:10: fatal error: babeltrace/babeltrace.h: No such file or directory
    214 | #include <babeltrace/babeltrace.h>
        |          ^~~~~~~~~~~~~~~~~~~~~~~~~
  compilation terminated.
  configure:33565: $? = 1
  configure: failed program was:

You see it tries to include `babeltrace/babeltrace.h` in this test; but `babeltrace-2.0.5` doesn't ship that anymore (supposedly because it's incompatible with the old 1.0 API):

   $ q qlist babeltrace | grep 'babeltrace\.h'
  /home/share/gentoo/usr/include/babeltrace2/babeltrace.h

Manually masking `=dev-util/babeltrace-2.0` works. It'll pull in the older `babeltrace-1.5.11` and `gdb` builds again.

Reproducible: Always