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#69689: 30.0.50; cannot native compile with -flto in native-comp-compiler-options Date: Mon, 11 Mar 2024 15:38:35 +0200 Message-ID: <865xxsvqg4.fsf@gnu.org> References: <87frwyepsy.fsf@strawberrytea.xyz> <86o7bmwqn8.fsf@gnu.org> <87v85ugfh2.fsf@strawberrytea.xyz> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19120"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 69689@debbugs.gnu.org, look@strawberrytea.xyz To: Paul Eggert Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Mar 11 14:39:48 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 1rjfsa-0004n8-G1 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 11 Mar 2024 14:39:48 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rjfsI-0001s4-IQ; Mon, 11 Mar 2024 09:39:30 -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 1rjfsG-0001ro-Sl for bug-gnu-emacs@gnu.org; Mon, 11 Mar 2024 09:39:28 -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 1rjfsG-00085W-KH for bug-gnu-emacs@gnu.org; Mon, 11 Mar 2024 09:39:28 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rjfso-0001Ff-EZ for bug-gnu-emacs@gnu.org; Mon, 11 Mar 2024 09:40: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: Mon, 11 Mar 2024 13:40:02 +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.17101643904774 (code B ref 69689); Mon, 11 Mar 2024 13:40:02 +0000 Original-Received: (at 69689) by debbugs.gnu.org; 11 Mar 2024 13:39:50 +0000 Original-Received: from localhost ([127.0.0.1]:39257 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rjfsc-0001Ev-BG for submit@debbugs.gnu.org; Mon, 11 Mar 2024 09:39:50 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:45558) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rjfsa-0001Ei-2U for 69689@debbugs.gnu.org; Mon, 11 Mar 2024 09:39:49 -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 1rjfrw-000845-L5; Mon, 11 Mar 2024 09:39:08 -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=TKIUC9GXMVFoO0BXY6Y9f48KofPUSsUSIA4LqhFzXjg=; b=WbptxKc0V3MD c0wBJ8y4+LQc57v8GvthOOWrNnp32W/6z5z611F5+oTsG/93Gt9KcyLx6TiQeoq79SpkB1diEWeLE f5N6MroDjm1FvkOOWBiMtiQArRglThNTjJAreK0muOq4hmDq6BniYVMMPEvmvhniesi7qy4Xjzohz VZBX1a6n4gK7Pv3kbvVMYcTimi2jr4A9dcPeKXf5yB1zbrwaPlHOIhpu7YEF9BXc5l/wA+hWkAFVf faY4Q0+TAsmCjLO+lBH3900P0uFgmC2reHmzj/uZz4t/8b9mqk3EBbmdA20JLMR13Q114PIWeg/GU 9Uwwzmk3R8DfjiYe9I9phQ==; In-Reply-To: (message from Paul Eggert on Sun, 10 Mar 2024 14:08:48 -0700) 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:281473 Archived-At: > Date: Sun, 10 Mar 2024 14:08:48 -0700 > Cc: 69689@debbugs.gnu.org > From: Paul Eggert > > On 2024-03-10 10:32, StrawberryTea wrote: > > 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 > > Google searches suggest that "plugin needed to handle lto object" is an > issue that arises in Gentoo builds of other projects. The basic issue is > that if you're going to build everything from scratch, you must build > the infrastructure correctly first, and that can include linker plugins. > Sorry I can't help more, as I don't use Gentoo. So I think this report should be sent to Gentoo, not to us. > On 2024-03-09 22:24, Eli Zaretskii wrote: > > Paul, does Emacs even support -flto builds? > > Yes, with './configure --enable-link-time-optimization'. configure.ac says "experimental", so I guess it's not yet reliable enough? It also uses the getconf command (to figure out the number of CPU cores?), which AFAIK is for glibc-only systems, right? In any case, the OP didn't say whether he used this configure-time option.