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: Wed, 12 Oct 2022 07:55:59 +0300 Message-ID: <8335btej34.fsf@gnu.org> References: <7bf7a01e-224c-3413-b07e-6a5bc3ac85dd@bluewin.ch> <83pmeyeawl.fsf@gnu.org> <18231ac2-baca-e269-0f51-3c34e3283ea3@bluewin.ch> <83lepme4so.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9500"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 58434@debbugs.gnu.org, loreno.heer@bluewin.ch To: Andrea Corallo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Oct 12 06:57: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 1oiTo6-0002Je-4m for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 12 Oct 2022 06:57:26 +0200 Original-Received: from localhost ([::1]:47030 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oiTo2-0003gy-UV for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 12 Oct 2022 00:57:23 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43694) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oiTnj-0003gq-EV for bug-gnu-emacs@gnu.org; Wed, 12 Oct 2022 00:57:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56247) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oiTnh-0006SV-OI for bug-gnu-emacs@gnu.org; Wed, 12 Oct 2022 00:57:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oiTnh-0002TK-Hk for bug-gnu-emacs@gnu.org; Wed, 12 Oct 2022 00:57:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 12 Oct 2022 04:57:01 +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.16655505659438 (code B ref 58434); Wed, 12 Oct 2022 04:57:01 +0000 Original-Received: (at 58434) by debbugs.gnu.org; 12 Oct 2022 04:56:05 +0000 Original-Received: from localhost ([127.0.0.1]:55325 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oiTmk-0002S7-1d for submit@debbugs.gnu.org; Wed, 12 Oct 2022 00:56:05 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:58674) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oiTme-0002Rb-H2 for 58434@debbugs.gnu.org; Wed, 12 Oct 2022 00:56:00 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:57756) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oiTmX-0006Bn-JG; Wed, 12 Oct 2022 00:55:49 -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=9hVUpM72FcoB/iMgJLasQW2w9nRclmo53dU0jvyQQ2U=; b=aWIwADRgJLOJ 0YgwVEi2+gd1jH/V2LdP/rM3lurSWQOYhuZfSuW/Mqmt6C4YEtD6ltpsSjt1Q6PyEMBsrn7sxNVxi K8dTHGa8pNFr8nAlToru7SCUTCGnflcsjUCeN8gE50zDCpNScXqXOFwDTrONGV+NjRDYehNBnxKD+ SYrAy2tme1BSqx/8PaGHWjig57qOA6R4SX1fgN0DLMBLs0EYGqYFYvM7YdPR/MXQxzEMv9hc7PPqV Pe14/4a6XmYnmRWuf76W19OaF3x4KoatyVsLSDHiZ/uBCzKsh/CsLXq9Qn7Wz5C1yX+rjK3UwmtnL 0eG3r0AdzllaZPMG6wbA/A==; Original-Received: from [87.69.77.57] (port=4479 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 1oiTmX-0001tG-2D; Wed, 12 Oct 2022 00:55:49 -0400 In-Reply-To: (message from Andrea Corallo on Tue, 11 Oct 2022 19:43:22 +0000) 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:245159 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.