Public bug reported:
/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)
** Affects: gcc-10 (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1909368
Title:
cpp-10's cc1 fails to handle "-march=native" parameter properly
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcc-10/+bug/1909368/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs