Closed joantune closed 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:
gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.5)
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
But then it didn't run.. trying to use -march
invalid
@rico666 invalid how?
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:I removed the optimization parameter and it compiled well
Full error: