public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug jit/107230] New: libgccjit rejects -march=native
@ 2022-10-12  7:53 helohe at bluewin dot ch
  2023-05-19  1:25 ` [Bug jit/107230] " pinskia at gcc dot gnu.org
  0 siblings, 1 reply; 2+ messages in thread
From: helohe at bluewin dot ch @ 2022-10-12  7:53 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107230

            Bug ID: 107230
           Summary: libgccjit rejects -march=native
           Product: gcc
           Version: 12.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: jit
          Assignee: dmalcolm at gcc dot gnu.org
          Reporter: helohe at bluewin dot ch
  Target Milestone: ---

Using the tutorial example 1 and adding 

 gcc_jit_context_add_command_line_option (ctxt, "-march=native");
 gcc_jit_context_add_command_line_option (ctxt, "-mtune=native");

results in an error on both Mingw64 and Debian linux.

Bad value 'native' then valid options are listed which does include native
contradiction itself.


$ ./tut01-hello-world.exe
libgccjit.so: error: bad value 'native' for '-march=' switch
libgccjit.so: 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
Assembler messages:
Error: can't open C:\msys64\tmp\\libgccjit-123186/fake.s for reading: No such
file or directory
libgccjit.so: error: error invoking gcc driver
NULL result

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug jit/107230] libgccjit rejects -march=native
  2022-10-12  7:53 [Bug jit/107230] New: libgccjit rejects -march=native helohe at bluewin dot ch
@ 2023-05-19  1:25 ` pinskia at gcc dot gnu.org
  0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-05-19  1:25 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107230

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |DUPLICATE

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Dup of bug 66594 really which will cause the -march= to be defaulting to native
...

*** This bug has been marked as a duplicate of bug 66594 ***

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-05-19  1:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-12  7:53 [Bug jit/107230] New: libgccjit rejects -march=native helohe at bluewin dot ch
2023-05-19  1:25 ` [Bug jit/107230] " pinskia at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).