Continuing debugging, I hope not to the annoyance of the public. My
current path lead me towards assuming a bug in cwrappers that manifests
only with my separate gcc build on Debian, not with a system-provided
gcc on Ubuntu.
Am Thu, 24 Apr 2025 22:26:18 +0200
schrieb "Dr. Thomas Orgis" <thomas.orgis%uni-hamburg.de@localhost>:
So it's searching in the CXX tag definition for a compiler of the same name
as CC? It turns out empty for me.
# ### BEGIN LIBTOOL TAG CONFIG: CXX
[…]
# A language specific compiler.
CC=""
The working build with Ubuntu's system gcc has
CC="c++"
I reproduced the libtool generation now in the work dir.
1. bmake build-env, in there
2. make new work directory, call ../gdb-16.2/configure
3. mkdir gdb; ../../gdb-16.2/gdb/configure; cd ..
4. mkdir gdb-no-cwrapper; PATH=$(drop_cwrapper_path $PATH) ../../gdb-16.2/gdb/configure; cd ..
The difference in the two generated gdb/libtool files is apparent: