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: Mon, 21 Dec 2020 18:21:28 +0200 Message-ID: <83h7ofruyf.fsf@gnu.org> References: <83k0te6c7i.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2990"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 45303@debbugs.gnu.org To: Pal Gloss Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Dec 21 17:22:09 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 1krNwn-0000dL-AA for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 21 Dec 2020 17:22:09 +0100 Original-Received: from localhost ([::1]:42590 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1krNwm-0006aH-CU for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 21 Dec 2020 11:22:08 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37034) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1krNwg-0006a3-9F for bug-gnu-emacs@gnu.org; Mon, 21 Dec 2020 11:22:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36560) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1krNwg-00070E-2I for bug-gnu-emacs@gnu.org; Mon, 21 Dec 2020 11:22:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1krNwf-00064q-VL for bug-gnu-emacs@gnu.org; Mon, 21 Dec 2020 11:22:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 21 Dec 2020 16:22:01 +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.160856771023339 (code B ref 45303); Mon, 21 Dec 2020 16:22:01 +0000 Original-Received: (at 45303) by debbugs.gnu.org; 21 Dec 2020 16:21:50 +0000 Original-Received: from localhost ([127.0.0.1]:48106 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1krNwU-00064N-F1 for submit@debbugs.gnu.org; Mon, 21 Dec 2020 11:21:50 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:43844) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1krNwS-000647-Gi for 45303@debbugs.gnu.org; Mon, 21 Dec 2020 11:21:49 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:40103) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1krNwN-0006uQ-5v; Mon, 21 Dec 2020 11:21:43 -0500 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:3885 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1krNwM-0008GH-Bc; Mon, 21 Dec 2020 11:21:42 -0500 In-Reply-To: (message from Pal Gloss on Mon, 21 Dec 2020 11:10:15 +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:196543 Archived-At: > From: Pal Gloss > Date: Mon, 21 Dec 2020 11:10:15 +0100 > > Not quite: -lgccjit was still needed for strsignal. Note that the strsignal is a > double problem: > 1. Because configure can link the test program with the call to strsignal because > libgccjit exports it (though Eli argues it shouldn't and I've reported an issue > to the mingw64-packages repository), no special provision is made to include a > header defining the function. Hence, during compilation, there are several > warnings that gcc assumes that strsignal returns an int and has to cast it to > const char*. > 2. Because -lgccjit is not added to LIBGCCJIT (it is supposed to be loaded > dynamically, if I understood it right), strsignal is not found at linking time. > > So, even when hacking the LIBGCCJIT to contain -lgccjit in src/Makefile, I'm just > allowing the linking to succeed, but probably risk a crash because the linked > function strsignal does not match the implicit definition assumed by gcc (?). > > In the end, I've applied (see sed script at the bottom of the mail > inside my build commands or the git diff in the build log) AndyM's suggestion > (https://debbugs.gnu.org/cgi/bugreport.cgi?bug=45303#83) to nt/mingw-cfg.site. I think this is the correct solution in this case. No matter what the MSYS2 folks do with the original problem, MinGW doesn't have strsignal and won't have it any time soon, so telling this to configure in mingw.site cannot possibly do any harm.