[Bug 1909368] Re: cpp-10's cc1 fails to handle "-march=native" parameter properly

PHD 1909368 at bugs.launchpad.net
Sat Dec 26 20:17:08 UTC 2020


** Attachment added: "cpuinfo.txt"
   https://bugs.launchpad.net/ubuntu/+source/gcc-10/+bug/1909368/+attachment/5447024/+files/cpuinfo.txt

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to gcc-10 in Ubuntu.
https://bugs.launchpad.net/bugs/1909368

Title:
  cpp-10's cc1 fails to handle "-march=native" parameter properly

Status in gcc-10 package in Ubuntu:
  New

Bug description:
  /usr/lib/gcc/x86_64-linux-gnu/10/cc1 from package cpp-10
  fails to handle "-march=native" parameter properly:

  It says that "native" is a bad value,
  and then lists "native" as a valid value (last one).

  $ /usr/lib/gcc/x86_64-linux-gnu/10/cc1 /dev/null -o /dev/null
  -march=native

  cc1: error: bad value (‘native’) for ‘-march=’ switch
  cc1: 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 icelake-server cascadelake tigerlake cooperlake bonnell atom silvermont slm goldmont goldmont-plus tremont knl knm x86-64 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 btver1 btver2 native
  [...]

  It works perfectly fine with `cc`, `gcc`, `g++`:

  $ cc /dev/null -o /dev/null -march=native

  /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/10/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
  (.text+0x24): undefined reference to `main'
  collect2: error: ld returned 1 exit status

  (this compiler error message is expected here, it says there is no
  main() function defined in /dev/null input file)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcc-10/+bug/1909368/+subscriptions



More information about the foundations-bugs mailing list