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: Mon, 08 May 2023 21:34:22 +0200 Message-ID: <86v8h2k475.fsf@gnu.org> References: <86wn1jtezk.fsf@gnu.org> <83jzxjcac9.fsf@gnu.org> <86h6smopo6.fsf@gnu.org> <835y92dfgd.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36248"; 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 Mon May 08 21:36: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 1pw6eg-0009Bh-DG for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 08 May 2023 21:36:18 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pw6eS-0007CM-2s; Mon, 08 May 2023 15:36:04 -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 1pw6eR-0007Bp-6B for bug-gnu-emacs@gnu.org; Mon, 08 May 2023 15:36:03 -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 1pw6eQ-0001IM-T6 for bug-gnu-emacs@gnu.org; Mon, 08 May 2023 15:36:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pw6eQ-0004g1-P3 for bug-gnu-emacs@gnu.org; Mon, 08 May 2023 15:36: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: Mon, 08 May 2023 19:36: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.168357453617913 (code B ref 63365); Mon, 08 May 2023 19:36:02 +0000 Original-Received: (at 63365) by debbugs.gnu.org; 8 May 2023 19:35:36 +0000 Original-Received: from localhost ([127.0.0.1]:41692 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pw6dz-0004eq-FN for submit@debbugs.gnu.org; Mon, 08 May 2023 15:35:35 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:46322) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pw6dx-0004ec-EB for 63365@debbugs.gnu.org; Mon, 08 May 2023 15:35:33 -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 1pw6dr-00019u-TB; Mon, 08 May 2023 15:35:27 -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=nW9Y5ISufddYf0K0HyeFykw7O+/qXs+Z83p1etyn1Eo=; b=RAqxrXqZxDFedXKLSLNP eEIGrEAkcrLJc/D35+uHh/oSyOh3pC737muKGhHWVZtTo0LosZ1u237aZNv7rTDidkLw/dx3diLvJ ukOzVU9y2JZdlswUn/MStTY4e3ZlFLWYL4sMKTo6anLpgF32IDKIDA4MELtzANiEtTnhDJoXLQHu+ LbBg6sOtQMqJyba5mEeZwg10qiEVmvPnNU2gDDkGgH7rmFTTAHV245B8uUzTuOTkJSg4QutLdYrmP ZmtGgDgLim4GON3fwLt2/veOlJckeo/flZpR3gDUQLRPojdD0k5WRqfEGQZG+42hcwxKQBHJeMV2B qHLjXpy7UfizfA==; Original-Received: from pd9fb7539.dip0.t-ipconnect.de ([217.251.117.57] helo=MUTANT) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pw6dq-0005yq-Hv; Mon, 08 May 2023 15:35:27 -0400 In-Reply-To: <835y92dfgd.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 08 May 2023 18:13:06 +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:261360 Archived-At: Eli Zaretskii writes: > What you need is to run Emacs under GDB while it (Emacs) executes the > command which crashes. To find out what is that crashing command, you > should say: > > $ make V=1 Thanks for the detailed instructions; I will play with it, not there yet. > The recipe goes like this: > > sed -n 's/.*\[\(.*\)]$/\1/p' BACKTRACE | addr2line -C -f -i -p -e BINDIR/EMACS-BINARY > > (It is broken in the manual into two lines, because the line is long, > but it is a single long command that runs Sed and pipes its output > into addr2line, a program that comes with GNU Binutils.) Yes, I think I grasped that one. The problem I'm facing is that my lisp/emacs_backtrace.txt looks like this: Backtrace: 00007ff61166a12e 00007ff611538be1 00007ff611559601 00007ff6116ce84a 00007ff9b7977ff0 ... and the sed command doesn't match on the addresses above. It works for the example given in the manual like this: Backtrace: emacs[0x5094e4] emacs[0x4ed3e6] emacs[0x4ed504] /lib64/libpthread.so.0[0x375220efe0] /lib64/libpthread.so.0(read+0xe)[0x375220e08e] emacs[0x509af6] emacs[0x5acc26] So in my case, sed returns nothing which is piped into addr2line. > Can you show a full C compilation command of one of the C source > files? Like this: > > $ cd /path/to/emacs/src > $ make data.o -W data.c V=1 > > I'd like to see all of the compiler's command-line options your build > uses. It looks like this; line-breaks added manually: --8<---------------cut here---------------start------------->8--- ../lib-src/make-docfile -d . -g dispnew.o frame.o scroll.o \ xdisp.o menu.o window.o charset.o coding.o category.o ccl.o \ character.o chartab.o bidi.o term.o terminal.o xfaces.o \ emacs.o keyboard.o macros.o keymap.o sysdep.o bignum.o buffer.o \ filelock.o insdel.o marker.o minibuf.o fileio.o dired.o cmds.o \ casetab.o casefiddle.o indent.o search.o regex-emacs.o undo.o \ alloc.o pdumper.o data.o doc.o editfns.o callint.o eval.o \ floatfns.o fns.o sort.o font.o print.o lread.o emacs-module.o \ syntax.o bytecode.o comp.o dynlib.o process.o gnutls.o callproc.o \ region-cache.o sound.o timefns.o atimer.o doprnt.o intervals.o \ textprop.o composite.o xml.o lcms.o w32notify.o profiler.o \ decompress.o thread.o systhread.o sqlite.o treesit.o itree.o \ hbfont.o w32fns.o w32menu.o w32reg.o w32font.o w32term.o w32xfns.o \ w32select.o w32uniscribe.o w32cygwinx.o w32.o w32console.o \ w32heap.o w32inevt.o w32proc.o w32image.o fontset.o fringe.o \ image.o json.o > globals.tmp ../build-aux/move-if-change globals.tmp globals.h echo timestamp > gl-stamp gcc -c -mtune=generic \ -DUSE_CRT_DLL=1 \ -I /d/arash/Dev/Emacs/emacs-build-test/nt/inc -Demacs \ -I. -I. -I../lib -I../lib -mtune=generic \ -isystem C:/msys64/mingw64/include/librsvg-2.0 \ -isystem C:/msys64/mingw64/include/glib-2.0 \ -isystem C:/msys64/mingw64/lib/glib-2.0/include \ -isystem C:/msys64/mingw64/include/gdk-pixbuf-2.0 \ -isystem C:/msys64/mingw64/include/libpng16 \ -isystem C:/msys64/mingw64/include/webp \ -DLIBDEFLATE_DLL \ -isystem C:/msys64/mingw64/include/cairo \ -isystem C:/msys64/mingw64/include/freetype2 \ -isystem C:/msys64/mingw64/include/harfbuzz \ -isystem C:/msys64/mingw64/include/pixman-1 \ -isystem C:/msys64/mingw64/include/libxml2 \ -isystem C:/msys64/mingw64/include/webp \ -isystem C:/msys64/mingw64/include/harfbuzz \ -isystem C:/msys64/mingw64/include/freetype2 \ -isystem C:/msys64/mingw64/include/libpng16 \ -isystem C:/msys64/mingw64/include/glib-2.0 \ -isystem C:/msys64/mingw64/lib/glib-2.0/include \ -MMD -MF deps/data.d -MP \ -isystem C:/msys64/mingw64/include/p11-kit-1 \ -fno-common \ -Wall \ -Warith-conversion \ -Wdate-time \ -Wdisabled-optimization \ -Wdouble-promotion \ -Wduplicated-cond \ -Wextra \ -Wformat-signedness \ -Winit-self \ -Winvalid-pch \ -Wlogical-op \ -Wmissing-declarations \ -Wmissing-include-dirs \ -Wmissing-prototypes \ -Wnested-externs \ -Wnull-dereference \ -Wold-style-definition \ -Wopenmp-simd \ -Wpacked \ -Wpointer-arith \ -Wstrict-prototypes \ -Wsuggest-attribute=noreturn \ -Wsuggest-final-methods \ -Wsuggest-final-types \ -Wtrampolines \ -Wuninitialized \ -Wunknown-pragmas \ -Wunused-macros \ -Wvariadic-macros \ -Wvector-operation-performance \ -Wwrite-strings \ -Warray-bounds=2 \ -Wattribute-alias=2 \ -Wformat=2 \ -Wformat-truncation=2 \ -Wimplicit-fallthrough=5 \ -Wshift-overflow=2 \ -Wuse-after-free=3 \ -Wvla-larger-than=4031 \ -Wno-missing-field-initializers \ -Wno-override-init \ -Wno-sign-compare \ -Wno-type-limits \ -Wno-unused-parameter \ -Wno-format-nonliteral \ -Wno-bidi-chars \ -Wno-pointer-sign \ -g3 -O2 -gdwarf-2 data.c --8<---------------cut here---------------end--------------->8--- Best, Arash