hyattpd / Prodigal

Prodigal Gene Prediction Software
GNU General Public License v3.0
432 stars 85 forks source link

gcc: error: language CORE-AVX2 not recognized #92

Open morgansobol opened 2 years ago

morgansobol commented 2 years ago

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

Artoria2e5 commented 8 months ago

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.)