我的 Linux 发行版将我的 GCC 版本升级到了 5.5.0(如果我知道为什么,那该死的)。现在,当我尝试构建包含 的代码时avx512fintrin.h
,会出现大量编译器错误:
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9220): error: argument of type "const void *" is incompatible with parameter of type "const float *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9231): error: argument of type "const void *" is incompatible with parameter of type "const float *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9244): error: argument of type "const void *" is incompatible with parameter of type "const double *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9255): error: argument of type "const void *" is incompatible with parameter of type "const double *"
等等。为什么会发生这种情况,有没有办法(希望不是太特定于发行版)来解决或规避这个问题?
PS - 如果重要,我使用 GNU/Linux Mint 18.3。