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: Wed, 12 Oct 2022 09:13:34 +0200 Message-ID: <5b3a7a2b-cb65-3458-2c44-efe64b414022@bluewin.ch> References: <7bf7a01e-224c-3413-b07e-6a5bc3ac85dd@bluewin.ch> <83pmeyeawl.fsf@gnu.org> <18231ac2-baca-e269-0f51-3c34e3283ea3@bluewin.ch> <83lepme4so.fsf@gnu.org> <8335btej34.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="15472"; 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 Wed Oct 12 15:22:26 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 1oibgo-0003tZ-1U for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 12 Oct 2022 15:22:26 +0200 Original-Received: from localhost ([::1]:50866 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oibgm-0002Ou-O0 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 12 Oct 2022 09:22:24 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60830) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oibeX-0000p7-D8 for bug-gnu-emacs@gnu.org; Wed, 12 Oct 2022 09:20:06 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57071) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oibeW-00015m-Jz for bug-gnu-emacs@gnu.org; Wed, 12 Oct 2022 09:20:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oibeW-0002mL-FL for bug-gnu-emacs@gnu.org; Wed, 12 Oct 2022 09:20: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: Wed, 12 Oct 2022 13:20: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.166558077010572 (code B ref 58434); Wed, 12 Oct 2022 13:20:04 +0000 Original-Received: (at 58434) by debbugs.gnu.org; 12 Oct 2022 13:19:30 +0000 Original-Received: from localhost ([127.0.0.1]:56138 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oibdw-0002kQ-No for submit@debbugs.gnu.org; Wed, 12 Oct 2022 09:19:30 -0400 Original-Received: from vimdzmsp-sfwd01.bluewin.ch ([195.186.120.131]:58611) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oiVw3-00069P-TP for 58434@debbugs.gnu.org; Wed, 12 Oct 2022 03:13:48 -0400 Original-Received: from [127.0.0.1] ([85.195.238.56]) by vimdzmsp-sfwd01.bluewin.ch Swisscom AG with ESMTPA id iVvsoyZlKaSptiVvsoufbx; Wed, 12 Oct 2022 09:13:41 +0200 X-Bluewin-Spam-Analysis: v=2.4 cv=XueZhXJ9 c=1 sm=1 tr=0 ts=63466925 a=rcvfMUkxLIlYvRbKc3jktw==:117 a=rcvfMUkxLIlYvRbKc3jktw==:17 a=IkcTkHD0fZMA:10 a=oX08kPI8AAAA:8 a=mDV3o1hIAAAA:8 a=uPZiAMpXAAAA:8 a=bMR9YM0Azsk5u-ATdMkA:9 a=QEXdDO2ut3YA:10 a=HoS0eNqkKlFy34tK5QRU:22 a=_FVE-zBwftR9WsbkzFJk:22 X-Bluewin-Spam-Score: 0.00 X-FXIT-IP: IPv4[85.195.238.56] Epoch[1665558821] X-Bluewin-AuthAs: loreno.heer@bluewin.ch Content-Language: en-US In-Reply-To: <8335btej34.fsf@gnu.org> X-CMAE-Envelope: MS4xfMj2njnFvJiK1m8QmjxlFpoalPxRj7DqiQUkKQbFBbsZLTtcTVxgUYHHy08u+n7UeuseYnocfbG3ClLvWztK5MKg9iSh+G13IacgFlRUvA/XeGzJgPFb o9Q+hK0Hx/2dKIWlsFb+2H1kEHUbdOXhi+KOdChLxyp7Sk2E1PAj4tiGHyUjEJbl1looPQ7sBS785kwFo9zagKI9YRQcENPxaDP/FOP7Ocqwoj5h6GNXghdY X-Mailman-Approved-At: Wed, 12 Oct 2022 09:19:27 -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:245208 Archived-At: >> From: Andrea Corallo >> Cc: Loreno Heer , 58434@debbugs.gnu.org >> Date: Tue, 11 Oct 2022 19:43:22 +0000 >> >>> 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. > > OK, so I guess the only problem is that the compiler doesn't support > "-march=native", and needs a specific architecture instead of a > generic one. Yes, but there might be some disadvantages of specifying the architecture directly. For example cache sizes are not supplied. (https://stackoverflow.com/questions/5470257/how-to-see-which-flags-march-native-will-activate?noredirect=1&lq=1)