Subject: Re: bug#45303: #45303 [feature/native-comp] building error on Windows ... strsignal in msys2/mingw64

From: Pal Gloss <[email-masked]>
Date: Sat, 19 Dec 2020 20:08:07 +0100

strsignal is in libgccjit.dll.a but not in libgccjit-0.dll:

$ for f in /mingw64/bin/libgccjit-0.dll /mingw64/lib/libgccjit.dll.a ; do (nm -A "$f" | grep strsignal) || echo "Not found in $f" ; done
Not found in /mingw64/bin/libgccjit-0.dll
C:/msys64/mingw64/lib/libgccjit.dll.a:d025724.o:0000000000000000 I __imp_strsignal
C:/msys64/mingw64/lib/libgccjit.dll.a:d025724.o:0000000000000000 T strsignal

$ gdb ../dest/bin/emacs.exe
GNU gdb (GDB) 10.1
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-w64-mingw32".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ../dest/bin/emacs.exe...
(gdb) rbreak strsignal
Breakpoint 1 at 0x4000ce210: file ../../emacs/src/sysdep.c, line 2616.
const char *safe_strsignal(int);
Breakpoint 2 at 0x400209fc8
<function, no debug info> strsignal;
(gdb)