Re: compiler gdb 15.2 avec support de guile-3
Le 20/11/2024 à 13:58, Basile Starynkevitch a écrit :
Bonjour la liste
Je cherche à configurer GDB 15.2 (dont j'ai téléchargé le code source)
sur une distribution Debianoïde (techniquement Linux Mint 22 Wilma) sur
x86-64 avec le support de GUILE-3.
Bien sûr, s'il existe quelque part un paquet .deb pour ça j'en serais
ravi.
Actuellement la compilation de GDB 15.2 que j'ai configuré avec
./configure --with-gcc-major-version-only --enable-maintainer-mode \
--with-readline --with-guile --program-suffix=-local \
CFLAGS='-O2 -g'
échoue avec le message:make[2]: Entering directory '/usr/src/Tools/gdb-
15.2/libiberty'
echo ./regex.o ./cplus-dem.o ./cp-demangle.o ./md5.o ./sha1.o
./alloca.o ./argv.o ./bsearch_r.o ./choose-temp.o ./concat.o ./cp-
demint.o ./crc32.o ./d-demangle.o ./dwarfnames.o ./dyn-string.o
./fdmatch.o ./fibheap.o ./filedescriptor.o ./filename_cmp.o
./floatformat.o ./fnmatch.o ./fopen_unlocked.o ./getopt.o ./getopt1.o
./getpwd.o ./getruntime.o ./hashtab.o ./hex.o ./lbasename.o
./lrealpath.o ./make-relative-prefix.o ./make-temp-file.o ./objalloc.o
./obstack.o ./partition.o ./pexecute.o ./physmem.o ./pex-common.o
./pex-one.o ./pex-unix.o ./vprintf-support.o ./rust-demangle.o ./safe-
ctype.o ./simple-object.o ./simple-object-coff.o ./simple-object-elf.o
./simple-object-mach-o.o ./simple-object-xcoff.o ./sort.o ./spaces.o
./splay-tree.o ./stack-limit.o ./strerror.o ./strsignal.o ./timeval-
utils.o ./unlink-if-ordinary.o ./xasprintf.o ./xatexit.o ./xexit.o
./xmalloc.o ./xmemdup.o ./xstrdup.o ./xstrerror.o ./xstrndup.o
./xvasprintf.o > required-list
make[3]: Entering directory '/usr/src/Tools/gdb-
15.2/libiberty/testsuite'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/usr/src/Tools/gdb-
15.2/libiberty/testsuite'
make[2]: Leaving directory '/usr/src/Tools/gdb-15.2/libiberty'
make[2]: Entering directory '/usr/src/Tools/gdb-15.2/zlib'
CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/bash /usr/src/Tools/gdb-
15.2/missing aclocal-1.15 -I .. -I ../config
/usr/src/Tools/gdb-15.2/missing: line 81: aclocal-1.15: command not
found
WARNING: 'aclocal-1.15' is missing on your system.
You should only need it if you modified 'acinclude.m4' or
'configure.ac' or m4 files included by 'configure.ac'.
The 'aclocal' program is part of the GNU Automake package:
<http://www.gnu.org/software/automake>
It also requires GNU Autoconf, GNU m4 and Perl in order to
run:
<http://www.gnu.org/software/autoconf>
<http://www.gnu.org/software/m4/>
<http://www.perl.org/>
make[2]: *** [Makefile:490: aclocal.m4] Error 127
make[2]: Leaving directory '/usr/src/Tools/gdb-15.2/zlib'
make[1]: *** [Makefile:10014: all-zlib] Error 2
make[1]: Leaving directory '/usr/src/Tools/gdb-15.2'
make: *** [Makefile:1028: all] Error 2
make[2]: Entering directory '/usr/src/Tools/gdb-15.2/libiberty'
echo ./regex.o ./cplus-dem.o ./cp-demangle.o ./md5.o ./sha1.o
./alloca.o ./argv.o ./bsearch_r.o ./choose-temp.o ./concat.o ./cp-
demint.o ./crc32.o ./d-demangle.o ./dwarfnames.o ./dyn-string.o
./fdmatch.o ./fibheap.o ./filedescriptor.o ./filename_cmp.o
./floatformat.o ./fnmatch.o ./fopen_unlocked.o ./getopt.o ./getopt1.o
./getpwd.o ./getruntime.o ./hashtab.o ./hex.o ./lbasename.o
./lrealpath.o ./make-relative-prefix.o ./make-temp-file.o ./objalloc.o
./obstack.o ./partition.o ./pexecute.o ./physmem.o ./pex-common.o
./pex-one.o ./pex-unix.o ./vprintf-support.o ./rust-demangle.o ./safe-
ctype.o ./simple-object.o ./simple-object-coff.o ./simple-object-elf.o
./simple-object-mach-o.o ./simple-object-xcoff.o ./sort.o ./spaces.o
./splay-tree.o ./stack-limit.o ./strerror.o ./strsignal.o ./timeval-
utils.o ./unlink-if-ordinary.o ./xasprintf.o ./xatexit.o ./xexit.o
./xmalloc.o ./xmemdup.o ./xstrdup.o ./xstrerror.o ./xstrndup.o
./xvasprintf.o > required-list
make[3]: Entering directory '/usr/src/Tools/gdb-
15.2/libiberty/testsuite'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/usr/src/Tools/gdb-
15.2/libiberty/testsuite'
make[2]: Leaving directory '/usr/src/Tools/gdb-15.2/libiberty'
make[2]: Entering directory '/usr/src/Tools/gdb-15.2/zlib'
CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/bash /usr/src/Tools/gdb-
15.2/missing aclocal-1.15 -I .. -I ../config
/usr/src/Tools/gdb-15.2/missing: line 81: aclocal-1.15: command not
found
WARNING: 'aclocal-1.15' is missing on your system.
You should only need it if you modified 'acinclude.m4' or
'configure.ac' or m4 files included by 'configure.ac'.
The 'aclocal' program is part of the GNU Automake package:
<http://www.gnu.org/software/automake>
It also requires GNU Autoconf, GNU m4 and Perl in order to
run:
<http://www.gnu.org/software/autoconf>
<http://www.gnu.org/software/m4/>
<http://www.perl.org/>
make[2]: *** [Makefile:490: aclocal.m4] Error 127
make[2]: Leaving directory '/usr/src/Tools/gdb-15.2/zlib'
make[1]: *** [Makefile:10014: all-zlib] Error 2
make[1]: Leaving directory '/usr/src/Tools/gdb-15.2'
make: *** [Makefile:1028: all] Error 2
J'ai rajouté dans mon $HOME/bin -en tête de mon $PATH- les liens
symboliques suivants
total 0
lrwxrwxrwx 1 basilest basilegr 21 Nov 20 13:40 autoconf ->
/usr/bin/autoconf2.69
lrwxrwxrwx 1 basilest basilegr 23 Nov 20 13:40 autoheader ->
/usr/bin/autoheader2.69
lrwxrwxrwx 1 basilest basilegr 21 Nov 20 13:40 autom4te ->
/usr/bin/autom4te2.69
lrwxrwxrwx 1 basilest basilegr 23 Nov 20 13:40 autoreconf ->
/usr/bin/autoreconf2.69
lrwxrwxrwx 1 basilest basilegr 21 Nov 20 13:40 autoscan ->
/usr/bin/autoscan2.69
lrwxrwxrwx 1 basilest basilegr 23 Nov 20 13:40 autoupdate ->
/usr/bin/autoupdate2.69
lrwxrwxrwx 1 basilest basilegr 20 Nov 20 13:40 ifnames ->
/usr/bin/ifnames2.69
total 0
lrwxrwxrwx 1 basilest basilegr 21 Nov 20 13:40 autoconf ->
/usr/bin/autoconf2.69
lrwxrwxrwx 1 basilest basilegr 23 Nov 20 13:40 autoheader ->
/usr/bin/autoheader2.69
lrwxrwxrwx 1 basilest basilegr 21 Nov 20 13:40 autom4te ->
/usr/bin/autom4te2.69
lrwxrwxrwx 1 basilest basilegr 23 Nov 20 13:40 autoreconf ->
/usr/bin/autoreconf2.69
lrwxrwxrwx 1 basilest basilegr 21 Nov 20 13:40 autoscan ->
/usr/bin/autoscan2.69
lrwxrwxrwx 1 basilest basilegr 23 Nov 20 13:40 autoupdate ->
/usr/bin/autoupdate2.69
lrwxrwxrwx 1 basilest basilegr 20 Nov 20 13:40 ifnames ->
/usr/bin/ifnames2.69
Avez vous des suggestions constructives, ou connaissant d'un dépôt d'un
binaire de gdb compatible avec GUILE?
Librement
NB je cherche aussi des contributeurs à
https://github.com/RefPerSys/RefPerSys/
Bonjour,
rappel: je ne développe pas
Je suppose que si tu cherches à construire gdb toi-même pour deboguer
guile c'est que par défaut le paquet gdb mint n'est pas construit avec
l'option --with-guile que tu spécifié?
dans ce cas, comme tu butes sur une erreur et que je n'ai pas vraiment
regardé de quoi ça pouvait provenir, peut-être, si le principe te paraît
acceptable, pourrais-tu reconstruire le paquet gdb de Mint avec l'option
--with-guile en utilisant apt-src?
la page du wiki Debian sur apt-src (je suppose que c'est applicable à Mint):
Reply to: