From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Arash Esbati Newsgroups: gmane.emacs.bugs Subject: bug#63365: 30.0.50; GCC 13.1 breaks building Emacs with native-compilation Date: Fri, 26 May 2023 15:05:01 +0200 Message-ID: <86lehbi6pu.fsf@gnu.org> References: <86wn1jtezk.fsf@gnu.org> <83jzxjcac9.fsf@gnu.org> <86h6smopo6.fsf@gnu.org> <835y92dfgd.fsf@gnu.org> <86v8h2k475.fsf@gnu.org> <83r0rqaycc.fsf@gnu.org> <86wn1h3dpz.fsf@gnu.org> <835y91brfv.fsf@gnu.org> <86fs849xb0.fsf@gnu.org> <83ild08i8j.fsf@gnu.org> <86y1lwmfcw.fsf@gnu.org> <83ild06sb5.fsf@gnu.org> <83a5yc6m2e.fsf@gnu.org> 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="39064"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 63365@debbugs.gnu.org, akrl@sdf.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri May 26 15:06:18 2023 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 1q2X98-0009sI-2Q for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 26 May 2023 15:06:18 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q2X8v-0002xa-DY; Fri, 26 May 2023 09:06:05 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q2X8s-0002xL-LV for bug-gnu-emacs@gnu.org; Fri, 26 May 2023 09:06:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q2X8s-0006jT-C8 for bug-gnu-emacs@gnu.org; Fri, 26 May 2023 09:06:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q2X8s-0005ki-7J for bug-gnu-emacs@gnu.org; Fri, 26 May 2023 09:06:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Arash Esbati Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 26 May 2023 13:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63365 X-GNU-PR-Package: emacs Original-Received: via spool by 63365-submit@debbugs.gnu.org id=B63365.168510634222080 (code B ref 63365); Fri, 26 May 2023 13:06:02 +0000 Original-Received: (at 63365) by debbugs.gnu.org; 26 May 2023 13:05:42 +0000 Original-Received: from localhost ([127.0.0.1]:49078 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q2X8W-0005k4-BR for submit@debbugs.gnu.org; Fri, 26 May 2023 09:05:42 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:36930) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q2X8T-0005jj-JO for 63365@debbugs.gnu.org; Fri, 26 May 2023 09:05:39 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q2X8O-0006VT-5d; Fri, 26 May 2023 09:05:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=otp6k2GtTpNDvSjLYUzsBqVNt+9fxA0cbnboh59sf2Q=; b=qYPiRsG0gn7rKHXieui5 kw3Ekiwx2gkiCfmcqlIp172Skg1hPK3p17submvLtIQdAX9AuVJDEkGuo3SxDemjB6t6kAE7IgDM0 4b7kKaxvHakvABMY2G1Zg0GrEHnYQCUxIm6/F2Y4G3fUF2VEXe2U6PrKt7rz6/Lt0yXxJ52EJhtSj Pvr+92Ti9ax0TYXXDQVBpBqHWJ3S3P13qMRaiBorjxyKje8jejZAj1/A2wze78zslCqOexxVZyiwQ haFmop+8zabWqBQDwuGQrZxz+C4OyZnnEGBH9Vn/TwdVrOt90d0ca71R+OTiF42wtj6zpoflPO8Ek 0ni9ceyVSgT+qQ==; Original-Received: from p5b326c3d.dip0.t-ipconnect.de ([91.50.108.61] helo=MUTANT) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q2X8A-0001Iw-03; Fri, 26 May 2023 09:05:30 -0400 In-Reply-To: <83a5yc6m2e.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 10 May 2023 22:08:57 +0300") 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:262433 Archived-At: Eli Zaretskii writes: > I'd like to see the backtrace from GDB and compare the addresses there > with those in emacs_backtrace.txt. I will try that later. > Did you try to run the crashing command under GDB, as I described > earlier? Yes, I did that now, and the result is odd. I did in the shell (master branch, 0e4cc6a8bf): =E2=80=A2 git clean -fdx =E2=80=A2 ./autogen.sh =E2=80=A2 ./configure --with-native-compilation =E2=80=A2 make V=3D1 which ends with: *** "make all" failed with exit status 2. *** *** You could try to: *** - run "make bootstrap", which might fix the problem *** - run "make V=3D1", which displays the full commands invoked by make, *** to further investigate the problem *** make[1]: *** [Makefile:414: advice-on-failure] Error 2 make[1]: Leaving directory '/z/path/to/emacs-build-test' make: *** [Makefile:370: all] Error 2 Next, I inspected the build failures which look like this for example (line breaks added manually) '../src/emacs.exe' -batch --no-site-file --no-site-lisp \ --eval "(setq load-prefer-newer t byte-compile-warnings 'all)" \ --eval "(setq org--inhibit-version-check t)" \ -l comp -f batch-byte+native-compile obsolete/vip.el Backtrace: 00007ff6ae7fa12e 00007ff6ae6c8be1 [...] 00007ff6ae75e9aa ... make[3]: *** [Makefile:328: obsolete/vip.elc] Error 3 So I followed your advice and did: =E2=80=A2 cd src/ =E2=80=A2 gdb ./emacs.exe =E2=80=A2 (gdb) cd ../lisp =E2=80=A2 (gdb) run -batch --no-site-file --no-site-lisp ... (as above) which returns (line breaks added manually again): Starting program: z:\path\to\emacs-build-test\src\emacs.exe \ -batch --no-site-file --no-site-lisp \ --eval "(setq load-prefer-newer t byte-compile-warnings 'all)" \ --eval "(setq org--inhibit-version-check t)" \ -l comp -f batch-byte+native-compile obsolete/vip.el [New Thread 37728.0x6048] [New Thread 37728.0x73cc] [New Thread 37728.0x5e20] [New Thread 37728.0x84c8] [Thread 37728.0x84c8 exited with code 0] [Thread 37728.0x6048 exited with code 0] [Thread 37728.0x5e20 exited with code 0] [Thread 37728.0x73cc exited with code 0] [Inferior 1 (process 37728) exited normally] Does this make sense? It seems that under GDB, it works fine and it breaks during the normal compilation. I tried it for some other build failures, they work under GDB. Best, Arash