Error when installing px4 firmware

FAILED: src/drivers/imu/invensense/icm20948/CMakeFiles/drivers__imu__invensense__icm20948.dir/ICM20948.cpp.o
/usr/bin/arm-linux-gnueabihf-g++ -DCONFIG_ARCH_BOARD_EMLID_NAVIO2 -DMODULE_NAME="icm20948" -DPX4_MAIN=icm20948_app_main -D__CUSTOM_FILE_IO__ -D__PX4_LINUX -D__PX4_POSIX -D__STDC_FORMAT_MACROS -Dnoreturn_function=“attribute((noreturn))” -I…/…/boards/emlid/navio2/src -I…/…/platforms/posix/src/px4/common/include -I. -Isrc/lib -I…/…/platforms/posix/src/px4/generic/generic/include -I…/…/platforms/common -I…/…/platforms/common/include -I…/…/src -I…/…/src/include -I…/…/src/lib -I…/…/src/lib/matrix -I…/…/src/modules -I…/…/boards/emlid/navio2/include -I…/…/platforms/posix/include -Iexternal/Install/include -O2 -g -DNDEBUG -fPIC -g -fdata-sections -ffunction-sections -fomit-frame-pointer -fmerge-all-constants -fno-signed-zeros -fno-trapping-math -freciprocal-math -fno-math-errno -fno-strict-aliasing -fvisibility=hidden -include visibility.h -Wall -Wextra -Werror -Warray-bounds -Wcast-align -Wdisabled-optimization -Wdouble-promotion -Wfatal-errors -Wfloat-equal -Wformat-security -Winit-self -Wlogical-op -Wpointer-arith -Wshadow -Wuninitialized -Wunknown-pragmas -Wunused-variable -Wno-missing-field-initializers -Wno-missing-include-dirs -Wno-unused-parameter -fdiagnostics-color=always -fno-builtin-printf -fno-strength-reduce -Wformat=1 -Wunused-but-set-variable -Wno-format-truncation -fcheck-new -Wreorder -Wno-overloaded-virtual -fno-rtti -std=gnu++14 -MD -MT src/drivers/imu/invensense/icm20948/CMakeFiles/drivers__imu__invensense__icm20948.dir/ICM20948.cpp.o -MF src/drivers/imu/invensense/icm20948/CMakeFiles/drivers__imu__invensense__icm20948.dir/ICM20948.cpp.o.d -o src/drivers/imu/invensense/icm20948/CMakeFiles/drivers__imu__invensense__icm20948.dir/ICM20948.cpp.o -c …/…/src/drivers/imu/invensense/icm20948/ICM20948.cpp
In file included from …/…/platforms/common/include/px4_platform_common/atomic_bitset.h:36,
from …/…/platforms/common/uORB/uORBDeviceMaster.hpp:54,
from …/…/platforms/common/uORB/uORBDeviceNode.hpp:37,
from …/…/platforms/common/uORB/PublicationMulti.hpp:44,
from …/…/src/lib/drivers/accelerometer/PX4Accelerometer.hpp:39,
from …/…/src/drivers/imu/invensense/icm20948/ICM20948.hpp:46,
from …/…/src/drivers/imu/invensense/icm20948/ICM20948.cpp:34:
…/…/platforms/common/include/px4_platform_common/atomic.h: In instantiation of ‘class px4::atomic’:
…/…/src/drivers/imu/invensense/icm20948/ICM20948.hpp:172:51: required from here
…/…/platforms/common/include/px4_platform_common/atomic.h:76:41: error: static assertion failed: atomic is not lock-free for the given type T
static_assert(__atomic_always_lock_free(sizeof(T), 0), “atomic is not lock-free for the given type T”);
This is the error that comes when installing px4