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#46502: 28.0.50; [feature/native-comp] (d3a399dd) native-comp bootstrap failure Date: Thu, 18 Feb 2021 10:29:41 +0000 Message-ID: References: <87o8gn8ciy.fsf@md5i.com> Reply-To: Andrea Corallo Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35487"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Michael Welsh Duggan , 46502@debbugs.gnu.org To: Pip Cet Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Feb 18 11:30: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 1lCgZX-00098D-HV for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 18 Feb 2021 11:30:11 +0100 Original-Received: from localhost ([::1]:57076 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lCgZW-0001CL-1Z for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 18 Feb 2021 05:30:10 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37820) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lCgZO-0001C6-FD for bug-gnu-emacs@gnu.org; Thu, 18 Feb 2021 05:30:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34620) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lCgZO-0001Lg-7y for bug-gnu-emacs@gnu.org; Thu, 18 Feb 2021 05:30:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lCgZO-00041X-3i for bug-gnu-emacs@gnu.org; Thu, 18 Feb 2021 05:30: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: Thu, 18 Feb 2021 10:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46502 X-GNU-PR-Package: emacs Original-Received: via spool by 46502-submit@debbugs.gnu.org id=B46502.161364418415415 (code B ref 46502); Thu, 18 Feb 2021 10:30:02 +0000 Original-Received: (at 46502) by debbugs.gnu.org; 18 Feb 2021 10:29:44 +0000 Original-Received: from localhost ([127.0.0.1]:46166 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lCgZ6-00040Z-Gg for submit@debbugs.gnu.org; Thu, 18 Feb 2021 05:29:44 -0500 Original-Received: from mx.sdf.org ([205.166.94.24]:61737) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lCgZ4-00040Q-GK for 46502@debbugs.gnu.org; Thu, 18 Feb 2021 05:29:43 -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 11IATf5Q010239 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO); Thu, 18 Feb 2021 10:29:41 GMT In-Reply-To: (Pip Cet's message of "Thu, 18 Feb 2021 10:14:24 +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:200240 Archived-At: Pip Cet writes: > On Thu, Feb 18, 2021 at 10:04 AM Andrea Corallo via Bug reports for > GNU Emacs, the Swiss army knife of text editors > wrote: >> Michael Welsh Duggan writes: >> > I decided to attempt building the native-comp feature branch, since it >> > seems like it may make it to mainline fairly soon. When bootstrapping >> > with >> > >> > make NATIVE_FULL_AOT=3D1 -j 32 bootstrap >> > >> > I get an error compiling gnus/gnus-icalendar.el. I've put the log >> > below. I've updated the emacs information from my running emacs below >> > to match the version of the repository from which I built. >> > >> > >> > In GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo v= ersion 1.16.0) >> > of 2021-02-13 built on miko >> > Repository revision: d3a399dd299bf7e811cf42950d5f8ac67f063b36 >> > Repository branch: native-comp >> > Windowing system distributor 'The X.Org Foundation', version 11.0.1201= 0000 >> > System Description: Debian GNU/Linux bullseye/sid >> > >> > Configured using: >> > 'configure --without-toolkit-scroll-bars --with-x-toolkit=3Dlucid --w= ith-nativecomp' >> > >> > >> > Debugger entered--Lisp error: (error "Lisp nesting exceeds =E2=80=98ma= x-lisp-eval-depth=E2=80=99") >> >> Hi Michael, >> >> just tried compiling the current branch (f92bb788a0) following your >> configuration with no issues. Could you retry on the current head maybe >> starting from a "git clean -xfd" to be on the safe side? > > One thing I've noticed in my experiments is that many builds that are > interrupted at the wrong point and then resumed produce different > results. I.e. you type "make", then hit Ctrl-C at the wrong time, then > type "make" again and you get a different result. > > We should fix that, and it might lead to the behavior Michael has > observed (macroexp being executed from source code when compiling > gnus)... > > BTW, I'm also seeing very deep recursion when building the nativecomp > branch, even outside of the garbage collector (which is easy to "fix" > so it allocates more than one object at the same time on the C stack). > Maybe we can avoid that by doing an -O0 compile first, then compiling > the optimized compiler with the unoptimized one? Agree, I think might be even better in terms of bootstrap time to just byte compile the initial COMPILE_FIRST files and then re-compiling and loading them nativelly later-on (before dumping). Never had time to tackle this. Andrea