From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrea Corallo via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#45303: #45303 [feature/native-comp] building error on Windows Date: Mon, 21 Dec 2020 12:08:14 +0000 Message-ID: References: <83k0te6c7i.fsf@gnu.org> Reply-To: Andrea Corallo Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11186"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) 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 13:09:41 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 1krK0T-0002oQ-Mk for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 21 Dec 2020 13:09:41 +0100 Original-Received: from localhost ([::1]:43672 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1krK0S-0006CM-Fb for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 21 Dec 2020 07:09:40 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37662) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1krJzq-0005cM-Kl for bug-gnu-emacs@gnu.org; Mon, 21 Dec 2020 07:09:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34914) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1krJzq-0002zn-CO for bug-gnu-emacs@gnu.org; Mon, 21 Dec 2020 07:09:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1krJzq-0006QX-7e for bug-gnu-emacs@gnu.org; Mon, 21 Dec 2020 07:09:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 21 Dec 2020 12:09: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.160855250024544 (code B ref 45303); Mon, 21 Dec 2020 12:09:02 +0000 Original-Received: (at 45303) by debbugs.gnu.org; 21 Dec 2020 12:08:20 +0000 Original-Received: from localhost ([127.0.0.1]:46460 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1krJzA-0006No-AO for submit@debbugs.gnu.org; Mon, 21 Dec 2020 07:08:20 -0500 Original-Received: from mab.sdf.org ([205.166.94.33]:37354 helo=ma.sdf.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1krJz7-0006NM-DX for 45303@debbugs.gnu.org; Mon, 21 Dec 2020 07:08:19 -0500 Original-Received: from akrl by ma.sdf.org with local (Exim 4.92) (envelope-from ) id 1krJz4-0007SD-Ky; Mon, 21 Dec 2020 12:08:14 +0000 In-Reply-To: (Pal Gloss's message of "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:196533 Archived-At: Pal Gloss writes: >> There are still problems related to the usage of Fdirectory_files and >> internal_condition_case_5 I think. At least, I get a crash after the >> bootstrap is dumped (? see attached build log) >> >> Debugger entered--Lisp error: (wrong-type-argument wholenump t) > > Despite 2526032ea954671aa48a6ad6d924df2941a8364a, this error still happens: > Qt and Qnil should be swapped (see sed script at the bottom of the mail > inside my build commands or the git diff in the build log). Hi Pal thanks for trying. I don't like to run or decript scripts, I like to review and apply patches from contributors, why don't you submit one for this? :) >> >> With 407fb16583 I think '-lgccjit' should be unnecessary on Windows now, is it? >> > >> > It is still needed, see my previous mail. But adding -lgccjit allows the build >> > to proceed but crashes later on. >> >> Hopefully this is fixed now by 3bb2fd0c58? > > 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*. Eli is right, mingw64 should fix this. We might provide the prototype ourselfs but I don't think is a good idea. I think is probably better not to define HAVE_STRSIGNAL depending on libgccjit. Andrea