error code launching darktable

To check the actual options used you can do:

gcc -march=x86-64 -Q --help=target

For example on my side:

gcc -march=x86-64 -Q --help=target | grep avx

List avx and avx2 as disabled. But if I use native instead of x86-64 they are marked as enabled.