Build fails on CentOS 8 with : inlining failed in call to always_inline m256d


the build of O2Suite fails with this error, that seems related to compilation flags.

/home/fap/alice/sw/slc8_x86-64/GCC-Toolchain/v12.2.0-alice1-5/lib/gcc/x86_64-unknown-linux-gnu/12.2.0/include/fmaintrin.h: In function ‘o2::rans::internal::simd::DivModo2::rans::internal::simd::SIMDWidth::AVX o2::rans::internal::simd::divMod(__m256d, __m256d)’:
/home/fap/alice/sw/slc8_x86-64/GCC-Toolchain/v12.2.0-alice1-5/lib/gcc/x86_64-unknown-linux-gnu/12.2.0/include/fmaintrin.h:143:1: error: inlining failed in call to ‘always_inline’ ‘__m256d _mm256_fnmadd_pd(__m256d, __m256d, __m256d)’: target specific option mismatch

Here is the log file.

Thank you

Antonio FRANCO

Dear O2 Group,

I tried to build using centos-7 and keep failing. Should I stop trying and switch to centos-8 fully?
However I am able to run in ubuntu 20.04.6 LTS.

Hi, it seems this error occurs when running aliBuild inside a virtual machine. Somehow the compiler cannot detect your CPU version properly, so some of the vectorization instructions don’t compile properly.

Try updating the program you use to run VMs (e.g. Virtualbox), updating the system inside the VM, and restarting your machine and/or the VM.