PoC-Consortium / engraver

PoCC Burstcoin Reference Plotter
MIT License
63 stars 39 forks source link

error: bad value (skylake) for -mtune= switch -- error - not required (?) gcc optimization flag #2

Closed joantune closed 7 years ago

joantune commented 7 years ago

Hi!

While using gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.5) I ran into the following error, as per https://wiki.gentoo.org/wiki/GCC_optimization:

Consider using -mtune when generating code for older CPUs such as i386 and i486. ... Only non-x86/x86-64 CPUs (such as SPARC, Alpha, and PowerPC) may require -mtune or -mcpu instead of -march

I removed the optimization parameter and it compiled well

Full error:

gcc -Wall -m64 -O2 -mtune=skylake -D_FILE_OFFSET_BITS=64 -c -o shabal64.o shabal64.s
gcc -Wall -m64 -O2 -mtune=skylake -D_FILE_OFFSET_BITS=64 -c -o helper64.o helper.c
helper.c:1:0: error: bad value (skylake) for -mtune= switch
 #include <string.h>
 ^
Makefile:15: recipe for target 'helper64.o' failed
make: *** [helper64.o] Error 1
joantune commented 7 years ago

But then it didn't run.. trying to use -march

rico666 commented 7 years ago

invalid

joantune commented 7 years ago

@rico666 invalid how?