I also faced the same error and the suggested solution solved the issue. DCMAKE_C_FLAGS="-mno-outline-atomics"