hyattpd/Prodigal

gcc: error: language CORE-AVX2 not recognized

morgansobol opened this issue · 1 comments

Hi there,

I'm trying to install Prodigal on my HPC. Here is the error I get when running make
gcc -O2 -xCORE-AVX2 -pedantic -Wall -O3 -c -o bitmap.o bitmap.c gcc: error: language CORE-AVX2 not recognized gcc: error: language CORE-AVX2 not recognized

My GCC version:
gcc --version gcc (GCC) 8.4.1 20200928 (Red Hat 8.4.1-1)

I don't have sudo rights.. Any tips/advice?

Thanks!
Morgan

The issue here is somehow your make wants to add the invalid option -xCORE-AVX2. It's not in the Makefile, so maybe it's in your CFLAGS? Try running with make CFLAGS="".

If you want to actually diagnose the issue, try running declare -f C{,XX}FLAGS LDFLAGS. If you see -xCORE-AVX2 there, it means that someone set it up that way -- talk to your sysadmin, I guess, and tell them that the correct flag is -march=core-avx2. (Or -march=native, that never goes wrong.)