From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrea Corallo Newsgroups: gmane.emacs.bugs Subject: bug#63365: 30.0.50; GCC 13.1 breaks building Emacs with native-compilation Date: Thu, 08 Jun 2023 10:02:22 -0400 Message-ID: References: <86wn1jtezk.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> <83h6rxhrmd.fsf@gnu.org> <86sfb29rvs.fsf@gnu.org> <83a5xa2irq.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24611"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 63365@debbugs.gnu.org, Arash Esbati To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jun 08 16:03:15 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 1q7GEM-0006By-Tr for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 08 Jun 2023 16:03:14 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q7GEC-0004JQ-Lc; Thu, 08 Jun 2023 10:03: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 1q7GEA-000462-Hm for bug-gnu-emacs@gnu.org; Thu, 08 Jun 2023 10:03: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 1q7GEA-0006dc-7o for bug-gnu-emacs@gnu.org; Thu, 08 Jun 2023 10:03:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q7GEA-0000lp-2P for bug-gnu-emacs@gnu.org; Thu, 08 Jun 2023 10:03:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 08 Jun 2023 14:03: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.16862329542920 (code B ref 63365); Thu, 08 Jun 2023 14:03:02 +0000 Original-Received: (at 63365) by debbugs.gnu.org; 8 Jun 2023 14:02:34 +0000 Original-Received: from localhost ([127.0.0.1]:57147 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q7GDh-0000l2-KP for submit@debbugs.gnu.org; Thu, 08 Jun 2023 10:02:34 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:40288) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q7GDe-0000kn-FW for 63365@debbugs.gnu.org; Thu, 08 Jun 2023 10:02:32 -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 1q7GDY-0006TA-SD for 63365@debbugs.gnu.org; Thu, 08 Jun 2023 10:02:24 -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=ARmwv+EohPVYPz4bn7UhXwAb3FA5MZfOW7tKzb0IvO0=; b=Sc/C0fWiV3i/C5tjqkek jYxP5YE3X6ThrIhy0oESM3XCO8CNFKcleLPjXI84j1zq2zTqe9MQEriiG8BbuEMQIRnhRcUskwZy4 v5ub/S0uuERl6YH5XHhvdsJfzwbMJkXsghtIrBMI1XpmRqUF5MxZeSiGKxPpaJHNpizAcSbr29lDu /L57n34v/jmKsIu+Jn9HC13Q/pcgrfaefAlvllwemHcNGtcEH0OSlzSgjLjMMA/EvYCnW1Jc/YuhQ ImexKTUZ7c35tMxxx1xMG6Iges724WChJ5dAn/Ih+Pi7Zy2bLB90GmJBbiUh68vwd6ZZAS7Ks31g3 RsKJ5JReft9HgQ==; Original-Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1q7GDW-0005h6-Ee; Thu, 08 Jun 2023 10:02:22 -0400 In-Reply-To: <83a5xa2irq.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 08 Jun 2023 16:19:53 +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:263125 Archived-At: --=-=-= Content-Type: text/plain Eli Zaretskii writes: >> From: Arash Esbati >> Cc: 63365@debbugs.gnu.org, akrl@sdf.org >> Date: Thu, 08 Jun 2023 12:21:11 +0200 >> >> Eli Zaretskii writes: >> >> > Did you say that the problem goes away if you configure without >> > native-compilation? >> >> Yes, no problems when --without-native-compilation is passed to >> configure. >> >> > If so, let's wait for Andrea to fix the problems with that on master, >> > and try again. >> >> I tried the latest master (a902156068), and the issue remains. >> >> > Or did you also see similar problems on the emacs-29 branch? >> >> Yes, issue remains with 0eba9cf651. > > Andrea, can you suggest some ideas for what to try/test, or > alternatively how to prepare a concise test/reproducer for the GCC > folks? AFAIU, GCC 13.1 does work on GNU/Linux I'm giving it a try mow to be sure. > to produce a working > Emacs with native-compilation, so this is probably Windows-specific. I'd personally start producing an Emacs made only of bytecode but with native compiler capabilies. To achieve this one can hack the Makefile removing the native code specific parts, something like the very much untested attached. --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=build-hack.diff diff --git a/lisp/Makefile.in b/lisp/Makefile.in index 1e0935f565f..635dd7d1450 100644 --- a/lisp/Makefile.in +++ b/lisp/Makefile.in @@ -278,23 +278,9 @@ TAGS: THEFILE = no-such-file .PHONY: $(THEFILE)c $(THEFILE)c: -ifeq ($(HAVE_NATIVE_COMP),yes) - $(AM_V_ELC)$(emacs) $(BYTE_COMPILE_FLAGS) \ - -l comp -f byte-compile-refresh-preloaded \ - -f batch-byte+native-compile $(THEFILE) -else $(AM_V_ELC)$(emacs) $(BYTE_COMPILE_FLAGS) \ -l bytecomp -f byte-compile-refresh-preloaded \ -f batch-byte-compile $(THEFILE) -endif - -ifeq ($(HAVE_NATIVE_COMP),yes) -.PHONY: $(THEFILE)n -$(THEFILE)n: - $(AM_V_ELN)$(emacs) $(BYTE_COMPILE_FLAGS) \ - -l comp -f byte-compile-refresh-preloaded \ - --eval '(batch-native-compile t)' $(THEFILE) -endif # Files MUST be compiled one by one. If we compile several files in a # row (i.e., in the same instance of Emacs) we can't make sure that @@ -323,11 +309,6 @@ .el.elc: -l comp -f batch-byte-compile $< TZ=UTC0 touch -t 197001010000 $@ else -.el.elc: - $(AM_V_ELC)$(emacs) $(BYTE_COMPILE_FLAGS) \ - -l comp -f batch-byte+native-compile $< -endif -else .el.elc: $(AM_V_ELC)$(emacs) $(BYTE_COMPILE_FLAGS) -f batch-byte-compile $< endif --=-=-= Content-Type: text/plain I'd also nil `native-comp-jit-compilation' in the early init. After that one should still be able to run the native compiler testsuite with say: ./src/emacs -batch -l ert -l test/src/comp-tests.el -f ert-run-tests-batch-and-exit We want probably start running first all tests but the bootstrap one and if they pass run this as well. At this point probably start reasoning depending on the output. Best Regards Andrea --=-=-=--