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#63365: 30.0.50; GCC 13.1 breaks building Emacs with native-compilation Date: Sun, 28 May 2023 09:55:38 +0300 Message-ID: <83h6rxhrmd.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> <86lehbi6pu.fsf@gnu.org> <83r0r3jjka.fsf@gnu.org> <86wn0unbjd.fsf@gnu.org> <83fs7ijou6.fsf@gnu.org> <867csujb31.fsf@gnu.org> <835y8ej9f3.fsf@gnu.org> <86zg5psmnj.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5014"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 63365@debbugs.gnu.org, akrl@sdf.org To: Arash Esbati Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun May 28 08:56: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 1q3AKA-000197-FV for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 28 May 2023 08:56:18 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q3AJz-00069D-VD; Sun, 28 May 2023 02:56:07 -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 1q3AJu-00067R-Cs for bug-gnu-emacs@gnu.org; Sun, 28 May 2023 02:56: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 1q3AJu-0001Sx-4k for bug-gnu-emacs@gnu.org; Sun, 28 May 2023 02:56:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q3AJu-00032h-1a for bug-gnu-emacs@gnu.org; Sun, 28 May 2023 02:56:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 28 May 2023 06:56:01 +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.168525691411636 (code B ref 63365); Sun, 28 May 2023 06:56:01 +0000 Original-Received: (at 63365) by debbugs.gnu.org; 28 May 2023 06:55:14 +0000 Original-Received: from localhost ([127.0.0.1]:53064 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q3AJ8-00031c-1B for submit@debbugs.gnu.org; Sun, 28 May 2023 02:55:14 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:52820) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q3AJ6-00031O-3q for 63365@debbugs.gnu.org; Sun, 28 May 2023 02:55:12 -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 1q3AJ0-0001Ac-QQ; Sun, 28 May 2023 02:55:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=wlE4iDWkMaoMa88DXtpIunrPzeIy9d2Upc2+PkdRIPM=; b=D3gaV1skXpKL e7LK/3XtGgbLwdJupYTEKMjqIqdZj/hSYqgoicWzUh41hJPmCI3AzpY3gCXsHczq3aw9FLdLSXXl/ VV2nah1tdhKlAd0vLSIlfNZVnOgCzcDHTiDmf1e/o49+VvU3VxOTxSVkzh/f8P/FNCvbhlnMEHf/h cpus0gbZDesal2BQ8BUluS9D7zyymbzV88OTReo4TYuAOIts4lx5Jz/0TbHpFJ9M/B48tFatLqk4k TAsP/1FNOdR47j3eqOXVrbJgB6cRO2MLsBWduj7Z3/zgaVaDMikjkyXXfVXjxLtkUWL9ovB8a/wGE JLA2J2X4DF1dpbrwr3+mpg==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q3AIw-0005s2-HO; Sun, 28 May 2023 02:55:06 -0400 In-Reply-To: <86zg5psmnj.fsf@gnu.org> (message from Arash Esbati on Sat, 27 May 2023 19:35:12 +0200) 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:262516 Archived-At: > From: Arash Esbati > Cc: 63365@debbugs.gnu.org, akrl@sdf.org > Date: Sat, 27 May 2023 19:35:12 +0200 > > Eli Zaretskii writes: > > > Yes, please. > > So these are the addresses I get for apropos.el: > > --8<---------------cut here---------------start------------->8--- > '../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 apropos.el Thanks. It is a very strange crash, to say the least: we seem to crash because we access an array out of its bounds or something. Did you say that the problem goes away if you configure without native-compilation? If so, let's wait for Andrea to fix the problems with that on master, and try again. Or did you also see similar problems on the emacs-29 branch? If this is not related to native-compilation, my first suspect is GCC optimizations. Try building with -Og or -O1, and see if that avoids the problem. Or just downgrade to GCC 12 and wait for the GCC folks to get their act together. (IME, using GCC version N.1 is not recommended if you want to make sure your development environment remains stable. This is especially true for platforms like MS-Windows, which are not the main target for GCC development.)