“Target specific option mismatch” means that you’re missing a feature flag from your GCC invocation. You probably need to add -mavx
to your compiler invocation.
If you’re intending to run this on your computer only, -march=native
will turn on all the feature flags that your own machine supports.