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#46495: 28.0.50; [native-comp] Build fails for 32bit --with-wide-int Date: Wed, 31 Mar 2021 11:07:20 +0300 Message-ID: <83o8eziw5j.fsf@gnu.org> References: <28FB9567-61E6-4083-8711-6CF6C8A493F4@gnu.org> <86o8gjheaw.fsf@gmail.com> <865z2p0zrq.fsf@gmail.com> <86pn0w59nj.fsf@gmail.com> <83y2eap33a.fsf@gnu.org> <83lfa6kl8s.fsf@gnu.org> <83h7ktlwuy.fsf@gnu.org> <65e12b1d547420e10a19cdad6a33198926abb527.camel@redhat.com> <8335wdknbw.fsf@gnu.org> <83im58k8rb.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32112"; mail-complaints-to="usenet@ciao.gmane.io" Cc: andrewjmoreton@gmail.com, dmalcolm@redhat.com, 46495@debbugs.gnu.org To: Andrea Corallo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Mar 31 10:08:11 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 1lRVta-0008Da-7t for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 31 Mar 2021 10:08:10 +0200 Original-Received: from localhost ([::1]:49202 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lRVtY-0003oS-T3 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 31 Mar 2021 04:08:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56562) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lRVtS-0003oL-41 for bug-gnu-emacs@gnu.org; Wed, 31 Mar 2021 04:08:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41886) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lRVtR-0004pC-T1 for bug-gnu-emacs@gnu.org; Wed, 31 Mar 2021 04:08:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lRVtR-00015w-NA for bug-gnu-emacs@gnu.org; Wed, 31 Mar 2021 04:08:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 31 Mar 2021 08:08:01 +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.16171780384155 (code B ref 46495); Wed, 31 Mar 2021 08:08:01 +0000 Original-Received: (at 46495) by debbugs.gnu.org; 31 Mar 2021 08:07:18 +0000 Original-Received: from localhost ([127.0.0.1]:53432 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lRVsj-00014w-SM for submit@debbugs.gnu.org; Wed, 31 Mar 2021 04:07:18 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:35144) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lRVsg-00014h-4u for 46495@debbugs.gnu.org; Wed, 31 Mar 2021 04:07:16 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:55807) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lRVsa-0004Gd-9A; Wed, 31 Mar 2021 04:07:08 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:2678 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lRVsZ-0007J8-AR; Wed, 31 Mar 2021 04:07:08 -0400 In-Reply-To: (message from Andrea Corallo on Tue, 30 Mar 2021 19:19:12 +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:203335 Archived-At: > From: Andrea Corallo > Cc: dmalcolm@redhat.com, andrewjmoreton@gmail.com, 46495@debbugs.gnu.org > Date: Tue, 30 Mar 2021 19:19:12 +0000 > > >> `batch-native-compile' or `batch-byte-native-compile-for-bootstrap' > >> should be equivalent here as the second is just a way to do only byte > >> compilation for non dumped files when we are not using NATIVE_FULL_AOT. > > > > Then I guess I'm missing something: how does Emacs know whether a > > given .eln file should be saved in native-lisp/ or in > > ~/.emacs.d/eln-cache/? > > Ops apologies you are correct, `batch-byte-native-compile-for-bootstrap' > also select as destination folder the `native-lisp' directory in the > build tree. It is correct to invoke > `batch-byte-native-compile-for-bootstrap' if we want the .eln to be > deposed there. OK, thanks. Another nit: the doc string of comp-debug says: 0 no debugging output. This is the recommended value unless you are debugging the compiler itself. 1 emit debug symbols and dump pseudo C code. 2 dump gcc passes and libgccjit log file. 3 dump libgccjit reproducers. But comp.c does this: if (comp.debug) gcc_jit_context_set_bool_option (comp.ctxt, GCC_JIT_BOOL_OPTION_DEBUGINFO, 1); if (comp.debug > 2) { logfile = emacs_fopen ("libgccjit.log", "w"); gcc_jit_context_set_logfile (comp.ctxt, logfile, 0, 0); gcc_jit_context_set_bool_option (comp.ctxt, GCC_JIT_BOOL_OPTION_KEEP_INTERMEDIATES, 1); gcc_jit_context_set_bool_option (comp.ctxt, GCC_JIT_BOOL_OPTION_DUMP_EVERYTHING, 1); } [...] if (comp.debug) gcc_jit_context_dump_to_file (comp.ctxt, format_string ("%s.c", SSDATA (ebase_name)), 1); AFAIU, this means the libgccjit log file is only output with comp-debug 3 and higher? Also, does comp-debug = 3 indeed cause the reproducer to be written, or is that controlled independently by comp-libgccjit-reproducer? And finally, what do you think about moving the gcc_jit_context_dump_to_file call to comp-debug 2 or higher? IOW, make level 1 just add debug info to the *.eln files? Especially if we are going to make comp-debug = 1 the default (as I think we should), wouldn't it be better than the current setup? Or maybe we should introduce an intermediate debug level between the current 0 and 1? And if we make that change, do we also need to bump the ABI number? Thanks.