From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Loreno Heer Newsgroups: gmane.emacs.bugs Subject: bug#58434: Native compile results in error if -march and -mtune are specified Date: Tue, 11 Oct 2022 20:58:27 +0200 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; charset=UTF-8 Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2729"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.3.2 Cc: 58434@debbugs.gnu.org To: Eli Zaretskii , Andrea Corallo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Oct 11 21:25:03 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 1oiKsB-0000Ov-0t for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 11 Oct 2022 21:25:03 +0200 Original-Received: from localhost ([::1]:49868 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oiKs9-00063y-Iu for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 11 Oct 2022 15:25:01 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59094) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oiKqG-0004GX-Ur for bug-gnu-emacs@gnu.org; Tue, 11 Oct 2022 15:23:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55804) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oiKqG-00053t-NN for bug-gnu-emacs@gnu.org; Tue, 11 Oct 2022 15:23:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oiKqG-0006M5-J5 for bug-gnu-emacs@gnu.org; Tue, 11 Oct 2022 15:23:04 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Loreno Heer Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 11 Oct 2022 19:23:04 +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.166551618124361 (code B ref 58434); Tue, 11 Oct 2022 19:23:04 +0000 Original-Received: (at 58434) by debbugs.gnu.org; 11 Oct 2022 19:23:01 +0000 Original-Received: from localhost ([127.0.0.1]:54873 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oiKqC-0006Kj-0x for submit@debbugs.gnu.org; Tue, 11 Oct 2022 15:23:01 -0400 Original-Received: from vimdzmsp-sfwd04.bluewin.ch ([195.186.227.132]:34114) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oiKSd-0005fv-EM for 58434@debbugs.gnu.org; Tue, 11 Oct 2022 14:58:41 -0400 Original-Received: from [127.0.0.1] ([85.195.238.56]) by vimdzmsp-sfwd04.bluewin.ch Swisscom AG with ESMTPA id iKSSoTRRXalgliKSTomUtT; Tue, 11 Oct 2022 20:58:33 +0200 X-Bluewin-Spam-Analysis: v=2.4 cv=J8zJUCrS c=1 sm=1 tr=0 ts=6345bcd9 a=rcvfMUkxLIlYvRbKc3jktw==:117 a=rcvfMUkxLIlYvRbKc3jktw==:17 a=IkcTkHD0fZMA:10 a=PjuYqXk4AAAA:8 a=Wioc7puo_UdCOTis224A:9 a=QEXdDO2ut3YA:10 X-Bluewin-Spam-Score: 0.00 X-FXIT-IP: IPv4[85.195.238.56] Epoch[1665514713] X-Bluewin-AuthAs: loreno.heer@bluewin.ch Content-Language: en-US In-Reply-To: <83lepme4so.fsf@gnu.org> X-CMAE-Envelope: MS4xfHihi6+ejBs7FtsidD3wiVqoWfbW4bX/9OuG8WwcCsu2lqIMUIIaNiqCaqEm/WWxa68GnV+hZlKm7rTJhrBNH7jjFn6GSCZb+ygjY+7jeQ5Yo0Iz4+Yk td6unr7rzhxvfHwDQ316t2BHMLToRlaSL+tz9AJHQDipdpdlncM1oiHWTEHfWNsF0r5soDllSgvP+eDYYs4rFggXm0YOICUds90TxcsRxCVsh9Yxd+1hi8bl X-Mailman-Approved-At: Tue, 11 Oct 2022 15:22:56 -0400 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:245132 Archived-At: Specifying the architecture directly works. I used the following snippet cc -march=native -Q --help=target to query which architecture native would give me then replaced it. Both windows (nehalem) and linux (tigerlake) seem to work fine so far, but the packages that failed to compile previously need to be reinstalled I guess. Thanks for the help On 11.10.2022 17:52, Eli Zaretskii wrote: > [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.)