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#46495: 28.0.50; [native-comp] Build fails for 32bit --with-wide-int Date: Fri, 19 Feb 2021 14:19:48 +0000 Message-ID: References: <86y2fq93zj.fsf@gmail.com> <83lfbqbq3g.fsf@gnu.org> <868s7pwvq8.fsf@gmail.com> <28FB9567-61E6-4083-8711-6CF6C8A493F4@gnu.org> <86o8gjheaw.fsf@gmail.com> <865z2p0zrq.fsf@gmail.com> 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="12746"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 46495@debbugs.gnu.org To: Andy Moreton Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Feb 19 15:20:15 2021 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 1lD6dj-0003FF-5N for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 19 Feb 2021 15:20:15 +0100 Original-Received: from localhost ([::1]:60360 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lD6di-0006DI-4o for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 19 Feb 2021 09:20:14 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55370) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lD6dW-0006BZ-Fr for bug-gnu-emacs@gnu.org; Fri, 19 Feb 2021 09:20:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37469) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lD6dW-0000ML-8A for bug-gnu-emacs@gnu.org; Fri, 19 Feb 2021 09:20:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lD6dW-0002Zt-3U for bug-gnu-emacs@gnu.org; Fri, 19 Feb 2021 09:20: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: Fri, 19 Feb 2021 14:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46495 X-GNU-PR-Package: emacs Original-Received: via spool by 46495-submit@debbugs.gnu.org id=B46495.16137443909887 (code B ref 46495); Fri, 19 Feb 2021 14:20:02 +0000 Original-Received: (at 46495) by debbugs.gnu.org; 19 Feb 2021 14:19:50 +0000 Original-Received: from localhost ([127.0.0.1]:49015 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lD6dK-0002ZP-Ee for submit@debbugs.gnu.org; Fri, 19 Feb 2021 09:19:50 -0500 Original-Received: from mx.sdf.org ([205.166.94.24]:54911) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lD6dJ-0002ZH-4J for 46495@debbugs.gnu.org; Fri, 19 Feb 2021 09:19:49 -0500 Original-Received: from mab (ma.sdf.org [205.166.94.33]) by mx.sdf.org (8.15.2/8.14.5) with ESMTPS id 11JEJmW4009770 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO); Fri, 19 Feb 2021 14:19:48 GMT In-Reply-To: <865z2p0zrq.fsf@gmail.com> (Andy Moreton's message of "Thu, 18 Feb 2021 22:36:25 +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:200336 Archived-At: Andy Moreton writes: > On Wed 17 Feb 2021, Andrea Corallo via "Bug reports for GNU Emacs, the Swiss army knife of text editors" wrote: > >> Andrea Corallo via "Bug reports for GNU Emacs, the Swiss army knife of >> text editors" writes: >> >>> Andy Moreton writes: >>> >>>> On Tue 16 Feb 2021, Andrea Corallo via "Bug reports for GNU Emacs, the Swiss army knife of text editors" wrote: >>>> >>>>> Andy could you point out the two libgccjit versions you used specifying >>>>> wich one was used in the successfull / failed experiment? >>>> >>>> It seems they both now fail (and I have lost the build log from the >>>> successful experiment, so I don't have a note of the commit used). >>> >>> That's odd. The culprit of the bug I've isolated is a crash in >>> libgccjit so should be easy to recognize (we should never crash in >>> libgccjit). >>> >>> Anyway I've an half cooked patch to work around this issue, I guess I'll >>> test it this evening. >> >> A fix like the attached is working around the GCC bug. >> >> The only annoyance of this approach is that libgccjit for each >> compilation is outputting to console: >> "libgccjit.so: note: disable pass tree-isolate-paths for functions in the range of [0, 4294967295]" >> >> We probably also want to check at configure time and raise an error in >> case configuring --with-nativecomp --with-wide-int but with a (really) >> old libgccjit that does not provide >> 'gcc_jit_context_add_command_line_option'. >> >> Works for me bootstraping Emacs on i686-pc-linux-gnu + GCC10 but I can't >> test the Windows side, Andy would you mind giving it a try? > > I tried doing clean builds (after "git clean -xdf" each time ) both > without and then with this patch. The i686-pc-mingw32 toolchain is: > gcc version 9.2.0 (MinGW.org GCC Build-2). The patch is not affecting GCC9 as initially was reported to be working. If you suspect also 9 is affected you can trivially modify the patch to take effect on 9 too. Andrea