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 Date: Sat, 19 Dec 2020 19:37:49 +0200 Message-ID: <83ft41u26q.fsf@gnu.org> References: <83k0te6c7i.fsf@gnu.org> <86pn35n9ry.fsf@gmail.com> <83lfdtu60h.fsf@gnu.org> <86h7ohogyx.fsf@gmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27110"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 45303@debbugs.gnu.org To: Andy Moreton Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 19 18:39:11 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 1kqgCD-0006w3-Lf for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 19 Dec 2020 18:39:09 +0100 Original-Received: from localhost ([::1]:38428 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kqgCC-0006tc-8u for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 19 Dec 2020 12:39:08 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50684) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kqgC6-0006tI-Fc for bug-gnu-emacs@gnu.org; Sat, 19 Dec 2020 12:39:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59753) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kqgC6-00031q-8u for bug-gnu-emacs@gnu.org; Sat, 19 Dec 2020 12:39:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kqgC6-0006So-6M for bug-gnu-emacs@gnu.org; Sat, 19 Dec 2020 12:39: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 17:39: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.160839949724788 (code B ref 45303); Sat, 19 Dec 2020 17:39:02 +0000 Original-Received: (at 45303) by debbugs.gnu.org; 19 Dec 2020 17:38:17 +0000 Original-Received: from localhost ([127.0.0.1]:43066 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kqgBM-0006Rk-U5 for submit@debbugs.gnu.org; Sat, 19 Dec 2020 12:38:17 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:57400) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kqgBL-0006RW-SW for 45303@debbugs.gnu.org; Sat, 19 Dec 2020 12:38:16 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:58750) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kqgBG-0002wp-JC; Sat, 19 Dec 2020 12:38:10 -0500 Original-Received: from [176.228.60.248] (port=2084 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kqgBF-0005zw-Hs; Sat, 19 Dec 2020 12:38:09 -0500 In-Reply-To: <86h7ohogyx.fsf@gmail.com> (message from Andy Moreton on Sat, 19 Dec 2020 17:15:02 +0000) 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:196402 Archived-At: > From: Andy Moreton > Date: Sat, 19 Dec 2020 17:15:02 +0000 > > > I must be missing something, because I don't see strsignal used on > > master in the MinGW build at all. Moreover, Gnulib's strsignal.c is > > not even in lib/. We call sigdescr_np instead. So I wonder how did > > you see that the Gnulib replacement for strsignal is used on master in > > the Windows build. > > Entirely possible that I have misunderstood something from reading > sources and grepping (the gnulib gyrations are hard to follow). > > The emacs source calls strsignal, and something provides it (whether via > a macro replacement or a linkable symbol). The only difference I could > see was the configure test, as noted above. The ultimate test is this: gdb ./emacs.exe GNU gdb (GDB) 10.1 Copyright (C) 2020 Free Software Foundation, Inc. ... (gdb) rbreak strsignal On my system, I see just this: Breakpoint 2 at 0x119b88b: file sysdep.c, line 2617. const char *safe_strsignal(int); > I see that src/syssignal.h has a replacement macro: > > #ifndef HAVE_STRSIGNAL > # define strsignal(sig) safe_strsignal (sig) > #endif > > So is the problem that on the native branch the configure test succeeds > and sets HAVE_STRSIGNAL, resulting in trying to link the wrong symbol ? Possibly. The question is, how come the test succeeds? Can you look in libjccjit.a with "nm -A" and see if it exports strsignal?