O2 Build fails on Ubuntu 22.04.3 LTS on testCTFEntropyCoder.cxx.o

Following instructions from here: https://aliceo2group.github.io/analysis-framework/docs/gettingstarted/installing.html

Full log is here

Error reads as follows

[594/5119] Building CXX object DataFormats/Detectors/Common/CMakeFiles/O2test-detectorscommondataformats-CTFEntropyCoder.dir/test/testCTFEntropyCoder.cxx.o
FAILED: DataFormats/Detectors/Common/CMakeFiles/O2test-detectorscommondataformats-CTFEntropyCoder.dir/test/testCTFEntropyCoder.cxx.o
/home/brian/alice/sw/ubuntu2204_x86-64/GCC-Toolchain/v12.2.0-alice1-2/bin/c++ -DBOOST_ASIO_HAS_HAS_STD_CHRONO -DBOOST_ATOMIC_DYN_LINK -DBOOST_ATOMIC_NO_LIB -DBOOST_CONTAINER_DYN_LINK -DBOOST_CONTAINER_NO_LIB -DBOOST_ERROR_CODE_HEADER_ONLY -DBOOST_FILESYSTEM_DYN_LINK -DBOOST_FILESYSTEM_NO_LIB -DBOOST_IOSTREAMS_DYN_LINK -DBOOST_IOSTREAMS_NO_LIB -DBOOST_PROGRAM_OPTIONS_DYN_LINK -DBOOST_PROGRAM_OPTIONS_NO_LIB -DBOOST_REGEX_DYN_LINK -DBOOST_REGEX_NO_LIB -DBOOST_UNIT_TEST_FRAMEWORK_DYN_LINK -DBOOST_UNIT_TEST_FRAMEWORK_NO_LIB -DDPL_ENABLE_BACKTRACE -DENABLE_UPGRADES -DFAIRMQ_HAS_STD_FILESYSTEM=1 -DFAIRMQ_HAS_STD_PMR=1 -DFMT_SHARED -DRANS_ENABLE_JSON -DRANS_OPENMP -DZDC_FASTSIM_ONNX -I/home/brian/alice/sw/SOURCES/O2/daily-20240118-0100/daily-20240118-0100/DataFormats/Detectors/Common/include -I/home/brian/alice/sw/SOURCES/O2/daily-20240118-0100/daily-20240118-0100/GPU/Common -I/home/brian/alice/sw/SOURCES/O2/daily-20240118-0100/daily-20240118-0100/Framework/Logger/include -I/home/brian/alice/sw/SOURCES/O2/daily-20240118-0100/daily-20240118-0100/GPU/Utils -I/home/brian/alice/sw/SOURCES/O2/daily-20240118-0100/daily-20240118-0100/Common/MathUtils/include -I/home/brian/alice/sw/SOURCES/O2/daily-20240118-0100/daily-20240118-0100/Common/Constants/include -I/home/brian/alice/sw/SOURCES/O2/daily-20240118-0100/daily-20240118-0100/DataFormats/Headers/include -I/home/brian/alice/sw/SOURCES/O2/daily-20240118-0100/daily-20240118-0100/DataFormats/MemoryResources/include -I/home/brian/alice/sw/SOURCES/O2/daily-20240118-0100/daily-20240118-0100/Utilities/rANS/include -I/home/brian/alice/sw/SOURCES/O2/daily-20240118-0100/daily-20240118-0100/Framework/Core/include -I/home/brian/alice/sw/SOURCES/O2/daily-20240118-0100/daily-20240118-0100/DataFormats/simulation/include -I/home/brian/alice/sw/SOURCES/O2/daily-20240118-0100/daily-20240118-0100/Framework/Foundation/include -I/home/brian/alice/sw/SOURCES/O2/daily-20240118-0100/daily-20240118-0100/Framework/Foundation/3rdparty/include -I/home/brian/alice/sw/SOURCES/O2/daily-20240118-0100/daily-20240118-0100/Utilities/PCG/include -I/home/brian/alice/sw/SOURCES/O2/daily-20240118-0100/daily-20240118-0100/Common/Utils/include -I/home/brian/alice/sw/SOURCES/O2/daily-20240118-0100/daily-20240118-0100/DataFormats/common/include -isystem /home/brian/alice/sw/ubuntu2204_x86-64/ROOT/v6-30-01-alice2-3/include -isystem /home/brian/alice/sw/ubuntu2204_x86-64/fmt/10.1.1-4/include -isystem /home/brian/alice/sw/ubuntu2204_x86-64/FairLogger/v1.11.1-8/include -isystem /home/brian/alice/sw/ubuntu2204_x86-64/Vc/1.4.1-5/include -isystem /home/brian/alice/sw/ubuntu2204_x86-64/FairMQ/v1.8.4-6/include/fairmq -isystem /home/brian/alice/sw/ubuntu2204_x86-64/FairMQ/v1.8.4-6/include -isystem /home/brian/alice/sw/ubuntu2204_x86-64/boost/v1.83.0-alice1-4/include -isystem /home/brian/alice/sw/ubuntu2204_x86-64/ms_gsl/4.0.0-5/include -isystem /home/brian/alice/sw/ubuntu2204_x86-64/abseil/20220623.1-5/include -isystem /home/brian/alice/sw/ubuntu2204_x86-64/RapidJSON/v1.1.0-alice2-6/include -isystem /home/brian/alice/sw/ubuntu2204_x86-64/Configuration/v2.7.0-3/include -isystem /home/brian/alice/sw/ubuntu2204_x86-64/Monitoring/v3.18.1-4/include -isystem /home/brian/alice/sw/ubuntu2204_x86-64/curl/7.70.0-6/include -isystem /home/brian/alice/sw/ubuntu2204_x86-64/arrow/v14.0.1-alice1-5/include -isystem /home/brian/alice/sw/ubuntu2204_x86-64/Clang/v15.0.7-8/include -isystem /home/brian/alice/sw/ubuntu2204_x86-64/libuv/v1.40.0-5/include -isystem /home/brian/alice/sw/ubuntu2204_x86-64/TBB/v2021.5.0-5/include -fPIC -O2 -std=c++17 -O2 -g -DNDEBUG -Wno-unknown-warning-option -std=c++17 -march=native -fopenmp -MD -MT DataFormats/Detectors/Common/CMakeFiles/O2test-detectorscommondataformats-CTFEntropyCoder.dir/test/testCTFEntropyCoder.cxx.o -MF DataFormats/Detectors/Common/CMakeFiles/O2test-detectorscommondataformats-CTFEntropyCoder.dir/test/testCTFEntropyCoder.cxx.o.d -o DataFormats/Detectors/Common/CMakeFiles/O2test-detectorscommondataformats-CTFEntropyCoder.dir/test/testCTFEntropyCoder.cxx.o -c /home/brian/alice/sw/SOURCES/O2/daily-20240118-0100/daily-20240118-0100/DataFormats/Detectors/Common/test/testCTFEntropyCoder.cxx
In file included from /home/brian/alice/sw/ubuntu2204_x86-64/GCC-Toolchain/v12.2.0-alice1-2/lib/gcc/x86_64-unknown-linux-gnu/12.2.0/include/immintrin.h:105,
from /home/brian/alice/sw/SOURCES/O2/daily-20240118-0100/daily-20240118-0100/Utilities/rANS/include/rANS/internal/common/simdops.h:23,
from /home/brian/alice/sw/SOURCES/O2/daily-20240118-0100/daily-20240118-0100/Utilities/rANS/include/rANS/internal/containers/DenseHistogram.h:34,
from /home/brian/alice/sw/SOURCES/O2/daily-20240118-0100/daily-20240118-0100/Utilities/rANS/include/rANS/internal/metrics/Metrics.h:25,
from /home/brian/alice/sw/SOURCES/O2/daily-20240118-0100/daily-20240118-0100/Utilities/rANS/include/rANS/pack.h:24,
from /home/brian/alice/sw/SOURCES/O2/daily-20240118-0100/daily-20240118-0100/DataFormats/Detectors/Common/include/DetectorsCommonDataFormats/internal/Packer.h:20,
from /home/brian/alice/sw/SOURCES/O2/daily-20240118-0100/daily-20240118-0100/DataFormats/Detectors/Common/test/testCTFEntropyCoder.cxx:33:
/home/brian/alice/sw/ubuntu2204_x86-64/GCC-Toolchain/v12.2.0-alice1-2/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/brian/alice/sw/ubuntu2204_x86-64/GCC-Toolchain/v12.2.0-alice1-2/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
143 | _mm256_fnmadd_pd (__m256d __A, __m256d __B, __m256d __C)
| ^~~~~~~~~~~~~~~~
/home/brian/alice/sw/SOURCES/O2/daily-20240118-0100/daily-20240118-0100/Utilities/rANS/include/rANS/internal/common/simdops.h:334:33: note: called from here
334 | __m256d mod = _mm256_fnmadd_pd(div, denominator, numerator);
| ^~~~~~~~~~~~~
/home/brian/alice/sw/ubuntu2204_x86-64/GCC-Toolchain/v12.2.0-alice1-2/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
143 | _mm256_fnmadd_pd (__m256d __A, __m256d __B, __m256d __C)
| ^~~~~~~~~~~~~~~~
/home/brian/alice/sw/SOURCES/O2/daily-20240118-0100/daily-20240118-0100/Utilities/rANS/include/rANS/internal/common/simdops.h:334:33: note: called from here
334 | __m256d mod = _mm256_fnmadd_pd(div, denominator, numerator);
| ^~~~~~~~~~~~~
At global scope:
cc1plus: note: unrecognized command-line option ‘-Wno-unknown-warning-option’ may have been intended to silence earlier diagnostics
[595/5119] Building CXX object Utilities/DataSampling/CMakeFiles/O2lib-DataSampling.dir/src/DataSampling.cxx.o
[596/5119] Building CXX object Common/Utils/CMakeFiles/O2test-commonutils-TreeStream.dir/test/testTreeStream.cxx.o
[597/5119] Building CXX object DataFormats/Detectors/MUON/MCH/CMakeFiles/O2exe-mch-convert-bad-channels.dir/src/convert-bad-channels.cxx.o
[598/5119] Building CXX object Utilities/DataSampling/CMakeFiles/O2test-datasampling-DataSampling.dir/test/test_DataSampling.cxx.o
[599/5119] Building CXX object DataFormats/Detectors/MUON/MCH/CMakeFiles/O2lib-DataFormatsMCH.dir/G__O2DataFormatsMCH.cxx.o
ninja: build stopped: subcommand failed.

Hi @bhanley, see also:

This seems to be a problem with whatever you’re using to run a virtual machine (e.g. VirtualBox). For some reason, the compiler running inside the VM cannot detect your CPU type properly.

Try updating the program you use to run VMs, try updating the system inside and outside the VM, and try restarting your machine.