Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
morgansobol opened this issue Aug 8, 2022 · 1 comment
Open

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

morgansobol opened this issue Aug 8, 2022 · 1 comment

Comments

@morgansobol
Copy link

morgansobol commented Aug 8, 2022

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
Copy link

Artoria2e5 commented Dec 19, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants