From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrea Corallo Newsgroups: gmane.emacs.bugs Subject: bug#58434: Native compile results in error if -march and -mtune are specified Date: Tue, 11 Oct 2022 19:43:22 +0000 Message-ID: References: <7bf7a01e-224c-3413-b07e-6a5bc3ac85dd@bluewin.ch> <83pmeyeawl.fsf@gnu.org> <18231ac2-baca-e269-0f51-3c34e3283ea3@bluewin.ch> <83lepme4so.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="26103"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 58434@debbugs.gnu.org, Loreno Heer To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Oct 11 21:45:29 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 1oiLBv-0006Xb-Sk for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 11 Oct 2022 21:45:27 +0200 Original-Received: from localhost ([::1]:34038 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oiLBu-0004Ky-F0 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 11 Oct 2022 15:45:26 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55374) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oiLAf-0004HZ-Kl for bug-gnu-emacs@gnu.org; Tue, 11 Oct 2022 15:44:15 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55849) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oiLAY-0008HB-AQ for bug-gnu-emacs@gnu.org; Tue, 11 Oct 2022 15:44:09 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oiLAY-0006uv-4w for bug-gnu-emacs@gnu.org; Tue, 11 Oct 2022 15:44:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 11 Oct 2022 19:44: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.166551742226546 (code B ref 58434); Tue, 11 Oct 2022 19:44:02 +0000 Original-Received: (at 58434) by debbugs.gnu.org; 11 Oct 2022 19:43:42 +0000 Original-Received: from localhost ([127.0.0.1]:54926 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oiLAD-0006u6-U0 for submit@debbugs.gnu.org; Tue, 11 Oct 2022 15:43:42 -0400 Original-Received: from mx.sdf.org ([205.166.94.24]:59571) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oiLA8-0006tu-Lz for 58434@debbugs.gnu.org; Tue, 11 Oct 2022 15:43:41 -0400 Original-Received: from ma.sdf.org (ma.sdf.org [205.166.94.33]) by mx.sdf.org (8.15.2/8.14.5) with ESMTPS id 29BJhMOD019940 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO); Tue, 11 Oct 2022 19:43:22 GMT In-Reply-To: <83lepme4so.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 11 Oct 2022 18:52:23 +0300") 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:245136 Archived-At: Eli Zaretskii writes: > [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.) Hi Eli, native-comp-driver-options is for assembler and linker while native-comp-compiler-options is for the compiler. AFAIK 'march' affects code generation so it should got to the compiler, then I believe the use of native-comp-compiler-options here is correct. Andrea