From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: StrawberryTea Newsgroups: gmane.emacs.bugs Subject: bug#69689: 30.0.50; cannot native compile with -flto in native-comp-compiler-options Date: Sat, 09 Mar 2024 21:19:57 -0600 Message-ID: <87frwyepsy.fsf@strawberrytea.xyz> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19110"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.12.0; emacs 30.0.50 To: 69689@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Mar 10 04:21:03 2024 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 1rj9k8-0004dH-67 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 10 Mar 2024 04:21:02 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rj9jl-0007tC-AG; Sat, 09 Mar 2024 22:20:33 -0500 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 1rj9ji-0007sp-6m for bug-gnu-emacs@gnu.org; Sat, 09 Mar 2024 22:20:31 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rj9jh-00042e-CF for bug-gnu-emacs@gnu.org; Sat, 09 Mar 2024 22:20:29 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rj9kD-0005tF-Re for bug-gnu-emacs@gnu.org; Sat, 09 Mar 2024 22:21:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: StrawberryTea Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 10 Mar 2024 03:21:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 69689 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.171004083822597 (code B ref -1); Sun, 10 Mar 2024 03:21:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 10 Mar 2024 03:20:38 +0000 Original-Received: from localhost ([127.0.0.1]:35107 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rj9jp-0005sP-UM for submit@debbugs.gnu.org; Sat, 09 Mar 2024 22:20:38 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:37544) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rj9jo-0005sG-2x for submit@debbugs.gnu.org; Sat, 09 Mar 2024 22:20:37 -0500 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 1rj9jG-0007pz-IV for bug-gnu-emacs@gnu.org; Sat, 09 Mar 2024 22:20:02 -0500 Original-Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rj9jE-0003Zv-Mt for bug-gnu-emacs@gnu.org; Sat, 09 Mar 2024 22:20:02 -0500 Original-Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id E47FB5C004B; Sat, 9 Mar 2024 22:19:58 -0500 (EST) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Sat, 09 Mar 2024 22:19:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= strawberrytea.xyz; h=cc:content-type:content-type:date:date:from :from:in-reply-to:message-id:mime-version:reply-to:subject :subject:to:to; s=fm2; t=1710040798; x=1710127198; bh=9LG0fcpGEV VaQh9d2A661niR68x0y8YOWeKzf/xwG7Y=; b=hOpr6eCaepoRoTAjomdgtroLyG pN7fYkfvJdOfsTdPkvXz2MO92w9QkAAm9iPd45KAzivVaukhvi4ONhIuJt2P4Gz8 4HoGHuupQ4cnTlWn0e+ibdhQnoeycxhg9PnKypdOiQsoSob0naDCR1rP6Rk4Pijx w6pB8spoc31WFL5VjaNMcU289+Lc8k+m0OB/tCbObsQBgmCENhEoOCUKetBc+zfr sLLVfm9FHCWsCQTwPDdo2Z+26FylKtoCDheDzNzUEo4pdTPbeMUVsh01kvX3Qk8E mGelkXiP0fnn1+cVZpfdyh7xXellHacxosfz3/2UJH3LuQqKdOTxMHjWFhQA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:message-id :mime-version:reply-to:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1710040798; x=1710127198; bh=9LG0fcpGEVVaQh9d2A661niR68x0y8YOWeK zf/xwG7Y=; b=Dbu56zC01nn92kb7ypLQdP0xa2lEHOUGrukKBDF/wgZQlPX5cUE OqTXUc8NoU44KZhMxrKeQ7wX/1krRbwpvn+YPwCBAzXIz7nJUnkaWkg317Z32VdI hpf8K/4TVDPikC5pp+p55vpZPBIkEzjMmvPOskpt78VQJZFVUVfO2md5njaF3qvV d5GCe6RObYkioKirLBOkUwiZr2rk7t02tw5VySnsFcCEbAe4AgqB0AE4ymbj56Y9 3+3RM4ZHcuMrjbiR4XzWS3WvMyGq8ptDSwxBuWo4o2kPlzyxZGE7ZyRpZGHU8h2A N6frW8bYzB24wwntx3OSbEdfUvvOhh0yzPg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrieekgdehjecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecufghrlhcuvffnffculddvfedmnecujfgurhephffvuf gffffkgggtsehttdertddtredtnecuhfhrohhmpefuthhrrgifsggvrhhrhifvvggruceo lhhoohhksehsthhrrgifsggvrhhrhihtvggrrdighiiiqeenucggtffrrghtthgvrhhnpe ettdetjeelfeeluddvvdeuteehteejudffhfettdeuvedtjeffveetgedtteeujeenucff ohhmrghinhepghgvnhhtohhordhorhhgpddtgidtrdhsthenucevlhhushhtvghrufhiii gvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehlohhokhesshhtrhgrfigsvghrrhih thgvrgdrgiihii X-ME-Proxy: Feedback-ID: id85149b6:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 9 Mar 2024 22:19:58 -0500 (EST) Received-SPF: pass client-ip=66.111.4.26; envelope-from=look@strawberrytea.xyz; helo=out2-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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:281366 Archived-At: Hello Emacs developers, I am trying to native compile Emacs with the -flto flag patched into the native-comp-compiler-options variable. However, when I do this, I get the following error: /usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/app-editors/emacs-30.0.9999/temp/ccW8pLE7.o: plugin needed to handle lto object /usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/app-editors/emacs-30.0.9999/temp/ccW8pLE7.o: plugin needed to handle lto object lto1: internal compiler error: original not compressed with zstd 0x11b434d internal_error(char const*, ...) ???:0 0x128df56 cgraph_node::get_untransformed_body() ???:0 0x128d4c3 cgraph_node::expand() ???:0 0x19c264f symbol_table::compile() ???:0 0x19b6f50 lto_main() ???:0 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See for instructions. make[4]: *** [/var/tmp/portage/app-editors/emacs-30.0.9999/temp/ccZwblRQ.mk:2: /var/tmp/portage/app-editors/emacs-30.0.9999/temp/ccq4BEJb.ltrans0.ltrans.o] Error 1 lto-wrapper: fatal error: make returned 2 exit status compilation terminated. collect2: fatal error: lto-wrapper returned 1 exit status compilation terminated. libgccjit.so: error: error invoking gcc driver The full build log is here: https://0x0.st/HhAc.txt Build environment: https://0x0.st/HhAT.txt emerge --info output (I use Gentoo): https://0x0.st/HhAm.txt Sincerely, StrawberryTea