Error: atomic: No such file or directory

I’m trying to build Turris OS running BUILD_ALL=y ./compile_omnia_fw in Vagrant environment
But I got this error:

[ 65%] Building CXX object storage/ rocksdb/CMakeFiles /rocksdblib.dir/rocksdb/cache/clock_cache.cc.o In file included from /openwrt/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.15_eabi/mariadb-10.2.15/storage/rocksdb/rocksdb/include/rocksdb/cache.h:29:0, from /openwrt/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.15_eabi/mariadb-10.2.15/storage/rocksdb/rocksdb/cache/clock_cache.h:12, from /openwrt/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.15_eabi/mariadb-10.2.15/storage/rocksdb/rocksdb/cache/clock_cache.cc:10: /openwrt/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.15_eabi/mariadb-10.2.15/storage/rocksdb/rocksdb/include/rocksdb/statistics.h:9:18: fatal error: atomic: No such file or directory #include <atomic> ^ compilation terminated. make[5]: *** [storage/rocksdb/CMakeFiles/rocksdblib.dir/rocksdb/cache/clock_cache.cc.o] Error 1 make[5]: Leaving directory '/openwrt/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.15_eabi/mariadb-10.2.15' make[4]: *** [storage/rocksdb/CMakeFiles/rocksdblib.dir/all] Error 2 make[4]: Leaving directory '/openwrt/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.15_eabi/mariadb-10.2.15' make[3]: *** [all] Error 2 make[3]: Leaving directory '/openwrt/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.15_eabi/mariadb-10.2.15' make[2]: *** [/openwrt/build_dir/target-arm_cortex-a9+vfpv3_musl-1.1.15_eabi/mariadb-10.2.15/.built] Error 2 make[2]: Leaving directory '/openwrt/feeds/turrispackages/utils/mariadb' make[1]: *** [package/feeds/turrispackages/mariadb/compile] Error 2 make[1]: Leaving directory '/openwrt' make: *** [package/mariadb/compile] Error 2

How can I fix it?

I have the same exact error :frowning:
Did you find a solution?

So I kind of know what’s wrong and a potential fix but I don’t know how to implement it.

Atomic is a standard with CPP11
The fix is to enable cpp11 which is not enabled by default. The way to enable it is to use a switch on the cpp command.

How do I do this when using Make?

It’s the Mariadb-server package. I cannot disable it in menuconfig.
Anyone know a solution?