From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#45303: #45303 [feature/native-comp] building error on Windows ... strsignal in msys2/mingw64 Date: Sat, 19 Dec 2020 21:29:42 +0200 Message-ID: <837dpdtx09.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21542"; mail-complaints-to="usenet@ciao.gmane.io" Cc: eilz@gnu.org, andrewjmoreton@gmail.com, 45303@debbugs.gnu.org To: Pal Gloss Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 19 20:31:29 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kqhwu-0005Vv-RY for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 19 Dec 2020 20:31:28 +0100 Original-Received: from localhost ([::1]:34618 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kqhwt-0004sQ-PW for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 19 Dec 2020 14:31:27 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40414) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kqhwi-0004q1-Hb for bug-gnu-emacs@gnu.org; Sat, 19 Dec 2020 14:31:18 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59889) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kqhwU-0003a3-A3 for bug-gnu-emacs@gnu.org; Sat, 19 Dec 2020 14:31:07 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kqhwU-0002wS-6w for bug-gnu-emacs@gnu.org; Sat, 19 Dec 2020 14:31:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 19 Dec 2020 19:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45303 X-GNU-PR-Package: emacs Original-Received: via spool by 45303-submit@debbugs.gnu.org id=B45303.160840621311249 (code B ref 45303); Sat, 19 Dec 2020 19:31:02 +0000 Original-Received: (at 45303) by debbugs.gnu.org; 19 Dec 2020 19:30:13 +0000 Original-Received: from localhost ([127.0.0.1]:43202 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kqhvh-0002vN-Eu for submit@debbugs.gnu.org; Sat, 19 Dec 2020 14:30:13 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:47088) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kqhvf-0002uA-Lc for 45303@debbugs.gnu.org; Sat, 19 Dec 2020 14:30:12 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:60321) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kqhva-0003B5-7o; Sat, 19 Dec 2020 14:30:06 -0500 Original-Received: from [176.228.60.248] (port=1061 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kqhvX-0003dK-3u; Sat, 19 Dec 2020 14:30:04 -0500 In-Reply-To: (message from Pal Gloss on Sat, 19 Dec 2020 20:08:07 +0100) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:196419 Archived-At: > From: Pal Gloss > Date: Sat, 19 Dec 2020 20:08:07 +0100 > Sensitivity: Normal > Cc: 45303@debbugs.gnu.org > > 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 Did you try to use pexports to see if the DLL exports strsignal? > 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 This probably means the configure-time test for strsignal should be moved to before the test for libgccjit. But in general, I'd suggest to file a bug report with MSYS2 folks: the DLL and the import library shouldn't export strsignal. > (gdb) rbreak strsignal > Breakpoint 1 at 0x4000ce210: file ../../emacs/src/sysdep.c, line 2616. > const char *safe_strsignal(int); > Breakpoint 2 at 0x400209fc8 > strsignal; And that latter function is in libgccjit DLL?