Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 943355 - dev-debug/gdb-15.2-r100[guile] requires dev-scheme/guile- 3.0.10-r102[deprecated]
Summary: dev-debug/gdb-15.2-r100[guile] requires dev-scheme/guile- 3.0.10-r102[depreca...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-11-13 11:04 UTC by CaptainBlood
Modified: 2024-12-03 00:20 UTC (History)
1 user (show)

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


Attachments
build log (dev-debug:gdb-15.2-r100:20241113-104805.log.gz,58.34 KB, application/gzip)
2024-11-13 11:05 UTC, CaptainBlood
Details

Note You need to log in before you can comment on or make changes to this bug.
Description CaptainBlood 2024-11-13 11:04:06 UTC
build fails otherwise.

x86_64-pc-linux-gnu-g++ -x c++    -I. -I. -I./config -include ./defs.h -DLOCALEDIR="\"/usr/share/locale\"" -DHAVE_CONFIG_H -I./../include/opcode -I../bfd -I./../bfd -I./../include    -I../libdecnumber -I./../libdecnumber  -I./../gnulib/import -I../gnulib/import -I./.. -I.. -I./../libbacktrace/ -I../libbacktrace/ -DTUI=1   -I/usr/include/guile/3.0   -I./.. -pthread    -Wall -Wpointer-arith -Wno-unused -Wunused-value -Wunused-variable -Wunused-function -Wno-switch -Wno-char-subscripts -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable -Wno-sign-compare -Wno-error=maybe-uninitialized -Wno-mismatched-tags -Wsuggest-override -Wimplicit-fallthrough=5 -Wduplicated-cond -Wshadow=local -Wdeprecated-copy -Wdeprecated-copy-dtor -Wredundant-move -Wmissing-declarations -Wstrict-null-sentinel -Wformat -Wformat-nonliteral  -march=core2 -mtune=native -O2 -flto=1 -fuse-linker-plugin -fno-fat-lto-objects -pipe -Wa,-mbranches-within-32B-boundaries     -c -o guile/guile.o -MT guile/guile.o -MMD -MP -MF guile/.deps/guile.Tpo guile/guile.c
guile/guile.c: In function 'void gdbscm_initialize(const extension_language_defn*)':
guile/guile.c:688:5: error: 'scm_install_gmp_memory_functions' was not declared in this scope
  688 |     scm_install_gmp_memory_functions = 0;
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [Makefile:1951: guile/guile.o] Error 1
make[2]: Leaving directory '/var/tmp/portage/dev-debug/gdb-15.2-r100/work/gdb-15.2/gdb'
make[2]: *** Waiting for unfinished jobs....
make[2]: Entering directory '/var/tmp/portage/dev-debug/gdb-15.2-r100/work/gdb-15.2/gdb'
x86_64-pc-linux-gnu-g++ -x c++    -I. -I. -I./config -include ./defs.h -DLOCALEDIR="\"/usr/share/locale\"" -DHAVE_CONFIG_H -I./../include/opcode -I../bfd -I./../bfd -I./../include    -I../libdecnumber -I./../libdecnumber  -I./../gnulib/import -I../gnulib/import -I./.. -I.. -I./../libbacktrace/ -I../libbacktrace/ -DTUI=1   -I/usr/include/guile/3.0   -I./.. -pthread    -Wall -Wpointer-arith -Wno-unused -Wunused-value -Wunused-variable -Wunused-function -Wno-switch -Wno-char-subscripts -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable -Wno-sign-compare -Wno-error=maybe-uninitialized -Wno-mismatched-tags -Wsuggest-override -Wimplicit-fallthrough=5 -Wduplicated-cond -Wshadow=local -Wdeprecated-copy -Wdeprecated-copy-dtor -Wredundant-move -Wmissing-declarations -Wstrict-null-sentinel -Wformat -Wformat-nonliteral  -march=core2 -mtune=native -O2 -flto=1 -fuse-linker-plugin -fno-fat-lto-objects -pipe -Wa,-mbranches-within-32B-boundaries     -c -o guile/scm-arch.o -MT guile/scm-arch.o -MMD -MP -MF guile/.deps/scm-arch.Tpo guile/scm-arch.c
make[2]: Leaving directory '/var/tmp/portage/dev-debug/gdb-15.2-r100/work/gdb-15.2/gdb'
make[2]: Entering directory '/var/tmp/portage/dev-debug/gdb-15.2-r100/work/gdb-15.2/gdb'
x86_64-pc-linux-gnu-g++ -x c++    -I. -I. -I./config -include ./defs.h -DLOCALEDIR="\"/usr/share/locale\"" -DHAVE_CONFIG_H -I./../include/opcode -I../bfd -I./../bfd -I./../include    -I../libdecnumber -I./../libdecnumber  -I./../gnulib/import -I../gnulib/import -I./.. -I.. -I./../libbacktrace/ -I../libbacktrace/ -DTUI=1   -I/usr/include/guile/3.0   -I./.. -pthread    -Wall -Wpointer-arith -Wno-unused -Wunused-value -Wunused-variable -Wunused-function -Wno-switch -Wno-char-subscripts -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable -Wno-sign-compare -Wno-error=maybe-uninitialized -Wno-mismatched-tags -Wsuggest-override -Wimplicit-fallthrough=5 -Wduplicated-cond -Wshadow=local -Wdeprecated-copy -Wdeprecated-copy-dtor -Wredundant-move -Wmissing-declarations -Wstrict-null-sentinel -Wformat -Wformat-nonliteral  -march=core2 -mtune=native -O2 -flto=1 -fuse-linker-plugin -fno-fat-lto-objects -pipe -Wa,-mbranches-within-32B-boundaries     -c -o guile/scm-auto-load.o -MT guile/scm-auto-load.o -MMD -MP -MF guile/.deps/scm-auto-load.Tpo guile/scm-auto-load.c
make[2]: Leaving directory '/var/tmp/portage/dev-debug/gdb-15.2-r100/work/gdb-15.2/gdb'
make[1]: *** [Makefile:9987: all-gdb] Error 2
make: *** [Makefile:1028: all] Error 2
 * ERROR: dev-debug/gdb-15.2-r100::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=dev-debug/gdb-15.2-r100::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-debug/gdb-15.2-r100::gentoo'`.
 * The complete build log is located at '/var/log/portage/dev-debug:gdb-15.2-r100:20241113-104805.log.gz'.
 * For convenience, a symlink to the build log is located at '/var/tmp/portage/dev-debug/gdb-15.2-r100/temp/build.log.gz'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-debug/gdb-15.2-r100/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-debug/gdb-15.2-r100/work/gdb-15.2'
 * S: '/var/tmp/portage/dev-debug/gdb-15.2-r100/work/gdb-15.2'

>>> Failed to emerge dev-debug/gdb-15.2-r100, Log file:


Reproducible: Always
Comment 1 CaptainBlood 2024-11-13 11:05:01 UTC
Created attachment 908635 [details]
build log
Comment 2 Rafał Mużyło 2024-12-03 00:20:56 UTC
Looking at the gdb code, a proposition.

In guile/guile.c, change 

#if SCM_MAJOR_VERSION < 3 || (SCM_MAJOR_VERSION == 3 && SCM_MINOR_VERSION == 0)

to

#if SCM_MAJOR_VERSION < 3 || (SCM_MAJOR_VERSION == 3 && SCM_MINOR_VERSION == 0 && SCM_MICRO_VERSION < 8)

as it was deprecated then.

Given that only only guile 3 version currently in the tree is 3.0.10, should work without changing the dep for gdb.