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#58434: Native compile results in error if -march and -mtune are specified Date: Tue, 11 Oct 2022 18:52:23 +0300 Message-ID: <83lepme4so.fsf@gnu.org> References: <7bf7a01e-224c-3413-b07e-6a5bc3ac85dd@bluewin.ch> <83pmeyeawl.fsf@gnu.org> <18231ac2-baca-e269-0f51-3c34e3283ea3@bluewin.ch> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29452"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 58434@debbugs.gnu.org To: Loreno Heer , Andrea Corallo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Oct 11 17:53:30 2022 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 1oiHZS-0007Py-BG for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 11 Oct 2022 17:53:30 +0200 Original-Received: from localhost ([::1]:43470 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oiHZQ-00035P-RG for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 11 Oct 2022 11:53:28 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44098) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oiHZ1-00033f-Bw for bug-gnu-emacs@gnu.org; Tue, 11 Oct 2022 11:53:08 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55582) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oiHZ0-0006TG-AY for bug-gnu-emacs@gnu.org; Tue, 11 Oct 2022 11:53:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oiHZ0-0000xj-5V for bug-gnu-emacs@gnu.org; Tue, 11 Oct 2022 11:53: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: Tue, 11 Oct 2022 15:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58434 X-GNU-PR-Package: emacs Original-Received: via spool by 58434-submit@debbugs.gnu.org id=B58434.16655035463650 (code B ref 58434); Tue, 11 Oct 2022 15:53:02 +0000 Original-Received: (at 58434) by debbugs.gnu.org; 11 Oct 2022 15:52:26 +0000 Original-Received: from localhost ([127.0.0.1]:54660 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oiHYP-0000wo-Pm for submit@debbugs.gnu.org; Tue, 11 Oct 2022 11:52:26 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:50544) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oiHYL-0000wV-1V for 58434@debbugs.gnu.org; Tue, 11 Oct 2022 11:52:24 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:38256) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oiHYE-0006P4-9s; Tue, 11 Oct 2022 11:52:14 -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=rIlau6TuiLXR4G3so5rV/W8erQ3FqTvu5PLLaeozXR0=; b=UGfhn9O6RY4m w8HqziidbcmJ03yV8PQXIR5iUOYdyvyxg1vS9FGwzh4sZF4wi662eh4qMswlHdhKM5OGbiebTzmby tO6FBLnIV1tzXM9nUb+mTxenQB3VkajMOqlcW889TfK+XhlOuIAnRl2cvXnKyB9/04PDHT9jI7Zp+ MrGFyQLPxL40SSAgJCcQ1ezEZDY3tKMQNZHE/q5k9f2F71hhAAfH/UP2/IFp7xVnt2BeuuJr6gjzp 8XcyaAgvbidz9B8XBwzDYRfKVl3u1iwhyJ3EZJZz2cGygTYOTgdHpVSTNqM1yS6nX4HmbNfwFhCsA OLasXqeQgwN+RCh/D71L8A==; Original-Received: from [87.69.77.57] (port=3819 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oiHYD-0002OH-OA; Tue, 11 Oct 2022 11:52:14 -0400 In-Reply-To: <18231ac2-baca-e269-0f51-3c34e3283ea3@bluewin.ch> (message from Loreno Heer on Tue, 11 Oct 2022 15:48:54 +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" Xref: news.gmane.io gmane.emacs.bugs:245120 Archived-At: [Please use Reply All to keep the bug tracker on the CC list.] > Date: Tue, 11 Oct 2022 15:48:54 +0200 > From: Loreno Heer > > (setq native-comp-compiler-options '("-O2" "-march=native" "-mtune=native")) > > in my .emacs file. > I wanted to speed up the installation a bit. I found the suggestion > here: > https://www.reddit.com/r/emacs/comments/prihh8/optimization_flags_for_nativecomp_whats_the/ OK, so the compiler told you it doesn't support -march=native, so you will have to specify the exact architecture. Btw, I think you should use native-comp-driver-options for this, not native-comp-compiler-options. Andrea, am I right? I think GCC is "driver" and "compiler" means cc1, no? (If I'm right, we need to fix the doc strings.)