kalle@debian:~$ git clone --recurse-submodules https://github.com/ArduPilot/ardupilot.git Cloning into 'ardupilot'... remote: Enumerating objects: 451887, done. remote: Counting objects: 100% (980/980), done. remote: Compressing objects: 100% (601/601), done. remote: Total 451887 (delta 546), reused 638 (delta 373), pack-reused 450907 Receiving objects: 100% (451887/451887), 319.39 MiB | 6.80 MiB/s, done. Resolving deltas: 100% (334776/334776), done. Submodule 'modules/ChibiOS' (https://github.com/ArduPilot/ChibiOS.git) registered for path 'modules/ChibiOS' Submodule 'modules/CrashDebug' (https://github.com/ardupilot/CrashDebug) registered for path 'modules/CrashDebug' Submodule 'modules/DroneCAN/DSDL' (https://github.com/DroneCAN/DSDL.git) registered for path 'modules/DroneCAN/DSDL' Submodule 'modules/DroneCAN/dronecan_dsdlc' (https://github.com/DroneCAN/dronecan_dsdlc) registered for path 'modules/DroneCAN/dronecan_dsdlc' Submodule 'modules/DroneCAN/libcanard' (https://github.com/DroneCAN/libcanard) registered for path 'modules/DroneCAN/libcanard' Submodule 'modules/DroneCAN/pydronecan' (https://github.com/DroneCAN/pydronecan) registered for path 'modules/DroneCAN/pydronecan' Submodule 'modules/Micro-CDR' (https://github.com/ardupilot/Micro-CDR.git) registered for path 'modules/Micro-CDR' Submodule 'modules/Micro-XRCE-DDS-Client' (https://github.com/ardupilot/Micro-XRCE-DDS-Client.git) registered for path 'modules/Micro-XRCE-DDS-Client' Submodule 'modules/gbenchmark' (https://github.com/google/benchmark.git) registered for path 'modules/gbenchmark' Submodule 'modules/gsoap' (https://github.com/ArduPilot/gsoap) registered for path 'modules/gsoap' Submodule 'gtest' (https://github.com/ArduPilot/googletest) registered for path 'modules/gtest' Submodule 'modules/lwip' (https://github.com/ArduPilot/lwip.git) registered for path 'modules/lwip' Submodule 'modules/mavlink' (https://github.com/ArduPilot/mavlink) registered for path 'modules/mavlink' Submodule 'modules/waf' (https://github.com/ArduPilot/waf.git) registered for path 'modules/waf' Cloning into '/home/kalle/ardupilot/modules/ChibiOS'... remote: Enumerating objects: 237321, done. remote: Counting objects: 100% (237321/237321), done. remote: Compressing objects: 100% (51128/51128), done. remote: Total 237321 (delta 181746), reused 237078 (delta 181613), pack-reused 0 Receiving objects: 100% (237321/237321), 114.57 MiB | 6.85 MiB/s, done. Resolving deltas: 100% (181746/181746), done. Cloning into '/home/kalle/ardupilot/modules/CrashDebug'... remote: Enumerating objects: 750, done. remote: Counting objects: 100% (63/63), done. remote: Compressing objects: 100% (47/47), done. remote: Total 750 (delta 17), reused 40 (delta 12), pack-reused 687 Receiving objects: 100% (750/750), 2.87 MiB | 6.55 MiB/s, done. Resolving deltas: 100% (439/439), done. Cloning into '/home/kalle/ardupilot/modules/DroneCAN/DSDL'... remote: Enumerating objects: 1263, done. remote: Counting objects: 100% (490/490), done. remote: Compressing objects: 100% (213/213), done. remote: Total 1263 (delta 290), reused 329 (delta 264), pack-reused 773 Receiving objects: 100% (1263/1263), 162.20 KiB | 4.63 MiB/s, done. Resolving deltas: 100% (700/700), done. Cloning into '/home/kalle/ardupilot/modules/DroneCAN/dronecan_dsdlc'... remote: Enumerating objects: 161, done. remote: Counting objects: 100% (107/107), done. remote: Compressing objects: 100% (52/52), done. remote: Total 161 (delta 75), reused 61 (delta 54), pack-reused 54 Receiving objects: 100% (161/161), 35.26 KiB | 2.94 MiB/s, done. Resolving deltas: 100% (96/96), done. Cloning into '/home/kalle/ardupilot/modules/DroneCAN/libcanard'... remote: Enumerating objects: 2290, done. remote: Counting objects: 100% (513/513), done. remote: Compressing objects: 100% (131/131), done. remote: Total 2290 (delta 415), reused 401 (delta 381), pack-reused 1777 Receiving objects: 100% (2290/2290), 844.90 KiB | 6.08 MiB/s, done. Resolving deltas: 100% (1434/1434), done. Cloning into '/home/kalle/ardupilot/modules/DroneCAN/pydronecan'... remote: Enumerating objects: 1987, done. remote: Counting objects: 100% (364/364), done. remote: Compressing objects: 100% (159/159), done. remote: Total 1987 (delta 216), reused 296 (delta 200), pack-reused 1623 Receiving objects: 100% (1987/1987), 428.74 KiB | 5.79 MiB/s, done. Resolving deltas: 100% (1342/1342), done. Cloning into '/home/kalle/ardupilot/modules/Micro-CDR'... remote: Enumerating objects: 1764, done. remote: Counting objects: 100% (89/89), done. remote: Compressing objects: 100% (64/64), done. remote: Total 1764 (delta 31), reused 76 (delta 24), pack-reused 1675 Receiving objects: 100% (1764/1764), 734.04 KiB | 6.27 MiB/s, done. Resolving deltas: 100% (955/955), done. Cloning into '/home/kalle/ardupilot/modules/Micro-XRCE-DDS-Client'... remote: Enumerating objects: 9814, done. remote: Counting objects: 100% (1111/1111), done. remote: Compressing objects: 100% (611/611), done. remote: Total 9814 (delta 563), reused 833 (delta 364), pack-reused 8703 Receiving objects: 100% (9814/9814), 5.73 MiB | 6.66 MiB/s, done. Resolving deltas: 100% (5645/5645), done. Cloning into '/home/kalle/ardupilot/modules/gbenchmark'... remote: Enumerating objects: 8529, done. remote: Counting objects: 100% (124/124), done. remote: Compressing objects: 100% (92/92), done. remote: Total 8529 (delta 50), reused 81 (delta 27), pack-reused 8405 Receiving objects: 100% (8529/8529), 2.76 MiB | 5.88 MiB/s, done. Resolving deltas: 100% (5692/5692), done. Cloning into '/home/kalle/ardupilot/modules/gsoap'... remote: Enumerating objects: 6658, done. remote: Counting objects: 100% (6658/6658), done. remote: Compressing objects: 100% (1907/1907), done. remote: Total 6658 (delta 4340), reused 6653 (delta 4336), pack-reused 0 Receiving objects: 100% (6658/6658), 22.87 MiB | 6.30 MiB/s, done. Resolving deltas: 100% (4340/4340), done. Cloning into '/home/kalle/ardupilot/modules/gtest'... remote: Enumerating objects: 19567, done. remote: Total 19567 (delta 0), reused 0 (delta 0), pack-reused 19567 Receiving objects: 100% (19567/19567), 6.95 MiB | 6.64 MiB/s, done. Resolving deltas: 100% (14559/14559), done. Cloning into '/home/kalle/ardupilot/modules/lwip'... remote: Enumerating objects: 56134, done. remote: Counting objects: 100% (56134/56134), done. remote: Compressing objects: 100% (12957/12957), done. remote: Total 56134 (delta 42515), reused 56096 (delta 42480), pack-reused 0 Receiving objects: 100% (56134/56134), 8.13 MiB | 6.74 MiB/s, done. Resolving deltas: 100% (42515/42515), done. Cloning into '/home/kalle/ardupilot/modules/mavlink'... remote: Enumerating objects: 22644, done. remote: Counting objects: 100% (148/148), done. remote: Compressing objects: 100% (40/40), done. remote: Total 22644 (delta 86), reused 138 (delta 80), pack-reused 22496 Receiving objects: 100% (22644/22644), 12.93 MiB | 6.66 MiB/s, done. Resolving deltas: 100% (14307/14307), done. Cloning into '/home/kalle/ardupilot/modules/waf'... remote: Enumerating objects: 17265, done. remote: Counting objects: 100% (14/14), done. remote: Compressing objects: 100% (9/9), done. remote: Total 17265 (delta 5), reused 10 (delta 5), pack-reused 17251 Receiving objects: 100% (17265/17265), 5.24 MiB | 6.73 MiB/s, done. Resolving deltas: 100% (12198/12198), done. Submodule path 'modules/ChibiOS': checked out 'cc37d7f2f772c5eb7c17225c6467cc2ce4c49b29' Submodule path 'modules/CrashDebug': checked out '599965086437137ec0fe66e185611f43f335f889' Submodule 'CrashCatcher' (https://github.com/ardupilot/CrashCatcher.git) registered for path 'modules/CrashDebug/CrashCatcher' Submodule 'mri' (https://github.com/ardupilot/mri.git) registered for path 'modules/CrashDebug/mri' Cloning into '/home/kalle/ardupilot/modules/CrashDebug/CrashCatcher'... remote: Enumerating objects: 445, done. remote: Counting objects: 100% (22/22), done. remote: Compressing objects: 100% (17/17), done. remote: Total 445 (delta 5), reused 22 (delta 5), pack-reused 423 Receiving objects: 100% (445/445), 120.57 KiB | 3.17 MiB/s, done. Resolving deltas: 100% (227/227), done. Cloning into '/home/kalle/ardupilot/modules/CrashDebug/mri'... remote: Enumerating objects: 2521, done. remote: Counting objects: 100% (388/388), done. remote: Compressing objects: 100% (53/53), done. remote: Total 2521 (delta 348), reused 335 (delta 335), pack-reused 2133 Receiving objects: 100% (2521/2521), 1.22 MiB | 6.21 MiB/s, done. Resolving deltas: 100% (1558/1558), done. Submodule path 'modules/CrashDebug/CrashCatcher': checked out '4cf6e11df3a081b0f573a7834ed8e1e4000af73e' Submodule 'CppUTest' (https://github.com/ardupilot/CppUTest.git) registered for path 'modules/CrashDebug/CrashCatcher/CppUTest' Cloning into '/home/kalle/ardupilot/modules/CrashDebug/CrashCatcher/CppUTest'... remote: Enumerating objects: 357, done. remote: Total 357 (delta 0), reused 0 (delta 0), pack-reused 357 Receiving objects: 100% (357/357), 262.48 KiB | 4.53 MiB/s, done. Resolving deltas: 100% (128/128), done. Submodule path 'modules/CrashDebug/CrashCatcher/CppUTest': checked out '011f371fdb5d7e441fb023be67295783e053df4a' Submodule path 'modules/CrashDebug/mri': checked out 'b35c89451b41a45b7f5b580acaff555315ac88e2' Submodule 'CppUTest' (https://github.com/ardupilot/CppUTest.git) registered for path 'modules/CrashDebug/mri/CppUTest' Cloning into '/home/kalle/ardupilot/modules/CrashDebug/mri/CppUTest'... remote: Enumerating objects: 357, done. remote: Total 357 (delta 0), reused 0 (delta 0), pack-reused 357 Receiving objects: 100% (357/357), 262.48 KiB | 4.30 MiB/s, done. Resolving deltas: 100% (128/128), done. Submodule path 'modules/CrashDebug/mri/CppUTest': checked out '011f371fdb5d7e441fb023be67295783e053df4a' Submodule path 'modules/DroneCAN/DSDL': checked out 'eb370f198f17e561706d6eaddb02cb06d9e91cf6' Submodule path 'modules/DroneCAN/dronecan_dsdlc': checked out '2465ace6c8cb0148e3ff5865aa9e4dd17d691a71' Submodule path 'modules/DroneCAN/libcanard': checked out '0ae477b82bc18daf642383079a02710f69294aa8' Submodule 'drivers/avr/avr-can-lib' (https://github.com/rennerm/avr-can-lib) registered for path 'modules/DroneCAN/libcanard/drivers/avr/avr-can-lib' Cloning into '/home/kalle/ardupilot/modules/DroneCAN/libcanard/drivers/avr/avr-can-lib'... remote: Enumerating objects: 125, done. remote: Total 125 (delta 0), reused 0 (delta 0), pack-reused 125 Receiving objects: 100% (125/125), 95.43 KiB | 2.73 MiB/s, done. Resolving deltas: 100% (69/69), done. Submodule path 'modules/DroneCAN/libcanard/drivers/avr/avr-can-lib': checked out '9c6bc9118de66d6edaf1b8539e2b9717ba26d123' Submodule path 'modules/DroneCAN/pydronecan': checked out '1f494e9a56ac9930f1e11c2f453789414b10d54e' Submodule path 'modules/Micro-CDR': checked out '3d1b17703c7cf4f22def2910bc845bdb5152d7b5' Submodule path 'modules/Micro-XRCE-DDS-Client': checked out '97175304425c5bee87c6fddd99de1ef8d0c394dc' Submodule path 'modules/gbenchmark': checked out 'd572f4777349d43653b21d6c2fc63020ab326db2' Submodule path 'modules/gsoap': checked out 'e1f690585d4803402584962bfaa8240ecaf1db30' Submodule path 'modules/gtest': checked out 'c5fed93f941865a0e912e9baf46ded713506590a' Submodule path 'modules/lwip': checked out '143a6a5cb8023921b5dced55c30551ffb752b640' Submodule path 'modules/mavlink': checked out 'b1fa2e39de949029f367ce9cc7eed5ef851d2167' Submodule 'pymavlink' (https://github.com/ArduPilot/pymavlink.git) registered for path 'modules/mavlink/pymavlink' Cloning into '/home/kalle/ardupilot/modules/mavlink/pymavlink'... remote: Enumerating objects: 17553, done. remote: Counting objects: 100% (2811/2811), done. remote: Compressing objects: 100% (275/275), done. remote: Total 17553 (delta 2626), reused 2541 (delta 2536), pack-reused 14742 Receiving objects: 100% (17553/17553), 8.21 MiB | 6.75 MiB/s, done. Resolving deltas: 100% (12656/12656), done. Submodule path 'modules/mavlink/pymavlink': checked out '58924dcc7f25b6183bbffe9ed282dbba165f54eb' Submodule path 'modules/waf': checked out '1b1625b8e7da6e1307d73335cb995fa8813d5950' kalle@debian:~$ ls ardupilot Documents install-prereqs-ubuntu.sh Pictures Templates Desktop Downloads Music Public Videos kalle@debian:~$ ./install-prereqs-ubuntu.sh ---------- ./install-prereqs-ubuntu.sh start ---------- + '[' 1000 == 0 ']' + OPT=/opt + ARDUPILOT_TOOLS=Tools/autotest + ASSUME_YES=false + QUIET=false + sep='##############################################' + OPTIND=1 + getopts yq opt + APT_GET='sudo apt-get' + false + false + sudo apt-get update [sudo] password for kalle: Hit:1 http://deb.debian.org/debian bookworm InRelease Get:2 http://security.debian.org/debian-security bookworm-security InRelease [47.9 kB] Get:3 http://deb.debian.org/debian bookworm-updates InRelease [55.4 kB] Get:4 http://security.debian.org/debian-security bookworm-security/main Sources [85.7 kB] Get:5 http://security.debian.org/debian-security bookworm-security/main amd64 Packages [147 kB] Get:6 http://security.debian.org/debian-security bookworm-security/main Translation-en [88.4 kB] Fetched 425 kB in 0s (1,389 kB/s) Reading package lists... Done + package_is_installed lsb-release + dpkg-query -W '-f=${Status}' lsb-release + grep -c 'ok installed' 1 ++ lsb_release -c -s + RELEASE_CODENAME=bookworm + case ${RELEASE_CODENAME} in + PYTHON_V=python3 + PIP=pip3 + '[' bookworm == bionic ']' + '[' bookworm == bookworm ']' + SITLFML_VERSION=2.5 + SITLCFML_VERSION=2.5 + PYTHON_V=python3 + PIP=pip3 + ARM_PKG_CONFIG_NOT_PRESENT=0 ++ apt-cache search -n '^pkg-config-arm-linux-gnueabihf' + '[' -z '' ']' ++ dpkg-query --search pkg-config-arm-linux-gnueabihf ++ grep -c dpkg-query: + ARM_PKG_CONFIG_NOT_PRESENT=1 + '[' 1 -eq 1 ']' + INSTALL_PKG_CONFIG= + sudo apt-get install pkg-config Reading package lists... Done Building dependency tree... Done Reading state information... Done pkg-config is already the newest version (1.8.1-1). The following packages were automatically installed and are no longer required: libjim0.81 libmbim-glib4 libmbim-proxy libmbim-utils libqmi-glib5 libqmi-proxy libqmi-utils libqrtr-glib0 usb-modeswitch usb-modeswitch-data Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded. + '[' -f /usr/share/pkg-config-crosswrapper ']' + echo 'Warning: unable to link to pkg-config-crosswrapper' Warning: unable to link to pkg-config-crosswrapper + BASE_PKGS='build-essential ccache g++ gawk git make wget valgrind screen' + PYTHON_PKGS='future lxml pymavlink pyserial MAVProxy pexpect geocoder empy==3.3.4 ptyprocess dronecan' + PYTHON_PKGS='future lxml pymavlink pyserial MAVProxy pexpect geocoder empy==3.3.4 ptyprocess dronecan flake8 junitparser' + [[ '' -ne 1 ]] + PYTHON_PKGS='future lxml pymavlink pyserial MAVProxy pexpect geocoder empy==3.3.4 ptyprocess dronecan flake8 junitparser pygame intelhex' + ARM_LINUX_PKGS='g++-arm-linux-gnueabihf ' + '[' bookworm == bookworm ']' + PYTHON_PKGS+=' numpy pyparsing psutil' + SITL_PKGS=python3-dev + [[ '' -ne 1 ]] + '[' bookworm == bookworm ']' + PYTHON_PKGS+=' matplotlib scipy opencv-python pyyaml' + SITL_PKGS+=' xterm libcsfml-dev libcsfml-audio2.5 libcsfml-dev libcsfml-graphics2.5 libcsfml-network2.5 libcsfml-system2.5 libcsfml-window2.5 libsfml-audio2.5 libsfml-dev libsfml-graphics2.5 libsfml-network2.5 libsfml-system2.5 libsfml-window2.5' + [[ '' -ne 1 ]] + COVERAGE_PKGS='lcov gcovr' + heading 'Add user to dialout group to allow managing serial ports' + echo '##############################################' ############################################## + echo Add user to dialout group to allow managing serial ports Add user to dialout group to allow managing serial ports + echo '##############################################' ############################################## + sudo usermod -a -G dialout kalle + echo 'Done!' Done! + '[' bookworm == focal ']' + '[' bookworm == groovy ']' + '[' bookworm == bullseye ']' + '[' bookworm == jammy ']' + '[' bookworm == bookworm ']' + SITL_PKGS+=' libpython3-stdlib' + [[ '' -ne 1 ]] + '[' bookworm == bullseye ']' + '[' bookworm == buster ']' + '[' bookworm == groovy ']' + '[' bookworm == focal ']' + '[' bookworm == bookworm ']' + SITL_PKGS+=' libgtk-3-dev libwxgtk3.2-dev ' + '[' bookworm == bookworm ']' + PYTHON_PKGS+=' opencv-python' + SITL_PKGS+=' python3-wxgtk4.0' + SITL_PKGS+=' fonts-freefont-ttf libfreetype6-dev libpng16-16 libportmidi-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev libsdl1.2-dev' ++ apt-cache search -n '^realpath$' + RP= + '[' -n '' ']' ++ apt-cache search -n '^libtool-bin' + LBTBIN='libtool-bin - Generic library support script (libtool binary)' + '[' -n 'libtool-bin - Generic library support script (libtool binary)' ']' + SITL_PKGS+=' libtool-bin' + SITL_PKGS+=' ppp' + sudo apt-get install build-essential ccache g++ gawk git make wget valgrind screen python3-dev xterm libcsfml-dev libcsfml-audio2.5 libcsfml-dev libcsfml-graphics2.5 libcsfml-network2.5 libcsfml-system2.5 libcsfml-window2.5 libsfml-audio2.5 libsfml-dev libsfml-graphics2.5 libsfml-network2.5 libsfml-system2.5 libsfml-window2.5 libpython3-stdlib libgtk-3-dev libwxgtk3.2-dev python3-wxgtk4.0 fonts-freefont-ttf libfreetype6-dev libpng16-16 libportmidi-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev libsdl1.2-dev libtool-bin ppp g++-arm-linux-gnueabihf lcov gcovr Reading package lists... Done Building dependency tree... Done Reading state information... Done build-essential is already the newest version (12.9). ccache is already the newest version (4.8+really4.7.5-1). g++ is already the newest version (4:12.2.0-3). gawk is already the newest version (1:5.2.1-2). git is already the newest version (1:2.39.2-1.1). make is already the newest version (4.3-4.1). wget is already the newest version (1.21.3-1+b2). valgrind is already the newest version (1:3.19.0-1). screen is already the newest version (4.9.0-4). python3-dev is already the newest version (3.11.2-1+b1). xterm is already the newest version (379-1). libcsfml-dev is already the newest version (2.5-1.1). libcsfml-audio2.5 is already the newest version (2.5-1.1). libcsfml-graphics2.5 is already the newest version (2.5-1.1). libcsfml-network2.5 is already the newest version (2.5-1.1). libcsfml-system2.5 is already the newest version (2.5-1.1). libcsfml-window2.5 is already the newest version (2.5-1.1). libsfml-audio2.5 is already the newest version (2.5.1+dfsg-2+b2). libsfml-dev is already the newest version (2.5.1+dfsg-2+b2). libsfml-graphics2.5 is already the newest version (2.5.1+dfsg-2+b2). libsfml-network2.5 is already the newest version (2.5.1+dfsg-2+b2). libsfml-system2.5 is already the newest version (2.5.1+dfsg-2+b2). libsfml-window2.5 is already the newest version (2.5.1+dfsg-2+b2). libpython3-stdlib is already the newest version (3.11.2-1+b1). libgtk-3-dev is already the newest version (3.24.38-2~deb12u1). libwxgtk3.2-dev is already the newest version (3.2.2+dfsg-2). python3-wxgtk4.0 is already the newest version (4.2.0+dfsg-3). fonts-freefont-ttf is already the newest version (20120503-10). libfreetype6-dev is already the newest version (2.12.1+dfsg-5). libpng16-16 is already the newest version (1.6.39-2). libportmidi-dev is already the newest version (1:217-6.1). libsdl-image1.2-dev is already the newest version (1.2.12-13+b2). libsdl-mixer1.2-dev is already the newest version (1.2.12-17+b3). libsdl-ttf2.0-dev is already the newest version (2.0.11-6). libsdl1.2-dev is already the newest version (1.2.15+dfsg2-8). libtool-bin is already the newest version (2.4.7-5). ppp is already the newest version (2.4.9-1+1.1+b1). g++-arm-linux-gnueabihf is already the newest version (4:12.2.0-3). lcov is already the newest version (1.16-1). gcovr is already the newest version (5.2-1). The following packages were automatically installed and are no longer required: libjim0.81 libmbim-glib4 libmbim-proxy libmbim-utils libqmi-glib5 libqmi-proxy libqmi-utils libqrtr-glib0 usb-modeswitch usb-modeswitch-data Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded. + heading 'Check if we are inside docker environment...' + echo '##############################################' ############################################## + echo Check if we are inside docker environment... Check if we are inside docker environment... + echo '##############################################' ############################################## + IS_DOCKER=false + [[ -f /.dockerenv ]] + grep -Eq '(lxc|docker)' /proc/1/cgroup + echo 'Done!' Done! + SHELL_LOGIN=.profile + false + PIP_USER_ARGUMENT=--user + '[' bookworm == bookworm ']' + sudo apt-get install python3.11-venv Reading package lists... Done Building dependency tree... Done Reading state information... Done python3.11-venv is already the newest version (3.11.2-6). The following packages were automatically installed and are no longer required: libjim0.81 libmbim-glib4 libmbim-proxy libmbim-utils libqmi-glib5 libqmi-proxy libqmi-utils libqrtr-glib0 usb-modeswitch usb-modeswitch-data Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded. + python3 -m venv /home/kalle/venv-ardupilot + SOURCE_LINE='source /home/kalle/venv-ardupilot/bin/activate' + source /home/kalle/venv-ardupilot/bin/activate ++ deactivate nondestructive ++ '[' -n '' ']' ++ '[' -n '' ']' ++ '[' -n /usr/bin/bash -o -n '' ']' ++ hash -r ++ '[' -n '' ']' ++ unset VIRTUAL_ENV ++ unset VIRTUAL_ENV_PROMPT ++ '[' '!' nondestructive = nondestructive ']' ++ VIRTUAL_ENV=/home/kalle/venv-ardupilot ++ export VIRTUAL_ENV ++ _OLD_VIRTUAL_PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games ++ PATH=/home/kalle/venv-ardupilot/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games ++ export PATH ++ '[' -n '' ']' ++ '[' -z '' ']' ++ _OLD_VIRTUAL_PS1= ++ PS1='(venv-ardupilot) ' ++ export PS1 ++ VIRTUAL_ENV_PROMPT='(venv-ardupilot) ' ++ export VIRTUAL_ENV_PROMPT ++ '[' -n /usr/bin/bash -o -n '' ']' ++ hash -r + PIP_USER_ARGUMENT= + [[ -z '' ]] + maybe_prompt_user 'Make ArduPilot venv default for python [N/y]?' + false + read -p 'Make ArduPilot venv default for python [N/y]?' Make ArduPilot venv default for python [N/y]? + [[ '' =~ ^[Yy]$ ]] + return 1 + [[ '' -eq 1 ]] + pip3 install -U pip setuptools wheel Requirement already satisfied: pip in ./venv-ardupilot/lib/python3.11/site-packages (23.0.1) Collecting pip Using cached pip-24.0-py3-none-any.whl (2.1 MB) Requirement already satisfied: setuptools in ./venv-ardupilot/lib/python3.11/site-packages (66.1.1) Collecting setuptools Downloading setuptools-69.2.0-py3-none-any.whl (821 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 821.5/821.5 kB 6.8 MB/s eta 0:00:00 Collecting wheel Using cached wheel-0.43.0-py3-none-any.whl (65 kB) Installing collected packages: wheel, setuptools, pip Attempting uninstall: setuptools Found existing installation: setuptools 66.1.1 Uninstalling setuptools-66.1.1: Successfully uninstalled setuptools-66.1.1 Attempting uninstall: pip Found existing installation: pip 23.0.1 Uninstalling pip-23.0.1: Successfully uninstalled pip-23.0.1 Successfully installed pip-24.0 setuptools-69.2.0 wheel-0.43.0 + '[' '' == true ']' + '[' bookworm == bookworm ']' + pip3 install -U attrdict3 Collecting attrdict3 Using cached attrdict3-2.0.2-py2.py3-none-any.whl.metadata (6.7 kB) Collecting six (from attrdict3) Using cached six-1.16.0-py2.py3-none-any.whl.metadata (1.8 kB) Using cached attrdict3-2.0.2-py2.py3-none-any.whl (10 kB) Using cached six-1.16.0-py2.py3-none-any.whl (11 kB) Installing collected packages: six, attrdict3 Successfully installed attrdict3-2.0.2 six-1.16.0 + pip3 install -U future lxml pymavlink pyserial MAVProxy pexpect geocoder empy==3.3.4 ptyprocess dronecan flake8 junitparser pygame intelhex numpy pyparsing psutil matplotlib scipy opencv-python pyyaml opencv-python Collecting future Using cached future-1.0.0-py3-none-any.whl.metadata (4.0 kB) Collecting lxml Using cached lxml-5.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (3.5 kB) Collecting pymavlink Using cached pymavlink-2.4.41-py3-none-any.whl.metadata (6.2 kB) Collecting pyserial Using cached pyserial-3.5-py2.py3-none-any.whl.metadata (1.6 kB) Collecting MAVProxy Using cached MAVProxy-1.8.70-py3-none-any.whl.metadata (1.5 kB) Collecting pexpect Using cached pexpect-4.9.0-py2.py3-none-any.whl.metadata (2.5 kB) Collecting geocoder Using cached geocoder-1.38.1-py2.py3-none-any.whl.metadata (14 kB) Collecting empy==3.3.4 Using cached empy-3.3.4-py3-none-any.whl Collecting ptyprocess Using cached ptyprocess-0.7.0-py2.py3-none-any.whl.metadata (1.3 kB) Collecting dronecan Downloading dronecan-1.0.26-py3-none-any.whl.metadata (1.9 kB) Collecting flake8 Using cached flake8-7.0.0-py2.py3-none-any.whl.metadata (3.8 kB) Collecting junitparser Using cached junitparser-3.1.2-py2.py3-none-any.whl.metadata (9.0 kB) Collecting pygame Using cached pygame-2.5.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (13 kB) Collecting intelhex Using cached intelhex-2.3.0-py2.py3-none-any.whl.metadata (2.7 kB) Collecting numpy Using cached numpy-1.26.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (61 kB) Collecting pyparsing Using cached pyparsing-3.1.2-py3-none-any.whl.metadata (5.1 kB) Collecting psutil Using cached psutil-5.9.8-cp36-abi3-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (21 kB) Collecting matplotlib Using cached matplotlib-3.8.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (5.8 kB) Collecting scipy Using cached scipy-1.12.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (60 kB) Collecting opencv-python Using cached opencv_python-4.9.0.80-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (20 kB) Collecting pyyaml Using cached PyYAML-6.0.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (2.1 kB) Collecting click (from geocoder) Using cached click-8.1.7-py3-none-any.whl.metadata (3.0 kB) Collecting ratelim (from geocoder) Using cached ratelim-0.1.6-py2.py3-none-any.whl.metadata (1.4 kB) Collecting requests (from geocoder) Using cached requests-2.31.0-py3-none-any.whl.metadata (4.6 kB) Requirement already satisfied: six in ./venv-ardupilot/lib/python3.11/site-packages (from geocoder) (1.16.0) Collecting mccabe<0.8.0,>=0.7.0 (from flake8) Using cached mccabe-0.7.0-py2.py3-none-any.whl.metadata (5.0 kB) Collecting pycodestyle<2.12.0,>=2.11.0 (from flake8) Using cached pycodestyle-2.11.1-py2.py3-none-any.whl.metadata (4.5 kB) Collecting pyflakes<3.3.0,>=3.2.0 (from flake8) Using cached pyflakes-3.2.0-py2.py3-none-any.whl.metadata (3.5 kB) Collecting contourpy>=1.0.1 (from matplotlib) Using cached contourpy-1.2.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (5.8 kB) Collecting cycler>=0.10 (from matplotlib) Using cached cycler-0.12.1-py3-none-any.whl.metadata (3.8 kB) Collecting fonttools>=4.22.0 (from matplotlib) Downloading fonttools-4.50.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (159 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 159.4/159.4 kB 5.1 MB/s eta 0:00:00 Collecting kiwisolver>=1.3.1 (from matplotlib) Using cached kiwisolver-1.4.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (6.4 kB) Collecting packaging>=20.0 (from matplotlib) Using cached packaging-24.0-py3-none-any.whl.metadata (3.2 kB) Collecting pillow>=8 (from matplotlib) Using cached pillow-10.2.0-cp311-cp311-manylinux_2_28_x86_64.whl.metadata (9.7 kB) Collecting python-dateutil>=2.7 (from matplotlib) Using cached python_dateutil-2.9.0.post0-py2.py3-none-any.whl.metadata (8.4 kB) Collecting decorator (from ratelim->geocoder) Using cached decorator-5.1.1-py3-none-any.whl.metadata (4.0 kB) Collecting charset-normalizer<4,>=2 (from requests->geocoder) Using cached charset_normalizer-3.3.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (33 kB) Collecting idna<4,>=2.5 (from requests->geocoder) Using cached idna-3.6-py3-none-any.whl.metadata (9.9 kB) Collecting urllib3<3,>=1.21.1 (from requests->geocoder) Using cached urllib3-2.2.1-py3-none-any.whl.metadata (6.4 kB) Collecting certifi>=2017.4.17 (from requests->geocoder) Using cached certifi-2024.2.2-py3-none-any.whl.metadata (2.2 kB) Using cached future-1.0.0-py3-none-any.whl (491 kB) Using cached lxml-5.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (8.1 MB) Using cached pymavlink-2.4.41-py3-none-any.whl (11.6 MB) Using cached pyserial-3.5-py2.py3-none-any.whl (90 kB) Using cached MAVProxy-1.8.70-py3-none-any.whl (7.2 MB) Using cached pexpect-4.9.0-py2.py3-none-any.whl (63 kB) Using cached geocoder-1.38.1-py2.py3-none-any.whl (98 kB) Using cached ptyprocess-0.7.0-py2.py3-none-any.whl (13 kB) Downloading dronecan-1.0.26-py3-none-any.whl (159 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 159.5/159.5 kB 6.2 MB/s eta 0:00:00 Using cached flake8-7.0.0-py2.py3-none-any.whl (57 kB) Using cached junitparser-3.1.2-py2.py3-none-any.whl (13 kB) Using cached pygame-2.5.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (14.0 MB) Using cached intelhex-2.3.0-py2.py3-none-any.whl (50 kB) Using cached numpy-1.26.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (18.3 MB) Using cached pyparsing-3.1.2-py3-none-any.whl (103 kB) Using cached psutil-5.9.8-cp36-abi3-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (288 kB) Using cached matplotlib-3.8.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (11.6 MB) Using cached scipy-1.12.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (38.4 MB) Using cached opencv_python-4.9.0.80-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (62.2 MB) Using cached PyYAML-6.0.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (757 kB) Using cached contourpy-1.2.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (313 kB) Using cached cycler-0.12.1-py3-none-any.whl (8.3 kB) Downloading fonttools-4.50.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.9 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.9/4.9 MB 6.9 MB/s eta 0:00:00 Using cached kiwisolver-1.4.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.4 MB) Using cached mccabe-0.7.0-py2.py3-none-any.whl (7.3 kB) Using cached packaging-24.0-py3-none-any.whl (53 kB) Using cached pillow-10.2.0-cp311-cp311-manylinux_2_28_x86_64.whl (4.5 MB) Using cached pycodestyle-2.11.1-py2.py3-none-any.whl (31 kB) Using cached pyflakes-3.2.0-py2.py3-none-any.whl (62 kB) Using cached python_dateutil-2.9.0.post0-py2.py3-none-any.whl (229 kB) Using cached click-8.1.7-py3-none-any.whl (97 kB) Using cached ratelim-0.1.6-py2.py3-none-any.whl (4.0 kB) Using cached requests-2.31.0-py3-none-any.whl (62 kB) Using cached certifi-2024.2.2-py3-none-any.whl (163 kB) Using cached charset_normalizer-3.3.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (140 kB) Using cached idna-3.6-py3-none-any.whl (61 kB) Using cached urllib3-2.2.1-py3-none-any.whl (121 kB) Using cached decorator-5.1.1-py3-none-any.whl (9.1 kB) Installing collected packages: pyserial, ptyprocess, junitparser, intelhex, empy, dronecan, urllib3, pyyaml, python-dateutil, pyparsing, pygame, pyflakes, pycodestyle, psutil, pillow, pexpect, packaging, numpy, mccabe, lxml, kiwisolver, idna, future, fonttools, decorator, cycler, click, charset-normalizer, certifi, scipy, requests, ratelim, pymavlink, opencv-python, flake8, contourpy, MAVProxy, matplotlib, geocoder Successfully installed MAVProxy-1.8.70 certifi-2024.2.2 charset-normalizer-3.3.2 click-8.1.7 contourpy-1.2.0 cycler-0.12.1 decorator-5.1.1 dronecan-1.0.26 empy-3.3.4 flake8-7.0.0 fonttools-4.50.0 future-1.0.0 geocoder-1.38.1 idna-3.6 intelhex-2.3.0 junitparser-3.1.2 kiwisolver-1.4.5 lxml-5.1.0 matplotlib-3.8.3 mccabe-0.7.0 numpy-1.26.4 opencv-python-4.9.0.80 packaging-24.0 pexpect-4.9.0 pillow-10.2.0 psutil-5.9.8 ptyprocess-0.7.0 pycodestyle-2.11.1 pyflakes-3.2.0 pygame-2.5.2 pymavlink-2.4.41 pyparsing-3.1.2 pyserial-3.5 python-dateutil-2.9.0.post0 pyyaml-6.0.1 ratelim-0.1.6 requests-2.31.0 scipy-1.12.0 urllib3-2.2.1 + [[ -z '' ]] + maybe_prompt_user 'Install ArduPilot STM32 toolchain [N/y]?' + false + read -p 'Install ArduPilot STM32 toolchain [N/y]?' Install ArduPilot STM32 toolchain [N/y]? + [[ '' =~ ^[Yy]$ ]] + return 1 + heading 'Removing modemmanager and brltty package that could conflict with firmware uploading' + echo '##############################################' ############################################## + echo Removing modemmanager and brltty package that could conflict with firmware uploading Removing modemmanager and brltty package that could conflict with firmware uploading + echo '##############################################' ############################################## + package_is_installed modemmanager + dpkg-query -W '-f=${Status}' modemmanager + grep -c 'ok installed' 0 + package_is_installed brltty + dpkg-query -W '-f=${Status}' brltty + grep -c 'ok installed' 0 + echo 'Done!' Done! ++ which ccache + CCACHE_PATH=/usr/bin/ccache + [[ '' -eq 1 ]] + heading 'Adding ArduPilot Tools to environment' + echo '##############################################' ############################################## + echo Adding ArduPilot Tools to environment Adding ArduPilot Tools to environment + echo '##############################################' ############################################## +++ realpath ./install-prereqs-ubuntu.sh ++ dirname /home/kalle/install-prereqs-ubuntu.sh + SCRIPT_DIR=/home/kalle ++ realpath /home/kalle/../../ + ARDUPILOT_ROOT=/ + [[ '' -eq 1 ]] + exportline2='export PATH=//Tools/autotest:$PATH' + grep -Fxq 'export PATH=//Tools/autotest:$PATH' /home/kalle/.profile + maybe_prompt_user 'Add //Tools/autotest to your PATH [N/y]?' + false + read -p 'Add //Tools/autotest to your PATH [N/y]?' Add //Tools/autotest to your PATH [N/y]? + [[ '' =~ ^[Yy]$ ]] + return 1 + echo 'Skipping adding //Tools/autotest to PATH.' Skipping adding //Tools/autotest to PATH. + [[ '' -ne 1 ]] + exportline3='source //Tools/completion/completion.bash' + grep -Fxq 'source //Tools/completion/completion.bash' /home/kalle/.profile + maybe_prompt_user 'Add ArduPilot Bash Completion to your bash shell [N/y]?' + false + read -p 'Add ArduPilot Bash Completion to your bash shell [N/y]?' Add ArduPilot Bash Completion to your bash shell [N/y]? + [[ '' =~ ^[Yy]$ ]] + return 1 + echo 'Skipping adding ArduPilot Bash Completion.' Skipping adding ArduPilot Bash Completion. + exportline4='export PATH=/usr/lib/ccache:$PATH' + grep -Fxq 'export PATH=/usr/lib/ccache:$PATH' /home/kalle/.profile + maybe_prompt_user 'Append CCache to your PATH [N/y]?' + false + read -p 'Append CCache to your PATH [N/y]?' Append CCache to your PATH [N/y]? + [[ '' =~ ^[Yy]$ ]] + return 1 + echo 'Skipping appending CCache to PATH.' Skipping appending CCache to PATH. + echo 'Done!' Done! + [[ '' -ne 1 ]] + '[' -d .git ']' + false + echo '---------- ./install-prereqs-ubuntu.sh end ----------' ---------- ./install-prereqs-ubuntu.sh end ---------- kalle@debian:~$ cd ardupilot kalle@debian:~/ardupilot$ ./waf configure --board revo-mini Setting top to : /home/kalle/ardupilot Setting out to : /home/kalle/ardupilot/build Autoconfiguration : enabled Checking for program 'python' : /usr/bin/python3 Checking for python version >= 3.6.9 : 3.11.2 Setting board to : revo-mini Using toolchain : arm-none-eabi Could not find the program ['arm-none-eabi-ar'] (complete log in /home/kalle/ardupilot/build/config.log) kalle@debian:~/ardupilot$