From unknown Thu Sep 11 14:10:22 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#58434 <58434@debbugs.gnu.org> To: bug#58434 <58434@debbugs.gnu.org> Subject: Status: Native compile results in error if -march and -mtune are specified Reply-To: bug#58434 <58434@debbugs.gnu.org> Date: Thu, 11 Sep 2025 21:10:22 +0000 retitle 58434 Native compile results in error if -march and -mtune are spec= ified reassign 58434 emacs submitter 58434 Loreno Heer severity 58434 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 11 07:23:58 2022 Received: (at submit) by debbugs.gnu.org; 11 Oct 2022 11:23:58 +0000 Received: from localhost ([127.0.0.1]:51202 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oiDMa-0005jA-SY for submit@debbugs.gnu.org; Tue, 11 Oct 2022 07:23:57 -0400 Received: from lists.gnu.org ([209.51.188.17]:36198) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oiB8M-0001qY-Fa for submit@debbugs.gnu.org; Tue, 11 Oct 2022 05:01:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37896) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oiB8M-0005mX-5G for bug-gnu-emacs@gnu.org; Tue, 11 Oct 2022 05:01:06 -0400 Received: from vimdzmsp-sfwd04.bluewin.ch ([195.186.227.132]:42101) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oiB8H-0003Jv-D5 for bug-gnu-emacs@gnu.org; Tue, 11 Oct 2022 05:01:05 -0400 Received: from [127.0.0.1] ([85.195.238.56]) by vimdzmsp-sfwd04.bluewin.ch Swisscom AG with ESMTPA id iB8AoSFhMalgliB8Aom01s; Tue, 11 Oct 2022 11:00:54 +0200 X-Bluewin-Spam-Analysis: v=2.4 cv=J8zJUCrS c=1 sm=1 tr=0 ts=634530c6 a=rcvfMUkxLIlYvRbKc3jktw==:117 a=rcvfMUkxLIlYvRbKc3jktw==:17 a=IkcTkHD0fZMA:10 a=CWEfXjPClGNs2AoB9_wA:9 a=QEXdDO2ut3YA:10 X-Bluewin-Spam-Score: 0.00 X-FXIT-IP: IPv4[85.195.238.56] Epoch[1665478854] X-Bluewin-AuthAs: loreno.heer@bluewin.ch Message-ID: <7bf7a01e-224c-3413-b07e-6a5bc3ac85dd@bluewin.ch> Date: Tue, 11 Oct 2022 11:00:53 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.3.2 Content-Language: en-US To: bug-gnu-emacs@gnu.org From: Loreno Heer Subject: Native compile results in error if -march and -mtune are specified Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4xfGS6inbbW59kbH4rz5BNcElB4PInTw4IBJwdPAVnFULxQPRLIrw5tkLfgyR7YX0nLMkxhonmCgU3SU4OQnAQcN8YWKT2sEFrP00ktOcJmzCUsk0Y6eI/ 4Fb+YtUYrFMZdvbwIFi4zG+U7KUd/81QgXSG3NqdkVWPZvUuOewmB4XFs2eg6k03L7oCNafLLaa0oA== Received-SPF: pass client-ip=195.186.227.132; envelope-from=loreno.heer@bluewin.ch; helo=vimdzmsp-sfwd04.bluewin.ch X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Tue, 11 Oct 2022 07:23:55 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) The latest compile of emacs (from git from yesterday night) (on both linux and windows) gives the following error with native compile and -march options specified: libgccjit-0.dll: error: bad value 'native' for '-march=' switch libgccjit-0.dll: note: valid arguments to '-march=' switch are: nocona core2 nehalem corei7 westmere sandybridge corei7-avx ivybridge core-avx-i haswell core-avx2 broadwell skylake skylake-avx512 cannonlake icelake-client rocketlake icelake-server cascadelake tigerlake cooperlake sapphirerapids alderlake bonnell atom silvermont slm goldmont goldmont-plus tremont knl knm x86-64 x86-64-v2 x86-64-v3 x86-64-v4 eden-x2 nano nano-1000 nano-2000 nano-3000 nano-x2 eden-x4 nano-x4 k8 k8-sse3 opteron opteron-sse3 athlon64 athlon64-sse3 athlon-fx amdfam10 barcelona bdver1 bdver2 bdver3 bdver4 znver1 znver2 znver3 btver1 btver2 native From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 11 09:40:26 2022 Received: (at 58434) by debbugs.gnu.org; 11 Oct 2022 13:40:26 +0000 Received: from localhost ([127.0.0.1]:51439 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oiFUg-00030j-0z for submit@debbugs.gnu.org; Tue, 11 Oct 2022 09:40:26 -0400 Received: from eggs.gnu.org ([209.51.188.92]:51902) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oiFUd-00030O-Q8 for 58434@debbugs.gnu.org; Tue, 11 Oct 2022 09:40:24 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:58282) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oiFUX-0000RB-2a; Tue, 11 Oct 2022 09:40:17 -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=e598KCLLhh6IWhN4xr7BsKDfEvj9GdGvrJVX8SkEdjY=; b=mzwsIBGrNCkp PlkPPDpVHnXzlc/P+Bzb9a3X2lrJBop214y+Mg67aeStAV0U41r2xnshy6MnMX3FKOKGw9KDbSetP IvaHIrPvUMSO9kyGeaOxvr+YNf1faNsTD85lWJ5I73etX+LXMT2cvcdLcNrztR5nsWJ6DelAmFklI W6b/8BXK0o6NYoWONz6PfKMzkoWYThgMjAw2UzEI2TSuu5/ioDyqMDjzE5lUWtEWCD0RsOs82Y/Ar pFRWzvorNPQCiDRfhLD/Lzs4qGnlsNlFD8+MHY5B6CvLi67t1RNtfmbGkE3pQUQhnEwAnDCBs6K1l 5hIiw7II64g9lnj3niTAJw==; Received: from [87.69.77.57] (port=3551 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 1oiFUW-0004cs-HW; Tue, 11 Oct 2022 09:40:16 -0400 Date: Tue, 11 Oct 2022 16:40:26 +0300 Message-Id: <83pmeyeawl.fsf@gnu.org> From: Eli Zaretskii To: Loreno Heer In-Reply-To: <7bf7a01e-224c-3413-b07e-6a5bc3ac85dd@bluewin.ch> (message from Loreno Heer on Tue, 11 Oct 2022 11:00:53 +0200) Subject: Re: bug#58434: Native compile results in error if -march and -mtune are specified References: <7bf7a01e-224c-3413-b07e-6a5bc3ac85dd@bluewin.ch> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 58434 Cc: 58434@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Tue, 11 Oct 2022 11:00:53 +0200 > From: Loreno Heer > > > The latest compile of emacs (from git from yesterday night) (on both > linux and windows) gives the following error with native compile and > -march options specified: How did you specify -march, and why did you specify it? AFAIK, the default configuration doesn't use that switch. From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 11 11:52:26 2022 Received: (at 58434) by debbugs.gnu.org; 11 Oct 2022 15:52:26 +0000 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 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 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==; 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 Date: Tue, 11 Oct 2022 18:52:23 +0300 Message-Id: <83lepme4so.fsf@gnu.org> From: Eli Zaretskii To: Loreno Heer , Andrea Corallo In-Reply-To: <18231ac2-baca-e269-0f51-3c34e3283ea3@bluewin.ch> (message from Loreno Heer on Tue, 11 Oct 2022 15:48:54 +0200) Subject: Re: bug#58434: Native compile results in error if -march and -mtune are specified References: <7bf7a01e-224c-3413-b07e-6a5bc3ac85dd@bluewin.ch> <83pmeyeawl.fsf@gnu.org> <18231ac2-baca-e269-0f51-3c34e3283ea3@bluewin.ch> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 58434 Cc: 58434@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) [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.) From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 11 15:23:01 2022 Received: (at 58434) by debbugs.gnu.org; 11 Oct 2022 19:23:01 +0000 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 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 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 Message-ID: Date: Tue, 11 Oct 2022 20:58:27 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.3.2 Subject: Re: bug#58434: Native compile results in error if -march and -mtune are specified To: Eli Zaretskii , Andrea Corallo References: <7bf7a01e-224c-3413-b07e-6a5bc3ac85dd@bluewin.ch> <83pmeyeawl.fsf@gnu.org> <18231ac2-baca-e269-0f51-3c34e3283ea3@bluewin.ch> <83lepme4so.fsf@gnu.org> Content-Language: en-US From: Loreno Heer In-Reply-To: <83lepme4so.fsf@gnu.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4xfHihi6+ejBs7FtsidD3wiVqoWfbW4bX/9OuG8WwcCsu2lqIMUIIaNiqCaqEm/WWxa68GnV+hZlKm7rTJhrBNH7jjFn6GSCZb+ygjY+7jeQ5Yo0Iz4+Yk td6unr7rzhxvfHwDQ316t2BHMLToRlaSL+tz9AJHQDipdpdlncM1oiHWTEHfWNsF0r5soDllSgvP+eDYYs4rFggXm0YOICUds90TxcsRxCVsh9Yxd+1hi8bl X-Spam-Score: -2.5 (--) X-Debbugs-Envelope-To: 58434 X-Mailman-Approved-At: Tue, 11 Oct 2022 15:22:56 -0400 Cc: 58434@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.5 (---) 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.) From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 11 15:43:42 2022 Received: (at 58434) by debbugs.gnu.org; 11 Oct 2022 19:43:42 +0000 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 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 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 From: Andrea Corallo To: Eli Zaretskii Subject: Re: bug#58434: Native compile results in error if -march and -mtune are specified In-Reply-To: <83lepme4so.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 11 Oct 2022 18:52:23 +0300") References: <7bf7a01e-224c-3413-b07e-6a5bc3ac85dd@bluewin.ch> <83pmeyeawl.fsf@gnu.org> <18231ac2-baca-e269-0f51-3c34e3283ea3@bluewin.ch> <83lepme4so.fsf@gnu.org> Date: Tue, 11 Oct 2022 19:43:22 +0000 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 58434 Cc: 58434@debbugs.gnu.org, Loreno Heer X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) 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 From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 12 00:56:05 2022 Received: (at 58434) by debbugs.gnu.org; 12 Oct 2022 04:56:05 +0000 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 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 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==; 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 Date: Wed, 12 Oct 2022 07:55:59 +0300 Message-Id: <8335btej34.fsf@gnu.org> From: Eli Zaretskii To: Andrea Corallo In-Reply-To: (message from Andrea Corallo on Tue, 11 Oct 2022 19:43:22 +0000) Subject: Re: bug#58434: Native compile results in error if -march and -mtune are specified References: <7bf7a01e-224c-3413-b07e-6a5bc3ac85dd@bluewin.ch> <83pmeyeawl.fsf@gnu.org> <18231ac2-baca-e269-0f51-3c34e3283ea3@bluewin.ch> <83lepme4so.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 58434 Cc: 58434@debbugs.gnu.org, loreno.heer@bluewin.ch X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > 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. From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 12 03:29:46 2022 Received: (at 58434) by debbugs.gnu.org; 12 Oct 2022 07:29:46 +0000 Received: from localhost ([127.0.0.1]:55533 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oiWBW-0006Xn-I6 for submit@debbugs.gnu.org; Wed, 12 Oct 2022 03:29:46 -0400 Received: from eggs.gnu.org ([209.51.188.92]:36702) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oiWBV-0006Xc-A5 for 58434@debbugs.gnu.org; Wed, 12 Oct 2022 03:29:45 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:49798) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oiWBO-0003Bx-IF; Wed, 12 Oct 2022 03:29:38 -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=kky6GXMpIt6jOqkudNYHLAmgqTc49RkiK7YnvN8N4Ps=; b=j1JpKleaLft2 Rjb8+Fns7daNrO4iHlfg9ZArJCOOc3Y4khTLmK3atKf6QTrCBrOxO9rXWWub92jw+g8/9GZRRXRwl BCXCmIr4+nWmNCWBhBjSKv/Z+q6uynEOudtZ25URHJ9370U6m29Iq1T3Tgw2nVZ4PBFbLcOj8e36+ rsXZ6tTErTF2bF1a3iFaW61B1bmoJgmbE7Aki6cL8Y/A7dIBko008lRlfWHi0YF+AtBrfSDeABQp2 H2NiaiDhDTQq3tMBE+3J/6vWB9Xkn4YkQS7e/yz9SKezo6p8c+KSUPEmjB328lp6/yGoDx7Am6D1s wOfzD9xbFkGt7PmiJxEjow==; Received: from [87.69.77.57] (port=2186 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 1oiWBN-0004SW-Rg; Wed, 12 Oct 2022 03:29:38 -0400 Date: Wed, 12 Oct 2022 10:29:48 +0300 Message-Id: <83leplcxeb.fsf@gnu.org> From: Eli Zaretskii To: Loreno Heer In-Reply-To: <5b3a7a2b-cb65-3458-2c44-efe64b414022@bluewin.ch> (message from Loreno Heer on Wed, 12 Oct 2022 09:13:34 +0200) Subject: Re: bug#58434: Native compile results in error if -march and -mtune are specified 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> <5b3a7a2b-cb65-3458-2c44-efe64b414022@bluewin.ch> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 58434 Cc: 58434@debbugs.gnu.org, akrl@sdf.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Wed, 12 Oct 2022 09:13:34 +0200 > Cc: 58434@debbugs.gnu.org > From: Loreno Heer > > > 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) What can Emacs do about this? The problem seems to be between you and libgccjit/GCC you have installed. The rejection comes from there, not from Emacs, AFAIU. From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 12 07:46:07 2022 Received: (at 58434-done) by debbugs.gnu.org; 12 Oct 2022 11:46:08 +0000 Received: from localhost ([127.0.0.1]:55950 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oiaBZ-0003NG-AS for submit@debbugs.gnu.org; Wed, 12 Oct 2022 07:46:07 -0400 Received: from mx.sdf.org ([205.166.94.24]:52419) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oiaBT-0003Lk-Km for 58434-done@debbugs.gnu.org; Wed, 12 Oct 2022 07:46:02 -0400 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 29CBjeF7027025 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO); Wed, 12 Oct 2022 11:45:41 GMT From: Andrea Corallo To: Loreno Heer Subject: Re: bug#58434: Native compile results in error if -march and -mtune are specified In-Reply-To: <8c6f532b-35bc-d221-22e7-e37484137be0@bluewin.ch> (Loreno Heer's message of "Wed, 12 Oct 2022 12:35:38 +0200") 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> <5b3a7a2b-cb65-3458-2c44-efe64b414022@bluewin.ch> <83leplcxeb.fsf@gnu.org> <8c6f532b-35bc-d221-22e7-e37484137be0@bluewin.ch> Date: Wed, 12 Oct 2022 11:45:40 +0000 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 58434-done Cc: Eli Zaretskii , 58434-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Loreno Heer writes: > You are right, did not notice this is a gccjit issue. I filed a bug > report with the gcc people. (might also be a packaging problem on mingw > and debian, that I don't know) Thanks, closing then. Andrea From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 12 09:19:30 2022 Received: (at 58434) by debbugs.gnu.org; 12 Oct 2022 13:19:30 +0000 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 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 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 Message-ID: <5b3a7a2b-cb65-3458-2c44-efe64b414022@bluewin.ch> Date: Wed, 12 Oct 2022 09:13:34 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.3.2 Subject: Re: bug#58434: Native compile results in error if -march and -mtune are specified To: Eli Zaretskii , Andrea Corallo 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> Content-Language: en-US From: Loreno Heer In-Reply-To: <8335btej34.fsf@gnu.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4xfMj2njnFvJiK1m8QmjxlFpoalPxRj7DqiQUkKQbFBbsZLTtcTVxgUYHHy08u+n7UeuseYnocfbG3ClLvWztK5MKg9iSh+G13IacgFlRUvA/XeGzJgPFb o9Q+hK0Hx/2dKIWlsFb+2H1kEHUbdOXhi+KOdChLxyp7Sk2E1PAj4tiGHyUjEJbl1looPQ7sBS785kwFo9zagKI9YRQcENPxaDP/FOP7Ocqwoj5h6GNXghdY X-Spam-Score: -2.5 (--) X-Debbugs-Envelope-To: 58434 X-Mailman-Approved-At: Wed, 12 Oct 2022 09:19:27 -0400 Cc: 58434@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.5 (---) >> 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) From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 12 09:19:30 2022 Received: (at 58434) by debbugs.gnu.org; 12 Oct 2022 13:19:30 +0000 Received: from localhost ([127.0.0.1]:56140 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oibdy-0002kT-3Y for submit@debbugs.gnu.org; Wed, 12 Oct 2022 09:19:30 -0400 Received: from vimdzmsp-sfwd01.bluewin.ch ([195.186.120.131]:42822) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oiZ5Y-0007RK-9c for 58434@debbugs.gnu.org; Wed, 12 Oct 2022 06:35:52 -0400 Received: from [127.0.0.1] ([85.195.238.56]) by vimdzmsp-sfwd01.bluewin.ch Swisscom AG with ESMTPA id iZ5Poyzx3aSptiZ5Pour0R; Wed, 12 Oct 2022 12:35:42 +0200 X-Bluewin-Spam-Analysis: v=2.4 cv=XueZhXJ9 c=1 sm=1 tr=0 ts=6346987e a=rcvfMUkxLIlYvRbKc3jktw==:117 a=rcvfMUkxLIlYvRbKc3jktw==:17 a=IkcTkHD0fZMA:10 a=mDV3o1hIAAAA:8 a=uPZiAMpXAAAA:8 a=6RZNTlsKv4fv7Z5jQ3QA:9 a=QEXdDO2ut3YA:10 a=_FVE-zBwftR9WsbkzFJk:22 X-Bluewin-Spam-Score: 0.00 X-FXIT-IP: IPv4[85.195.238.56] Epoch[1665570942] X-Bluewin-AuthAs: loreno.heer@bluewin.ch Message-ID: <8c6f532b-35bc-d221-22e7-e37484137be0@bluewin.ch> Date: Wed, 12 Oct 2022 12:35:38 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.3.2 Subject: Re: bug#58434: Native compile results in error if -march and -mtune are specified To: Eli Zaretskii 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> <5b3a7a2b-cb65-3458-2c44-efe64b414022@bluewin.ch> <83leplcxeb.fsf@gnu.org> Content-Language: en-US From: Loreno Heer In-Reply-To: <83leplcxeb.fsf@gnu.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4xfB5FPN8DCtL8meNCGcB90qEHxRz8q0Wm+9UyY+cIauaZHNDs/SIjA+9/Sn/G5s8zWmkHlWACJ4exmOJ7E0/oppI2urqK0v5DacL8TdcERrOTWDsiwdOT oN6EB7jVzLMobRxrLMZS/6N4Lc/8UKqe++kWVqlVqcKAnQt+WSYFqaMEqxpNXRcy2/PxJddCc023HYPGCCeyawfEr0FAX7GHJ3y/0XWf8LLatOG8g2VGhaoa X-Spam-Score: -2.5 (--) X-Debbugs-Envelope-To: 58434 X-Mailman-Approved-At: Wed, 12 Oct 2022 09:19:27 -0400 Cc: 58434@debbugs.gnu.org, akrl@sdf.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.5 (---) You are right, did not notice this is a gccjit issue. I filed a bug report with the gcc people. (might also be a packaging problem on mingw and debian, that I don't know) On 12.10.2022 09:29, Eli Zaretskii wrote: >> Date: Wed, 12 Oct 2022 09:13:34 +0200 >> Cc: 58434@debbugs.gnu.org >> From: Loreno Heer >> >>> 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) > > What can Emacs do about this? The problem seems to be between you and > libgccjit/GCC you have installed. The rejection comes from there, not > from Emacs, AFAIU. From unknown Thu Sep 11 14:10:22 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 10 Nov 2022 12:24:07 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator