From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Paul Eggert 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 14:08:48 -0700 Organization: UCLA Computer Science Department Message-ID: References: <87frwyepsy.fsf@strawberrytea.xyz> <86o7bmwqn8.fsf@gnu.org> <87v85ugfh2.fsf@strawberrytea.xyz> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7791"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: 69689@debbugs.gnu.org To: StrawberryTea , Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Mar 10 22:09:42 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 1rjQQP-0001ld-Fw for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 10 Mar 2024 22:09:41 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rjQQF-0005Ar-65; Sun, 10 Mar 2024 17:09: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 1rjQQD-0005AT-F7 for bug-gnu-emacs@gnu.org; Sun, 10 Mar 2024 17:09:29 -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 1rjQQD-0003aq-7J for bug-gnu-emacs@gnu.org; Sun, 10 Mar 2024 17:09:29 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rjQQk-0005Ba-CG for bug-gnu-emacs@gnu.org; Sun, 10 Mar 2024 17:10:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 10 Mar 2024 21:10: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.171010497119893 (code B ref 69689); Sun, 10 Mar 2024 21:10:02 +0000 Original-Received: (at 69689) by debbugs.gnu.org; 10 Mar 2024 21:09:31 +0000 Original-Received: from localhost ([127.0.0.1]:38083 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rjQQE-0005Am-Kd for submit@debbugs.gnu.org; Sun, 10 Mar 2024 17:09:30 -0400 Original-Received: from mail.cs.ucla.edu ([131.179.128.66]:52296) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rjQQD-0005AZ-E9 for 69689@debbugs.gnu.org; Sun, 10 Mar 2024 17:09:29 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id 08C743C00E407; Sun, 10 Mar 2024 14:08:50 -0700 (PDT) Original-Received: from mail.cs.ucla.edu ([127.0.0.1]) by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavis, port 10032) with ESMTP id YitqO_zJpNEm; Sun, 10 Mar 2024 14:08:49 -0700 (PDT) Original-Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id B7E0F3C00E409; Sun, 10 Mar 2024 14:08:49 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.cs.ucla.edu B7E0F3C00E409 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cs.ucla.edu; s=9D0B346E-2AEB-11ED-9476-E14B719DCE6C; t=1710104929; bh=Ux75lVLYCPuehzwGB6ZmawJ8i+itV4B19y7XAaDF/p0=; h=Message-ID:Date:MIME-Version:To:From; b=U2pc5QaJMv5W1FlhxXXdmvX4AIsnu2aU9AK1CHbDUx8kZSCkg8sktoHcgvHy5mIaY zHkmv+h+wiDXQWE7AYCgyjVxFmNiL6n4xqFp0RGjhl0yxdCcQOe9o8oTUYwRVZ4Sju 4mzf+Y1XD6+GOBbCJN+DwDERpBLTB+q5CtN46ZG7tijiIN4aAncj+cL9K+FdtinqAS AL6avo1xWMPAalFxtW478QpdSIo9RYJnI/scaezbIYOWi8suxthe9kSbFcMOAnQAh/ q4Av6o4AWduZYM8JgBQ3CxyRwtFRDShQY/Ybn/znIYQeUYzO5B6CxNgCG71pe4+fie nokFqvaZLB12Q== X-Virus-Scanned: amavis at mail.cs.ucla.edu Original-Received: from mail.cs.ucla.edu ([127.0.0.1]) by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavis, port 10026) with ESMTP id e1TLNo1dRbq6; Sun, 10 Mar 2024 14:08:49 -0700 (PDT) Original-Received: from [192.168.254.12] (unknown [47.148.192.211]) by mail.cs.ucla.edu (Postfix) with ESMTPSA id 97D793C00E407; Sun, 10 Mar 2024 14:08:49 -0700 (PDT) Content-Language: en-US In-Reply-To: <87v85ugfh2.fsf@strawberrytea.xyz> 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:281440 Archived-At: 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. On 2024-03-09 22:24, Eli Zaretskii wrote: > Paul, does Emacs even support -flto builds? Yes, with './configure --enable-link-time-optimization'. This should work fine, although the build time is greater and there are a few false-alarm warnings from GCC - at least they were false alarms the last time I checked, many moons ago. (I normally don't use --enable-link-time-optimization as it makes --enable-gcc-warnings way too slow.) I don't think -flto per se is the issue here, though it's hard to be sure since we weren't given a precise recipe for reproducing the bug (and I don't use Gentoo so it'd be hard for me to reproduce it anyway).