Hello Héctor,
Well, I want to fix this bug, because gdb is a very important tool for
me, and compiling gdb from ./configure script is just a hack - not a
real solution (which would eliminate the problem for good).
To do this, I need to have a complete build log with all the
compiler/linker flags, compiler warnings, etc.
Unfortunately, the methods described on the official Debian Wiki page
does not allow to build gdb from source package -> "debuild" fails to
produce the binary shipped by Debian. (I would say that this deserves a
separate BUG report).
Now, the "hacked" gdb is also different - so the first step is to find
differences in the build process, like the exact list of features
enabled/disabled.
So, can You please explain how did You build the gdb?
Regards.
On Mon, 13 Nov 2023 22:20:28 +0100
=?UTF-8?B?SMOpY3RvciBPcsOzbiBNYXJ0w61uZXo=?= <hector.o...@gmail.com> wrote:
> Hello Tomazzi,
>
> On Mon, 13 Nov 2023 at 21:51, tomazzi <toma...@wp.pl> wrote:
> >
> > Hello,
> >
> > I've just built gdb "the Debian way", to check what are the differences
> > in the build process:
> > $> apt source gdb
> > $> apt build-dep gdb
> > $> debuild -b -uc -us
> >
> > From debuild output:
> >
> > gdb-default: configured with:
> > ...
> > --without-babeltrace
> > --with-babeltrace
> > ...
> > gdb-minimal: configured with:
> > ...
> > --without-babeltrace
> > --with-babeltrace
> > --without-babeltrace
> > ...
> >
> > This looks bad, but the results are even more "interresting":
>
> Latest switch is the one that should be in-use
>
> > The gdb binary installed in the system (**debsums OK**) reports the
> > following configuration (the "show configuration" command, differences
> > only):
> >
> > ...
> > --with-babeltrace
> > --with-mpfr
> > --with-xxhash
> > --with-python=/usr (relocatable)
> > --with-python-libdir=/usr/lib (relocatable)
> > --enable-source-highlight
> > ...
> >
> > The newly "debuild" gdb reports something *different*:
> > ...
> > --without-babeltrace << this: conflicting build flags
> > --without-mpfr
> > --with-xxhash
> > --without-python
> > --without-python-libdir
> > --disable-source-highlight
> > ...
> >
> >
> > The gdb which I've compiled using ./configure script (so *without*
> > Debian patches) reports:
> > ...
> > --with-babeltrace
> > --with-mpfr
> > --without-xxhash << this: libxxhash-dev is installed, but