Compiling Px4 in Raspberry

I am trying to compile PX4 on raspian buster (raspberry pi 4)

My commands are:

git clone https://github.com/PX4/Firmware.git
cd Firmware/
git tag -l
git checkout

(I am now at master branch)

make posix jmavsim

Here it fails.
Help please
The error is :

– PX4 version: v1.10.0-beta1-146-g105bbef3bf
– PX4 config file: /home/pi/mavlink-control/Firmware/boards/px4/sitl/default.cmake
– PX4 config: px4_sitl_default
– PX4 platform: posix
– PX4 lockstep: enabled
– cmake build type: RelWithDebInfo
– The CXX compiler identification is GNU 8.3.0
– The C compiler identification is GNU 8.3.0
– The ASM compiler identification is GNU
– Found assembler: /usr/bin/cc
– Check for working CXX compiler: /usr/bin/c++
– Check for working CXX compiler: /usr/bin/c++ – works
– Detecting CXX compiler ABI info
– Detecting CXX compiler ABI info - done
– Detecting CXX compile features
– Detecting CXX compile features - done
– Check for working C compiler: /usr/bin/cc
– Check for working C compiler: /usr/bin/cc – works
– Detecting C compiler ABI info
– Detecting C compiler ABI info - done
– Detecting C compile features
– Detecting C compile features - done
– Found PythonInterp: /usr/bin/python (found version “2.7.16”)
– Found PY_jinja2: /usr/lib/python2.7/dist-packages/jinja2
– PX4 ECL: Very lightweight Estimation & Control Library v1.9.0-rc1-62-gb78429a
– Configuring done
– Generating done
– Build files have been written to: /home/pi/mavlink-control/Firmware/build/px4_sitl_default
[16/681] git submodule src/drivers/gps/devices
[22/681] git submodule src/lib/ecl
[26/681] git submodule mavlink/include/mavlink/v2.0
[28/681] git submodule Tools/jMAVSim
[680/681] Linking CXX executable bin/px4
FAILED: bin/px4
: && /usr/bin/c++ -O2 -g -DNDEBUG -Wl,–export-dynamic -rdynamic platforms/posix/CMakeFiles/px4.dir/src/px4/common/main.cpp.o platforms/posix/CMakeFiles/px4.dir/apps.cpp.o -o bin/px4 -L/home/pi/mavlink-control/Firmware/build/px4_sitl_default/external/Install/lib -Wl,-rpath,/home/pi/mavlink-control/Firmware/build/px4_sitl_default/external/Install/lib src/lib/cdev/test/liblib__cdev__test__cdev_test.a src/lib/controllib/controllib_test/liblib__controllib__controllib_test.a src/lib/rc/rc_tests/liblib__rc__rc_tests.a platforms/common/px4_work_queue/test/liblib__work_queue__test__wqueue_test.a src/modules/uORB/libmodules__uORB.a src/modules/uORB/uORB_tests/libmodules__uORB__uORB_tests.a src/drivers/camera_trigger/libdrivers__camera_trigger.a src/drivers/gps/libdrivers__gps.a src/drivers/pwm_out_sim/libdrivers__pwm_out_sim.a src/drivers/tone_alarm/libdrivers__tone_alarm.a src/modules/attitude_estimator_q/libmodules__attitude_estimator_q.a src/modules/camera_feedback/libmodules__camera_feedback.a src/modules/commander/libmodules__commander.a src/modules/commander/commander_tests/libmodules__commander__commander_tests.a src/modules/dataman/libmodules__dataman.a src/modules/ekf2/libmodules__ekf2.a src/modules/events/libmodules__events.a src/modules/fw_att_control/libmodules__fw_att_control.a src/modules/fw_pos_control_l1/libmodules__fw_pos_control_l1.a src/modules/rover_pos_control/libmodules__rover_pos_control.a src/modules/land_detector/libmodules__land_detector.a src/modules/landing_target_estimator/libmodules__landing_target_estimator.a src/modules/load_mon/libmodules__load_mon.a src/modules/local_position_estimator/libmodules__local_position_estimator.a src/modules/logger/libmodules__logger.a src/modules/mavlink/libmodules__mavlink.a src/modules/mavlink/mavlink_tests/libmodules__mavlink__mavlink_tests.a src/modules/mc_att_control/libmodules__mc_att_control.a src/modules/mc_pos_control/libmodules__mc_pos_control.a src/modules/navigator/libmodules__navigator.a src/modules/replay/libmodules__replay.a src/modules/sensors/libmodules__sensors.a src/modules/simulator/libmodules__simulator.a src/modules/simulator/gpssim/libdrivers__gpssim.a src/modules/vmount/libdrivers__vmount.a src/modules/vtol_att_control/libmodules__vtol_att_control.a src/modules/airspeed_selector/libmodules__airspeed_selector.a src/systemcmds/dyn/libsystemcmds__dyn.a src/systemcmds/esc_calib/libsystemcmds__esc_calib.a src/systemcmds/led_control/libsystemcmds__led_control.a src/systemcmds/mixer/libsystemcmds__mixer.a src/systemcmds/motor_ramp/libsystemcmds__motor_ramp.a src/systemcmds/param/libsystemcmds__param.a src/systemcmds/perf/libsystemcmds__perf.a src/systemcmds/pwm/libsystemcmds__pwm.a src/systemcmds/reboot/libsystemcmds__reboot.a src/systemcmds/sd_bench/libsystemcmds__sd_bench.a src/systemcmds/shutdown/libsystemcmds__shutdown.a src/systemcmds/tests/libsystemcmds__tests.a src/systemcmds/tests/hrt_test/libsystemcmds__tests__hrt_test.a src/systemcmds/top/libsystemcmds__top.a src/systemcmds/topic_listener/libsystemcmds__topic_listener.a src/systemcmds/tune_control/libsystemcmds__tune_control.a src/systemcmds/ver/libsystemcmds__ver.a src/examples/bottle_drop/libmodules__bottle_drop.a src/examples/fixedwing_control/libexamples__fixedwing_control.a src/examples/hello/libexamples__hello.a src/examples/px4_mavlink_debug/libexamples__px4_mavlink_debug.a src/examples/px4_simple_app/libexamples__px4_simple_app.a src/examples/rover_steering_control/libexamples__rover_steering_control.a src/lib/DriverFramework/framework/src/libdf_driver_framework.a -lpthread -lm platforms/posix/src/px4/common/libpx4_layer.a platforms/common/libpx4_platform.a platforms/common/work_queue/libwork_queue.a src/lib/parameters/libparameters.a -lrt src/modules/uORB/libmodules__uORB.a src/lib/rc/librc.a platforms/posix/src/px4/generic/generic/tone_alarm/libarch_tone_alarm.a src/modules/commander/failure_detector/libfailure_detector.a src/lib/ecl/EKF/libecl_EKF.a src/lib/ecl/attitude_fw/libecl_attitude_fw.a src/lib/ecl/tecs/libecl_tecs.a src/modules/fw_pos_control_l1/launchdetection/liblaunchdetection.a src/modules/fw_pos_control_l1/runway_takeoff/librunway_takeoff.a src/lib/ecl/l1/libecl_l1.a src/lib/pid/libpid.a src/lib/circuit_breaker/libcircuit_breaker.a src/modules/mc_att_control/AttitudeControl/libAttitudeControl.a src/lib/controllib/libcontrollib.a src/lib/FlightTasks/libFlightTasks.a src/lib/FlightTasks/tasks/ManualAltitudeSmoothVel/libFlightTaskManualAltitudeSmoothVel.a src/lib/FlightTasks/tasks/ManualPositionSmooth/libFlightTaskManualPositionSmooth.a src/lib/FlightTasks/tasks/ManualPositionSmoothVel/libFlightTaskManualPositionSmoothVel.a src/lib/FlightTasks/tasks/ManualPosition/libFlightTaskManualPosition.a src/lib/FlightTasks/tasks/AutoLine/libFlightTaskAutoLine.a src/lib/FlightTasks/tasks/AutoMapper/libFlightTaskAutoMapper.a src/lib/FlightTasks/tasks/AutoLineSmoothVel/libFlightTaskAutoLineSmoothVel.a src/lib/FlightTasks/tasks/AutoMapper2/libFlightTaskAutoMapper2.a src/lib/FlightTasks/tasks/AutoFollowMe/libFlightTaskAutoFollowMe.a src/lib/FlightTasks/tasks/Auto/libFlightTaskAuto.a src/lib/FlightTasks/tasks/Offboard/libFlightTaskOffboard.a src/lib/FlightTasks/tasks/Failsafe/libFlightTaskFailsafe.a src/lib/FlightTasks/tasks/Transition/libFlightTaskTransition.a src/lib/FlightTasks/tasks/Orbit/libFlightTaskOrbit.a src/lib/FlightTasks/tasks/ManualAltitudeSmooth/libFlightTaskManualAltitudeSmooth.a src/lib/FlightTasks/tasks/ManualAltitude/libFlightTaskManualAltitude.a src/lib/FlightTasks/tasks/Manual/libFlightTaskManual.a src/lib/FlightTasks/tasks/Utility/libFlightTaskUtility.a src/lib/hysteresis/libhysteresis.a src/lib/FlightTasks/tasks/FlightTask/libFlightTask.a src/lib/WeatherVane/libWeatherVane.a src/lib/CollisionPrevention/libCollisionPrevention.a src/modules/mc_pos_control/Takeoff/libTakeoff.a src/lib/landing_slope/liblanding_slope.a src/lib/airspeed/libairspeed.a src/lib/mathlib/libmathlib.a src/lib/ecl/validation/libecl_validation.a src/modules/sensors/vehicle_acceleration/libsensors__vehicle_acceleration.a src/modules/sensors/vehicle_angular_velocity/libsensors__vehicle_angular_velocity.a src/modules/simulator/libmodules__simulator.a src/lib/conversion/libconversion.a src/lib/battery/libbattery.a src/modules/simulator/ledsim/libdrivers__ledsim.a src/lib/drivers/led/libdrivers__led.a src/lib/drivers/accelerometer/libdrivers_accelerometer.a src/lib/drivers/barometer/libdrivers_barometer.a src/lib/drivers/gyroscope/libdrivers_gyroscope.a src/lib/drivers/device/libdrivers__device.a src/lib/drivers/magnetometer/libdrivers_magnetometer.a src/lib/AirspeedValidator/libAirspeedValidator.a src/lib/ecl/airdata/libecl_airdata.a -ldl src/lib/mixer/libmixer.a src/lib/ecl/geo_lookup/libecl_geo_lookup.a src/lib/output_limit/liboutput_limit.a src/lib/tunes/libtunes.a src/lib/version/libversion.a src/lib/ecl/geo/libecl_geo.a src/modules/uORB/libmodules__uORB.a platforms/posix/src/px4/common/libpx4_layer.a platforms/common/libpx4_platform.a src/lib/systemlib/libsystemlib.a src/lib/cdev/libcdev.a platforms/common/px4_work_queue/libpx4_work_queue.a platforms/posix/src/px4/common/px4_daemon/libpx4_daemon.a src/modules/uORB/libmodules__uORB.a platforms/posix/src/px4/common/libpx4_layer.a platforms/common/libpx4_platform.a src/lib/systemlib/libsystemlib.a src/lib/cdev/libcdev.a platforms/common/px4_work_queue/libpx4_work_queue.a platforms/posix/src/px4/common/px4_daemon/libpx4_daemon.a platforms/common/work_queue/libwork_queue.a boards/px4/sitl/src/libdrivers_board.a platforms/posix/src/px4/common/lockstep_scheduler/liblockstep_scheduler.a src/lib/parameters/libparameters.a src/lib/perf/libperf.a src/lib/parameters/tinybson/libtinybson.a msg/libuorb_msgs.a && cd /home/pi/mavlink-control/Firmware/build/px4_sitl_default/bin && /usr/bin/cmake -E create_symlink px4 px4-cdev_test && cd /home/pi/mavlink-control/Firmware/build/px4_sitl_default/bin && /usr/bin/cmake -E create_symlink px4 px4-controllib_test && cd /home/pi/mavlink-control/Firmware/build/px4_sitl_default/bin && /usr/bin/cmake -E create_symlink px4 px4-rc_tests && cd /home/pi/mavlink-control/Firmware/build/px4_sitl_default/bin && /usr/bin/cmake -E create_symlink px4 px4-wqueue_test && cd /home/pi/mavlink-control/Firmware/build/px4_sitl_default/bin && /usr/bin/cmake -E create_symlink px4 px4-uorb && cd /home/pi/mavlink-control/Firmware/build/px4_sitl_default/bin && /usr/bin/cmake -E create_symlink px4 px4-uorb_tests && cd /home/pi/mavlink-control/Firmware/build/px4_sitl_default/bin && /usr/bin/cmake -E create_symlink px4 px4-camera_trigger && cd /home/pi/mavlink-control/Firmware/build/px4_sitl_default/bin && /usr/bin/cmake -E create_symlink px4 px4-gps && cd /home/pi/mavlink-control/Firmware/build/px4_sitl_default/bin && /usr/bin/cmake -E create_symlink px4 px4-pwm_out_sim && cd /home/pi/mavlink-control/Firmware/build/px4_sitl_default/bin && /usr/bin/cmake -E create_symlink px4 px4-tone_alarm && cd /home/pi/mavlink-control/Firmware/build/px4_sitl_default/bin && /usr/bin/cmake -E create_symlink px4 px4-attitude_estimator_q && cd /home/pi/mavlink-control/Firmware/build/px4_sitl_default/bin && /usr/bin/cmake -E create_symlink px4 px4-camera_feedback && cd /home/pi/mavlink-control/Firmware/build/px4_sitl_default/bin && /usr/bin/cmake -E create_symlink px4 px4-commander && cd /home/pi/mavlink-control/Firmware/build/px4_sitl_default/bin && /usr/bin/cmake -E create_symlink px4 px4-commander_tests && cd /home/pi/mavlink-control/Firmware/build/px4_sitl_default/bin && /usr/bin/cmake -E create_symlink px4 px4-dataman && cd /home/pi/mavlink-control/Firmware/build/px4_sitl_default/bin && /usr/bin/cmake -E create_symlink px4 px4-ekf2 && cd /home/pi/mavlink-control/Firmware/build/px4_sitl_default/bin && /usr/bin/cmake -E create_symlink px4 px4-send_event && cd /home/pi/mavlink-control/Firmware/build/px4_sitl_default/bin && /usr/bin/cmake -E create_symlink px4 px4-fw_att_control && cd /home/pi/mavlink-control/Firmware/build/px4_sitl_default/bin && /usr/bin/cmake -E create_symlink px4 px4-fw_pos_control_l1 && cd /home/pi/mavlink-control/Firmware/build/px4_sitl_default/bin && /usr/bin/cmake -E create_symlink px4 px4-rover_pos_control && cd /home/pi/mavlink-control/Firmware/build/px4_sitl_default/bin && /usr/bin/cmake -E create_symlink px4 px4-land_detector && cd /home/pi/mavlink-control/Firmware/build/px4_sitl_default/bin && /usr/bin/cmake -E create_symlink px4 px4-landing_target_estimator && cd /home/pi/mavlink-control/Firmware/build/px4_sitl_default/bin && /usr/bin/cmake -E create_symlink px4 px4-load_mon && cd /home/pi/mavlink-control/Firmware/build/px4_sitl_default/bin && /usr/bin/cmake -E create_symlink px4 px4-local_position_estimator && cd /home/pi/mavlink-control/Firmware/build/px4_sitl_default/bin && /usr/bin/cmake -E create_symlink px4 px4-logger && cd /home/pi/mavlink-control/Firmware/build/px4_sitl_default/bin && /usr/bin/cmake -E create_symlink px4 px4-mavlink && cd /home/pi/mavlink-control/Firmware/build/px4_sitl_default/bin && /usr/bin/cmake -E create_symlink px4 px4-mavlink_tests && cd /home/pi/mavlink-control/Firmware/build/px4_sitl_default/bin && /usr/bin/cmake -E create_symlink px4 px4-mc_att_control && cd /home/pi/mavlink-control/Firmware/build/px4_sitl_default/bin && /usr/bin/cmake -E create_symlink px4 px4-mc_pos_control && cd /home/pi/mavlink-control/Firmware/build/px4_sitl_default/bin && /usr/bin/cmake -E create_symlink px4 px4-navigator && cd /home/pi/mavlink-control/Firmware/build/px4_sitl_default/bin && /usr/bin/cmake -E create_symlink px4 px4-replay && cd /home/pi/mavlink-control/Firmware/build/px4_sitl_default/bin && /usr/bin/cmake -E create_symlink px4 px4-sensors && cd /home/pi/mavlink-control/Firmware/build/px4_sitl_default/bin && /usr/bin/cmake -E create_symlink px4 px4-simulator && cd /home/pi/mavlink-control/Firmware/build/px4_sitl_default/bin && /usr/bin/cmake -E create_symlink px4 px4-gpssim && cd /home/pi/mavlink-control/Firmware/build/px4_sitl_default/bin && /usr/bin/cmake -E create_symlink px4 px4-vmount && cd /home/pi/mavlink-control/Firmware/build/px4_sitl_default/bin && /usr/bin/cmake -E create_symlink px4 px4-vtol_att_control && cd /home/pi/mavlink-control/Firmware/build/px4_sitl_default/bin && /usr/bin/cmake -E create_symlink px4 px4-airspeed_selector && cd /home/pi/mavlink-control/Firmware/build/px4_sitl_default/bin && /usr/bin/cmake -E create_symlink px4 px4-dyn && cd /home/pi/mavlink-control/Firmware/build/px4_sitl_default/bin && /usr/bin/cmake -E create_symlink px4 px4-esc_calib && cd /home/pi/mavlink-control/Firmware/build/px4_sitl_default/bin && /usr/bin/cmake -E create_symlink px4 px4-led_control && cd /home/pi/mavlink-control/Firmware/build/px4_sitl_default/bin && /usr/bin/cmake -E create_symlink px4 px4-mixer && cd /home/pi/mavlink-control/Firmware/build/px4_sitl_default/bin && /usr/bin/cmake -E create_symlink px4 px4-motor_ramp && cd /home/pi/mavlink-control/Firmware/build/px4_sitl_default/bin && /usr/bin/cmake -E create_symlink px4 px4-param && cd /home/pi/mavlink-control/Firmware/build/px4_sitl_default/bin && /usr/bin/cmake -E create_symlink px4 px4-perf && cd /home/pi/mavlink-control/Firmware/build/px4_sitl_default/bin && /usr/bin/cmake -E create_symlink px4 px4-pwm && cd /home/pi/mavlink-control/Firmware/build/px4_sitl_default/bin && /usr/bin/cmake -E create_symlink px4 px4-reboot && cd /home/pi/mavlink-control/Firmware/build/px4_sitl_default/bin && /usr/bin/cmake -E create_symlink px4 px4-sd_bench && cd /home/pi/mavlink-control/Firmware/build/px4_sitl_default/bin && /usr/bin/cmake -E create_symlink px4 px4-shutdown && cd /home/pi/mavlink-control/Firmware/build/px4_sitl_default/bin && /usr/bin/cmake -E create_symlink px4 px4-tests && cd /home/pi/mavlink-control/Firmware/build/px4_sitl_default/bin && /usr/bin/cmake -E create_symlink px4 px4-hrt_test && cd /home/pi/mavlink-control/Firmware/build/px4_sitl_default/bin && /usr/bin/cmake -E create_symlink px4 px4-top && cd /home/pi/mavlink-control/Firmware/build/px4_sitl_default/bin && /usr/bin/cmake -E create_symlink px4 px4-listener && cd /home/pi/mavlink-control/Firmware/build/px4_sitl_default/bin && /usr/bin/cmake -E create_symlink px4 px4-tune_control && cd /home/pi/mavlink-control/Firmware/build/px4_sitl_default/bin && /usr/bin/cmake -E create_symlink px4 px4-ver && cd /home/pi/mavlink-control/Firmware/build/px4_sitl_default/bin && /usr/bin/cmake -E create_symlink px4 px4-bottle_drop && cd /home/pi/mavlink-control/Firmware/build/px4_sitl_default/bin && /usr/bin/cmake -E create_symlink px4 px4-ex_fixedwing_control && cd /home/pi/mavlink-control/Firmware/build/px4_sitl_default/bin && /usr/bin/cmake -E create_symlink px4 px4-hello && cd /home/pi/mavlink-control/Firmware/build/px4_sitl_default/bin && /usr/bin/cmake -E create_symlink px4 px4-px4_mavlink_debug && cd /home/pi/mavlink-control/Firmware/build/px4_sitl_default/bin && /usr/bin/cmake -E create_symlink px4 px4-px4_simple_app && cd /home/pi/mavlink-control/Firmware/build/px4_sitl_default/bin && /usr/bin/cmake -E create_symlink px4 px4-rover_steering_control
/usr/bin/ld: platforms/posix/src/px4/common/libpx4_layer.a(drv_hrt.cpp.o): in function hrt_absolute_time': /usr/include/c++/8/bits/atomic_base.h:396: undefined reference to__atomic_load_8’
/usr/bin/ld: platforms/posix/src/px4/common/libpx4_layer.a(drv_hrt.cpp.o): in function px4_clock_gettime': /usr/include/c++/8/bits/atomic_base.h:396: undefined reference to__atomic_load_8’
/usr/bin/ld: platforms/posix/src/px4/common/libpx4_layer.a(drv_hrt.cpp.o): in function px4_usleep': /usr/include/c++/8/bits/atomic_base.h:396: undefined reference to__atomic_load_8’
/usr/bin/ld: platforms/posix/src/px4/common/libpx4_layer.a(drv_hrt.cpp.o): in function px4_sleep': /usr/include/c++/8/bits/atomic_base.h:396: undefined reference to__atomic_load_8’
/usr/bin/ld: platforms/posix/src/px4/common/lockstep_scheduler/liblockstep_scheduler.a(lockstep_scheduler.cpp.o): in function LockstepScheduler::set_absolute_time(unsigned long long)': /usr/include/c++/8/bits/atomic_base.h:374: undefined reference to__atomic_store_8’
/usr/bin/ld: platforms/posix/src/px4/common/lockstep_scheduler/liblockstep_scheduler.a(lockstep_scheduler.cpp.o): in function LockstepScheduler::cond_timedwait(pthread_cond_t*, pthread_mutex_t*, unsigned long long)': /usr/include/c++/8/bits/atomic_base.h:396: undefined reference to__atomic_load_8’
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
make: *** [Makefile:195: px4_sitl_default] Fehler 1