GDB build error with guile v3.0.8

Tiezhu Yang yangtiezhu@loongson.cn
Wed Jul 6 01:27:42 GMT 2022


When build GDB with guile v3.0.8, there exists the following build error:

/home/loongson/gdb.git/gdb/guile/guile.c:680:5: 
error:‘scm_install_gmp_memory_functions’ is deprecated 
[-Werror=deprecated-declarations]

This is because scm_install_gmp_memory_functions is deprecated since 
guile v3.0.7.
http://git.savannah.gnu.org/gitweb/?p=guile.git;a=commitdiff;h=aa5455ea98a7

Using "/home/loongson/gdb.git/configure --without-guile" can avoid the 
above issue.
But what is the proper way to fix the build error?
Just delete "scm_install_gmp_memory_functions = 0;" in gdb/guile/guile.c?

Thanks,
Tiezhu



More information about the Gdb-patches mailing list