/var/tmp/portage/sci-geosciences/gmt-5.4.4/work/gmt-5.4.4/src/common_sighandler.c: In function ‘sig_handler’: /var/tmp/portage/sci-geosciences/gmt-5.4.4/work/gmt-5.4.4/src/common_sighandler.c:190:73: error: ‘sys_siglist’ undeclared (first use in this function) 190 | fprintf (stderr, "ERROR: Caught signal number %d (%s) at\n", sig_num, sys_siglist[sig_num]); | ^~~~~~~~~~~ /var/tmp/portage/sci-geosciences/gmt-5.4.4/work/gmt-5.4.4/src/common_sighandler.c:190:73: note: each undeclared identifier is reported only once for each function it appears in ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.1_desktop_plasma-libressl-20200814-212555 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-7.3.1 [2] x86_64-pc-linux-gnu-10.2.0 * /usr/lib/llvm/10 10.0.1 Available Python interpreters, in order of preference: [1] python3.7 [2] python3.9 (fallback) [3] python3.8 (fallback) [4] python3.6 (fallback) [5] python2.7 (fallback) Available Ruby profiles: [1] ruby25 (with Rubygems) * Available Rust versions: [1] rust-1.45.2 * The Glorious Glasgow Haskell Compilation System, version 8.8.4 timestamp(s) of HEAD at this tinderbox image: /var/db/repos/gentoo Thu Aug 20 01:05:42 PM UTC 2020 /var/db/repos/libressl Mon Aug 10 09:13:35 AM UTC 2020 emerge -qpvO sci-geosciences/gmt [ebuild N ] sci-geosciences/gmt-5.4.4 USE="fftw gdal openmp pcre -doc -examples -gmttria -htmldoc -lapack -pcre2 -threads -tutorial"
Created attachment 655744 [details] emerge-info.txt
Created attachment 655746 [details] emerge-history.txt
Created attachment 655748 [details] environment
Created attachment 655750 [details] etc.portage.tbz2
Created attachment 655752 [details] logs.tbz2
Created attachment 655754 [details] sci-geosciences:gmt-5.4.4:20200820-135003.log
Created attachment 655756 [details] temp.tbz2
I can confirm this issue, I ran into the same today. According to the project's website, version 6.1.1 is available already. Can we maybe get the updated version in portage to overcome the current build issue here?
Can be fixed by replacing the affected line: fprintf (stderr, "ERROR: Caught signal number %d (%s) at\n", sig_num, sys_siglist[sig_num]); by fprintf (stderr, "ERROR: Caught signal number %d (%s) at\n", sig_num, strsignal(sig_num)); IIRC line 190 in .../gmt-5.4.4/src/common_sighandler.c, too lazy to make a patch from that.
Created attachment 680995 [details, diff] Patching common_sighandler.c
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=581973a7c1aff3201ff85b07b7004f53156ce7d0 commit 581973a7c1aff3201ff85b07b7004f53156ce7d0 Author: Jakov Smolic <jakov.smolic@sartura.hr> AuthorDate: 2021-03-02 20:08:06 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2021-03-03 16:51:47 +0000 sci-geosciences/gmt: Apply gcc-10 workaround * Fix undeclared sys_siglist issue. Thanks to hangglider@gmx.de for providing the patch. Thanks-to: hangglider@gmx.de Closes: https://bugs.gentoo.org/738224 Closes: https://bugs.gentoo.org/710088 Signed-off-by: Jakov Smolic <jakov.smolic@sartura.hr> Signed-off-by: Sam James <sam@gentoo.org> sci-geosciences/gmt/files/gmt-5.4.4-sighandler.patch | 14 ++++++++++++++ sci-geosciences/gmt/gmt-5.4.4.ebuild | 7 ++++++- 2 files changed, 20 insertions(+), 1 deletion(-)