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: Sun, 10 Mar 2024 12:32:25 -0500 Message-ID: <87v85ugfh2.fsf@strawberrytea.xyz> References: <87frwyepsy.fsf@strawberrytea.xyz> <86o7bmwqn8.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="39662"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.12.0; emacs 30.0.50 Cc: 69689@debbugs.gnu.org, Paul Eggert To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Mar 10 18:34:09 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 1rjN3k-0009vt-RM for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 10 Mar 2024 18:34:09 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rjN3D-0002Sz-MY; Sun, 10 Mar 2024 13:33:31 -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 1rjN3C-0002SF-2t for bug-gnu-emacs@gnu.org; Sun, 10 Mar 2024 13:33:30 -0400 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 1rjN3B-0002UH-Qv for bug-gnu-emacs@gnu.org; Sun, 10 Mar 2024 13:33:29 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rjN3j-000884-3r for bug-gnu-emacs@gnu.org; Sun, 10 Mar 2024 13:34:03 -0400 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 17:34:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69689 X-GNU-PR-Package: emacs Original-Received: via spool by 69689-submit@debbugs.gnu.org id=B69689.171009199031113 (code B ref 69689); Sun, 10 Mar 2024 17:34:03 +0000 Original-Received: (at 69689) by debbugs.gnu.org; 10 Mar 2024 17:33:10 +0000 Original-Received: from localhost ([127.0.0.1]:37806 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rjN2r-00085l-SH for submit@debbugs.gnu.org; Sun, 10 Mar 2024 13:33:10 -0400 Original-Received: from wout3-smtp.messagingengine.com ([64.147.123.19]:40481) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rjN2q-00085X-DX for 69689@debbugs.gnu.org; Sun, 10 Mar 2024 13:33:09 -0400 Original-Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id C3BD932001C6; Sun, 10 Mar 2024 13:32:27 -0400 (EDT) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Sun, 10 Mar 2024 13:32:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= strawberrytea.xyz; h=cc:cc:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm2; t=1710091947; x=1710178347; bh=xY14Ws6zCC2HuUM6p4QoAdeKhMEoOxpekWTGzBUVEBk=; b= vWkz6aMgbJGC9OozbMKIHDfMi5v48Zj4EpXaEro/k+ANI10Yc3cY6Hyn/MR/5QVT 6u4sEouGYFxiOn6bXrbouPS44BWrSc/vMwGzc+k0C+uMp+uK+8rM73C4S0JY5k97 jr6dxNRbM4RBhDX+ZYcr6is1SN9fMVUye2x+n67DLWWTStOZP0SsLiJfol1AYl7r BfQKftfY7NeEiLODvqyaCpDBktcIf3NB9Yv+GkZ4AuOPWggeqM2EiogZSd7E4dLO wQrzOBErORMrKnIAI1laqnQhJNEvpewsc27Aa419HOwDz8Hv3UYScYGdtnj3IU41 Fp0eNusUu7Xyq8ekbr8niA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1710091947; x=1710178347; bh=xY14Ws6zCC2HuUM6p4QoAdeKhMEo OxpekWTGzBUVEBk=; b=BMafWUGKPx/Jlq1/ULP2hHY4hnNtZ2s6bic65AdPqTtl uSnysCzz8wFvaT57nn/uWUj/1CbBhBuNSpSYPBsVP64DJSRWfZg6djb24hHR5Gd5 yba7WjZ7yVYn88J5qpyxGAu6tbwFkAHT1VPLkciqlTy0Ko9ES81gLSHKf4KUQuJW XZ0w21JPmku4M4ZY/QLcuVLgKCo22e0F5yUMcCMpPDQuF64Bj+D61yXVaSgZAmzI iTEb90Gr/AxisxnMJvlYesN1vb6OAZ7yqEmMT/erfmd2UZ20tQR6Mq6WXVdtkIBb 3+obpSP6zJBHGTOd4hS+UBDpk6JVcBtMu5sVVzBj5g== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrieelgddutddvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdlfeehmdenucfjughrpefhvfevufgjfhgffffkgggtsehttdertddt redtnecuhfhrohhmpefuthhrrgifsggvrhhrhifvvggruceolhhoohhksehsthhrrgifsg gvrhhrhihtvggrrdighiiiqeenucggtffrrghtthgvrhhnpeefgfeuvefhledtudevhffh hfeugeehffejhfduhfdufeehhfevgfffgfeffffggfenucffohhmrghinhepghgvnhhtoh hordhorhhgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhho mheplhhoohhksehsthhrrgifsggvrhhrhihtvggrrdighiii X-ME-Proxy: Feedback-ID: id85149b6:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 10 Mar 2024 13:32:26 -0400 (EDT) In-Reply-To: <86o7bmwqn8.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 10 Mar 2024 08:24:27 +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:281416 Archived-At: Hello Eli, Well, I wanted to ask here because I wanted to check if anyone else is able to compile elisp files with -flto in native-comp-compiler-options. I believe that the error is related to the native-comp branch, as a Gentoo developer from the libgccjit mailing list has already confirmed that libgccjit is compiled with lto support. The matter at hand is not about Emacs's inherent support for -flto, but rather if the native-comp branch can compile Elisp using the -flto option. Sincerely, StrawberryTea Eli Zaretskii writes: >> From: StrawberryTea >> Date: Sat, 09 Mar 2024 21:19:57 -0600 >> >> 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 > > Why do you think this is an Emacs problem? The error messages seem to > imply the problem is with your installation of libgccjit or > GCC/Binutils in general. The request to submit a bug report cites a > Gentoo bug address, so I think you should report it there first. > > Paul, does Emacs even support -flto builds?