Problem with build/compile instructions (in Ubuntu)

@dipspb , read carefully ! http://ardupilot.org/dev/docs/building-px4-for-linux-with-make.html#setup !!
You miss an important step that install everything on your computer for compiling ! ( Tools/scripts/install-prereqs-ubuntu.sh -y)

For information, waf install nothing. Doing waf configure only check if all dependencies are present and prepare the build.
On your try, you try to build for px4-v2 that use arm-none-eabi GCC compiler.
You can see that your first error is Checking for program ‘arm-none-eabi-ar’ : not found
Could not find the program [‘arm-none-eabi-ar’] . So you are missing the compiler ! (and probably many other dependencies !)

Give another try by reading carefully step by step and you can get rid of vagrant ^^

@dipspb ok I will try this , but does it first require a computer that is capable to run VirtualBox and Vagrant ?

Thank you for your point, but…

Isn’t it a confusing that toolchain installation step is described on a page “Building ArduPilot for Pixhawk/PX4 on Linux with Make what is recommended to don’t follow for 3.4 on page “Building the code” ?!

Code building has changed for newer releases to use waf build tools, replacing make

I can see it reported a lack of arm GCC compiler, it was exactly my point.

Vagrant is used to run SITL and it is good tool to use it for build on any compatible platform. It makes it possible to don’t install bunch of tools and libraries on your OS just to build the image. Moreover it avoids potential conflicts among installed tools/libraries versions at the moment you will need to install more recent versions as soon as new ardupilot release will be available. I definitely sure, Vagrant worth to be considered as a good, not an evil.

Instructions I provided you so far not require to use Vagrant and VirtualBox. Just try them as it is.

@dipspb - I think you’re confused about the terminology around toolchain, dependencies and make. The line that you quote has to be taken in context, the next line says:

In most cases the build dependecies described for make are the same, the only part of the instructions changes is the issue of the waf build commmand.

waf isn’t some magical command that sprinkles fairy dust and does everything for you, it’s just a replacement for make. You cannot compile something without a compiler toolchain, which involves installing dependencies. So the instructions remain the same, except that you replace the make command with the waf commands.

Questions and process like this is really useful for the community as it gives everyone a chance to clarify and improve the build or documentation if it needs it.

@dipspb - I would recommend that you follow the official docs and post any problems you have, and we’ll do our best to help you. They should work, and they are straight forward.

Thank you for pointing it. This story is not about me. I able to compile all needed tools from sources w/o any package manager used, no problem. I just described how it may looks like for inexperienced user like @maxmay. I believe it’s not a big problem to refer to mentioned Tools/scripts/install-prereqs-ubuntu.sh script on waf page.

Just attempted to follow in exact way all steps using waf and prerequisites as they documented. Still have no success:

dipspb@ubt1404srv512:~$ sudo apt-get update ; sudo apt-get install -y git
.
.
.
dipspb@ubt1404srv512:~$ git clone https://github.com/ArduPilot/ardupilot.git
.
.
.
dipspb@ubt1404srv512:~$ cd ardupilot/
dipspb@ubt1404srv512:~/ardupilot$ git checkout Copter-3.4
Branch Copter-3.4 set up to track remote branch Copter-3.4 from origin.
Switched to a new branch 'Copter-3.4'
dipspb@ubt1404srv512:~/ardupilot$ Tools/scripts/install-prereqs-ubuntu.sh -y
.
.
.
dipspb@ubt1404srv512:~/ardupilot$ . ~/.profile
dipspb@ubt1404srv512:~/ardupilot$ ./waf configure --board px4-v2
Setting top to                           : /home/dipspb/ardupilot 
Setting out to                           : /home/dipspb/ardupilot/build 
Autoconfiguration                        : enabled 
Setting board to                         : px4-v2 
Checking for program 'arm-none-eabi-ar'  : /opt/gcc-arm-none-eabi-4_9-2015q3/bin/arm-none-eabi-ar 
Using toolchain                          : arm-none-eabi 
Checking for 'g++' (C++ compiler)        : /opt/gcc-arm-none-eabi-4_9-2015q3/bin/arm-none-eabi-g++ 
Checking for 'gcc' (C compiler)          : /opt/gcc-arm-none-eabi-4_9-2015q3/bin/arm-none-eabi-gcc 
Checking for HAVE_CMATH_ISFINITE         : no 
Checking for HAVE_CMATH_ISINF            : no 
Checking for HAVE_CMATH_ISNAN            : no 
Checking for NEED_CMATH_ISFINITE_STD_NAMESPACE : no 
Checking for NEED_CMATH_ISINF_STD_NAMESPACE    : no 
Checking for NEED_CMATH_ISNAN_STD_NAMESPACE    : no 
Checking for header endian.h                   : not found 
Checking for header byteswap.h                 : not found 
Checking for program 'cmake'                   : not found 
Could not find the program ['cmake']
(complete log in /home/dipspb/ardupilot/build/config.log)
dipspb@ubt1404srv512:~/ardupilot$ ./waf copter
The project was not configured: run "waf configure" first!
dipspb@ubt1404srv512:~/ardupilot$ 

It would be nice to know what exactly I missed and where missed step is documented.

cmake install is missing from the install-prereqs-ubuntu.sh script. I note that the compiler is a slightly different version from that documented, so it’s probably worth opening a github issue and getting the docs/script updated. Here’s the commands that work on a fresh ubuntu VM for me:

sudo apt-get -qq -y install git
git clone https://github.com/ArduPilot/ardupilot.git
cd ardupilot
git submodule init
git submodule update
Tools/scripts/install-prereqs-ubuntu.sh -y
sudo apt-get install cmake
. ~/.profile
./waf configure --board px4-v2
./waf copter

This is exactly as documented, except for the missing cmake dependency.

Thank you, I know. But one more time, it’s not about me… Of course I will submit the issue.

Are still sure instructions are ok?

@maxmay I believe you need to follow recent instructions provided by @fnoop as a most correct approach for this moment.

@dipspb - if you have some ideas to improve the build system, make it more generic or easier for beginners etc, why don’t you chat with the developers on gitter or post in the Development forum? I’ve only had a couple of small interactions with the devs but they’re super nice and friendly, and really keen to help new people who want to get involved. They answered my basic and stupid questions and helped me out to submit a small 3 line patch when it would have been much quicker to do it themselves.

@dipspb @fnoop thank you both for the help identifying the issue. Both provided valuable feedback. I just submitted a PR to add the missing dependency: https://github.com/ArduPilot/ardupilot/pull/5106. This will be backported to 3.4.1.

In future we will need to streamline our scripts to install dependencies so this kind of issue doesn’t happen anymore.

@maxmay I hope the instructions they provided are enough.

@dipspb @fnoop @lucasdemarchi …I will try the last fnoop instructions, and give results here, and if it works I will contribute $ to ardupilot.org as promised.

I just tested on an empty Ubuntu 14.04 container and it worked fine building with waf.

@dipspb @fnoop @lucasdemarchi S**T! I am the only one it does not work. let me increase my donations to ardupilot. my vitual 32 bit machine AND virtual 64 bit machine give me same result, ie. 2 tries :
Here is the entire puTTY SSH in/out from scratch, at the end you read
"sudo: add-apt-repository: command not found" :

in/out:
using username “root”.
Welcome to Ubuntu 14.04 LTS (GNU/Linux 3.13.0-24-generic i686)

  • Documentation: https://help.ubuntu.com/
    New release ‘16.04.1 LTS’ available.
    Run ‘do-release-upgrade’ to upgrade to it.

root@bchost:~# sudo apt-get -qq -y install git
Selecting previously unselected package liberror-perl.
(Reading database … 54505 files and directories currently installed.)
Preparing to unpack …/liberror-perl_0.17-1.1_all.deb …
Unpacking liberror-perl (0.17-1.1) …
Selecting previously unselected package git-man.
Preparing to unpack …/git-man_1%3a1.9.1-1_all.deb …
Unpacking git-man (1:1.9.1-1) …
Selecting previously unselected package git.
Preparing to unpack …/git_1%3a1.9.1-1_i386.deb …
Unpacking git (1:1.9.1-1) …
Selecting previously unselected package patch.
Preparing to unpack …/patch_2.7.1-4_i386.deb …
Unpacking patch (2.7.1-4) …
Processing triggers for man-db (2.6.7.1-1) …
Setting up liberror-perl (0.17-1.1) …
Setting up git-man (1:1.9.1-1) …
Setting up git (1:1.9.1-1) …
Setting up patch (2.7.1-4) …
root@bchost:~# git clone https://github.com/ArduPilot/ardupilot.git
Cloning into ‘ardupilot’…
remote: Counting objects: 169950, done.
remote: Total 169950 (delta 0), reused 0 (delta 0), pack-reused 169949
Receiving objects: 100% (169950/169950), 76.06 MiB | 5.70 MiB/s, done.
Resolving deltas: 100% (123492/123492), done.
Checking connectivity… done.
root@bchost:~# cd ardupilot
root@bchost:~/ardupilot# git submodule init
Submodule ‘modules/PX4Firmware’ (git://github.com/ArduPilot/PX4Firmware.git) registered for path 'modules/PX4Firmware’
Submodule ‘modules/PX4NuttX’ (git://github.com/ArduPilot/PX4NuttX.git) registered for path 'modules/PX4NuttX’
Submodule ‘modules/gbenchmark’ (git://github.com/google/benchmark.git) registered for path 'modules/gbenchmark’
Submodule ‘gtest’ (git://github.com/ArduPilot/googletest) registered for path 'modules/gtest’
Submodule ‘modules/mavlink’ (git://github.com/ArduPilot/mavlink) registered for path 'modules/mavlink’
Submodule ‘modules/uavcan’ (git://github.com/ArduPilot/uavcan.git) registered for path 'modules/uavcan’
Submodule ‘modules/waf’ (git://github.com/ArduPilot/waf.git) registered for path 'modules/waf’
root@bchost:~/ardupilot# git submodule update
Cloning into ‘modules/PX4Firmware’…
remote: Counting objects: 172924, done.
remote: Total 172924 (delta 0), reused 0 (delta 0), pack-reused 172924
Receiving objects: 100% (172924/172924), 73.52 MiB | 7.84 MiB/s, done.
Resolving deltas: 100% (128517/128517), done.
Checking connectivity… done.
Submodule path ‘modules/PX4Firmware’: checked out '3e947ccf02c66b77f6d1c7e22dafb72d448c62fa’
Cloning into ‘modules/PX4NuttX’…
remote: Counting objects: 125703, done.
remote: Total 125703 (delta 0), reused 0 (delta 0), pack-reused 125702
Receiving objects: 100% (125703/125703), 31.42 MiB | 5.28 MiB/s, done.
Resolving deltas: 100% (102467/102467), done.
Checking connectivity… done.
Submodule path ‘modules/PX4NuttX’: checked out '8c9659921c0d42a0e909a5ecdba93e9d9a4b0a7e’
Cloning into ‘modules/gbenchmark’…
remote: Counting objects: 3135, done.
remote: Total 3135 (delta 0), reused 0 (delta 0), pack-reused 3135
Receiving objects: 100% (3135/3135), 790.18 KiB | 0 bytes/s, done.
Resolving deltas: 100% (2035/2035), done.
Checking connectivity… done.
Submodule path ‘modules/gbenchmark’: checked out '006d23ccca1375a973b7fae0cc351cedb41b812a’
Cloning into ‘modules/gtest’…
remote: Counting objects: 7141, done.
remote: Total 7141 (delta 0), reused 0 (delta 0), pack-reused 7141
Receiving objects: 100% (7141/7141), 2.41 MiB | 1.41 MiB/s, done.
Resolving deltas: 100% (5327/5327), done.
Checking connectivity… done.
Submodule path ‘modules/gtest’: checked out 'c99458533a9b4c743ed51537e25989ea55944908’
Cloning into ‘modules/mavlink’…
remote: Counting objects: 14249, done.
remote: Compressing objects: 100% (15/15), done.
remote: Total 14249 (delta 7), reused 0 (delta 0), pack-reused 14234
Receiving objects: 100% (14249/14249), 5.80 MiB | 4.49 MiB/s, done.
Resolving deltas: 100% (9498/9498), done.
Checking connectivity… done.
Submodule path ‘modules/mavlink’: checked out 'd1923992b27c55ff7e8a068fbd7f71d4d1794546’
Cloning into ‘modules/uavcan’…
remote: Counting objects: 16659, done.
remote: Total 16659 (delta 0), reused 0 (delta 0), pack-reused 16659
Receiving objects: 100% (16659/16659), 2.69 MiB | 1.67 MiB/s, done.
Resolving deltas: 100% (11241/11241), done.
Checking connectivity… done.
Submodule path ‘modules/uavcan’: checked out '71cf39c8c6c3c2709bc1a32ffd947add22b1a836’
Cloning into ‘modules/waf’…
remote: Counting objects: 13093, done.
remote: Total 13093 (delta 0), reused 0 (delta 0), pack-reused 13093
Receiving objects: 100% (13093/13093), 3.74 MiB | 2.62 MiB/s, done.
Resolving deltas: 100% (9130/9130), done.
Checking connectivity… done.
Submodule path ‘modules/waf’: checked out '73163ef5c117a51f29546d17c2bb2041aecefcdd’
root@bchost:~/ardupilot# Tools/scripts/install-prereqs-ubuntu.sh -y
sudo: add-apt-repository: command not found
root@bchost:~/ardupilot# ^C
root@bchost:~/ardupilot# :frowning:

ok, I missed to tell you 2 steps:

sudo apt-get install software-properties-common

to install the missing command. And

add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) main universe restricted multiverse"

to enable all repositories. I think those come pre-installed on the Desktop version, that’s why people don’t notice them. I’m not an Ubuntu user… I just created a container in my distro in order to reproduce your issue and thought I needed these other 2 commands because of the way I setup the container, sorry.

Could we have all steps together documented on a waf page? Sort of TLDR chapter.
It’s pretty hard to agree that instructions are straightforward because each new attempt leads to discovering more missed steps.

@dipspb wait an hour I am making the final test, with a final instruction list

the build instructions are one thing. Setting up the distro is another thing. The right place would be in the wiki, to replace the old instructions. I’d love for someone to step up and solve this issue: https://github.com/ArduPilot/ardupilot_wiki/issues/565

SSH transcript says Checking for program ‘arm-none-eabi-ar’ : not found
Could not find the program [‘arm-none-eabi-ar’]

SSH transcript:

Using username “root”.
Welcome to Ubuntu 14.04 LTS (GNU/Linux 3.13.0-24-generic i686)

  • Documentation: https://help.ubuntu.com/
    New release ‘16.04.1 LTS’ available.
    Run ‘do-release-upgrade’ to upgrade to it.

root@bchost:~# sudo apt-get install software-properties-common
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following extra packages will be installed:
python3-pycurl python3-software-properties unattended-upgrades
Suggested packages:
libcurl4-gnutls-dev python3-pycurl-dbg bsd-mailx mail-transport-agent
The following NEW packages will be installed:
python3-pycurl python3-software-properties software-properties-common
unattended-upgrades
0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 101 kB of archives.
After this operation, 794 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://us.archive.ubuntu.com/ubuntu/ trusty/main python3-pycurl i386 7.19.3-0ubuntu3 [46.3 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu/ trusty/main unattended-upgrades all 0.82.1ubuntu2 [25.5 kB]
Err http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main python3-software-properties all 0.92.37
404 Not Found [IP: 91.189.91.26 80]
Err http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main software-properties-common all 0.92.37
404 Not Found [IP: 91.189.91.26 80]
Fetched 71.8 kB in 0s (118 kB/s)
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/s/software-properties/python3-software-properties_0.92.37_all.deb 404 Not Found [IP: 91.189.91.26 80]

E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/s/software-properties/software-properties-common_0.92.37_all.deb 404 Not Found [IP: 91.189.91.26 80]

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
root@bchost:~# sudo apt-get install software-properties-common
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following extra packages will be installed:
python3-pycurl python3-software-properties unattended-upgrades
Suggested packages:
libcurl4-gnutls-dev python3-pycurl-dbg bsd-mailx mail-transport-agent
The following NEW packages will be installed:
python3-pycurl python3-software-properties software-properties-common
unattended-upgrades
0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 28.8 kB/101 kB of archives.
After this operation, 794 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Err http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main python3-software-properties all 0.92.37
404 Not Found [IP: 91.189.91.26 80]
Err http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main software-properties-common all 0.92.37
404 Not Found [IP: 91.189.91.26 80]
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/s/software-properties/python3-software-properties_0.92.37_all.deb 404 Not Found [IP: 91.189.91.26 80]

E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/s/software-properties/software-properties-common_0.92.37_all.deb 404 Not Found [IP: 91.189.91.26 80]

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
root@bchost:~# sudo apt-get update
Get:1 http://security.ubuntu.com trusty-security InRelease [65.9 kB]
Ign http://us.archive.ubuntu.com trusty InRelease
Get:2 http://us.archive.ubuntu.com trusty-updates InRelease [65.9 kB]
Get:3 http://security.ubuntu.com trusty-security/main Sources [120 kB]
Get:4 http://us.archive.ubuntu.com trusty-backports InRelease [65.9 kB]
Get:5 http://us.archive.ubuntu.com trusty Release.gpg [933 B]
Get:6 http://security.ubuntu.com trusty-security/restricted Sources [4,064 B]
Get:7 http://us.archive.ubuntu.com trusty-updates/main Sources [384 kB]
Get:8 http://security.ubuntu.com trusty-security/universe Sources [44.7 kB]
Get:9 http://security.ubuntu.com trusty-security/multiverse Sources [3,202 B]
Get:10 http://security.ubuntu.com trusty-security/main i386 Packages [503 kB]
Get:11 http://us.archive.ubuntu.com trusty-updates/restricted Sources [5,360 B]
Get:12 http://security.ubuntu.com trusty-security/restricted i386 Packages [12.7 kB]
Get:13 http://us.archive.ubuntu.com trusty-updates/universe Sources [169 kB]
Get:14 http://security.ubuntu.com trusty-security/universe i386 Packages [141 kB]
Get:15 http://us.archive.ubuntu.com trusty-updates/multiverse Sources [7,531 B]
Get:16 http://security.ubuntu.com trusty-security/multiverse i386 Packages [5,360 B]
Get:17 http://us.archive.ubuntu.com trusty-updates/main i386 Packages [872 kB]
Get:18 http://security.ubuntu.com trusty-security/main Translation-en [298 kB]
Get:19 http://security.ubuntu.com trusty-security/multiverse Translation-en [2,848 B]
Get:20 http://us.archive.ubuntu.com trusty-updates/restricted i386 Packages [15.6 kB]
Get:21 http://security.ubuntu.com trusty-security/restricted Translation-en [3,206 B]
Get:22 http://us.archive.ubuntu.com trusty-updates/universe i386 Packages [389 kB]
Get:23 http://security.ubuntu.com trusty-security/universe Translation-en [84.3 kB]
Get:24 http://us.archive.ubuntu.com trusty-updates/multiverse i386 Packages [15.5 kB]
Get:25 http://us.archive.ubuntu.com trusty-updates/main Translation-en [443 kB]
Get:26 http://us.archive.ubuntu.com trusty-updates/multiverse Translation-en [7,931 B]
Get:27 http://us.archive.ubuntu.com trusty-updates/restricted Translation-en [3,699 B]
Get:28 http://us.archive.ubuntu.com trusty-updates/universe Translation-en [205 kB]
Get:29 http://us.archive.ubuntu.com trusty-backports/main Sources [9,646 B]
Get:30 http://us.archive.ubuntu.com trusty-backports/restricted Sources [28 B]
Get:31 http://us.archive.ubuntu.com trusty-backports/universe Sources [35.2 kB]
Get:32 http://us.archive.ubuntu.com trusty-backports/multiverse Sources [1,898 B]
Get:33 http://us.archive.ubuntu.com trusty-backports/main i386 Packages [13.3 kB]
Get:34 http://us.archive.ubuntu.com trusty-backports/restricted i386 Packages [28 B]
Get:35 http://us.archive.ubuntu.com trusty-backports/universe i386 Packages [43.2 kB]
Get:36 http://us.archive.ubuntu.com trusty-backports/multiverse i386 Packages [1,552 B]
Get:37 http://us.archive.ubuntu.com trusty-backports/main Translation-en [7,493 B]
Get:38 http://us.archive.ubuntu.com trusty-backports/multiverse Translation-en [1,215 B]
Get:39 http://us.archive.ubuntu.com trusty-backports/restricted Translation-en [28 B]
Get:40 http://us.archive.ubuntu.com trusty-backports/universe Translation-en [36.8 kB]
Get:41 http://us.archive.ubuntu.com trusty Release [58.5 kB]
Get:42 http://us.archive.ubuntu.com trusty/main Sources [1,064 kB]
Get:43 http://us.archive.ubuntu.com trusty/restricted Sources [5,433 B]
Get:44 http://us.archive.ubuntu.com trusty/universe Sources [6,399 kB]
Get:45 http://us.archive.ubuntu.com trusty/multiverse Sources [174 kB]
Get:46 http://us.archive.ubuntu.com trusty/main i386 Packages [1,348 kB]
Get:47 http://us.archive.ubuntu.com trusty/restricted i386 Packages [13.4 kB]
Get:48 http://us.archive.ubuntu.com trusty/universe i386 Packages [5,866 kB]
Get:49 http://us.archive.ubuntu.com trusty/multiverse i386 Packages [134 kB]
Hit http://us.archive.ubuntu.com trusty/main Translation-en
Hit http://us.archive.ubuntu.com trusty/multiverse Translation-en
Hit http://us.archive.ubuntu.com trusty/restricted Translation-en
Get:50 http://us.archive.ubuntu.com trusty/universe Translation-en [4,089 kB]
Ign http://us.archive.ubuntu.com trusty/main Translation-en_US
Ign http://us.archive.ubuntu.com trusty/multiverse Translation-en_US
Ign http://us.archive.ubuntu.com trusty/restricted Translation-en_US
Ign http://us.archive.ubuntu.com trusty/universe Translation-en_US
Fetched 23.2 MB in 18s (1,258 kB/s)
Reading package lists… Done
root@bchost:~# sudo apt-get install software-properties-common
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following extra packages will be installed:
python3-pycurl python3-software-properties unattended-upgrades
Suggested packages:
libcurl4-gnutls-dev python3-pycurl-dbg bsd-mailx mail-transport-agent
The following NEW packages will be installed:
python3-pycurl python3-software-properties software-properties-common
unattended-upgrades
0 upgraded, 4 newly installed, 0 to remove and 195 not upgraded.
Need to get 54.3 kB/101 kB of archives.
After this operation, 794 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main unattended-upgrades all 0.82.1ubuntu2.4 [25.9 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main python3-software-properties all 0.92.37.7 [19.1 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main software-properties-common all 0.92.37.7 [9,356 B]
Fetched 54.3 kB in 0s (125 kB/s)
Preconfiguring packages …
Selecting previously unselected package python3-pycurl.
(Reading database … 54505 files and directories currently installed.)
Preparing to unpack …/python3-pycurl_7.19.3-0ubuntu3_i386.deb …
Unpacking python3-pycurl (7.19.3-0ubuntu3) …
Selecting previously unselected package unattended-upgrades.
Preparing to unpack …/unattended-upgrades_0.82.1ubuntu2.4_all.deb …
Unpacking unattended-upgrades (0.82.1ubuntu2.4) …
Selecting previously unselected package python3-software-properties.
Preparing to unpack …/python3-software-properties_0.92.37.7_all.deb …
Unpacking python3-software-properties (0.92.37.7) …
Selecting previously unselected package software-properties-common.
Preparing to unpack …/software-properties-common_0.92.37.7_all.deb …
Unpacking software-properties-common (0.92.37.7) …
Processing triggers for man-db (2.6.7.1-1) …
Processing triggers for ureadahead (0.100.0-16) …
ureadahead will be reprofiled on next reboot
Setting up python3-pycurl (7.19.3-0ubuntu3) …
Setting up unattended-upgrades (0.82.1ubuntu2.4) …
Processing triggers for ureadahead (0.100.0-16) …
Setting up python3-software-properties (0.92.37.7) …
Setting up software-properties-common (0.92.37.7) …
root@bchost:~# add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) main universe restricted multiverse"
root@bchost:~# sudo apt-get -qq -y install git

Selecting previously unselected package liberror-perl.
(Reading database … 54579 files and directories currently installed.)
Preparing to unpack …/liberror-perl_0.17-1.1_all.deb …
Unpacking liberror-perl (0.17-1.1) …
Selecting previously unselected package git-man.
Preparing to unpack …/git-man_1%3a1.9.1-1ubuntu0.3_all.deb …
Unpacking git-man (1:1.9.1-1ubuntu0.3) …
Selecting previously unselected package git.
Preparing to unpack …/git_1%3a1.9.1-1ubuntu0.3_i386.deb …
Unpacking git (1:1.9.1-1ubuntu0.3) …
^[[21~^[[21~Selecting previously unselected package patch.
Preparing to unpack …/patch_2.7.1-4ubuntu2.3_i386.deb …
Unpacking patch (2.7.1-4ubuntu2.3) …
Processing triggers for man-db (2.6.7.1-1) …
^[[21~^[[21~Setting up liberror-perl (0.17-1.1) …
Setting up git-man (1:1.9.1-1ubuntu0.3) …
Setting up git (1:1.9.1-1ubuntu0.3) …
Setting up patch (2.7.1-4ubuntu2.3) …
^[[21~root@bchost:~# sudo apt-get -qq -y install git
root@bchost:~# git clone https://github.com/ArduPilot/ardupilot.git
Cloning into ‘ardupilot’…
remote: Counting objects: 169950, done.
remote: Total 169950 (delta 0), reused 0 (delta 0), pack-reused 169949
Receiving objects: 100% (169950/169950), 76.06 MiB | 6.88 MiB/s, done.
Resolving deltas: 100% (123492/123492), done.
Checking connectivity… done.
root@bchost:~# cd ardupilot
root@bchost:~/ardupilot# cd ardupilot
-bash: cd: ardupilot: No such file or directory
root@bchost:~/ardupilot# git submodule init
Submodule ‘modules/PX4Firmware’ (git://github.com/ArduPilot/PX4Firmware.git) registered for path 'modules/PX4Firmware’
Submodule ‘modules/PX4NuttX’ (git://github.com/ArduPilot/PX4NuttX.git) registered for path 'modules/PX4NuttX’
Submodule ‘modules/gbenchmark’ (git://github.com/google/benchmark.git) registered for path 'modules/gbenchmark’
Submodule ‘gtest’ (git://github.com/ArduPilot/googletest) registered for path 'modules/gtest’
Submodule ‘modules/mavlink’ (git://github.com/ArduPilot/mavlink) registered for path 'modules/mavlink’
Submodule ‘modules/uavcan’ (git://github.com/ArduPilot/uavcan.git) registered for path 'modules/uavcan’
Submodule ‘modules/waf’ (git://github.com/ArduPilot/waf.git) registered for path 'modules/waf’
root@bchost:~/ardupilot# git submodule update
Cloning into ‘modules/PX4Firmware’…
remote: Counting objects: 172924, done.
remote: Total 172924 (delta 0), reused 0 (delta 0), pack-reused 172924
Receiving objects: 100% (172924/172924), 73.52 MiB | 6.49 MiB/s, done.
Resolving deltas: 100% (128517/128517), done.
Checking connectivity… done.
Submodule path ‘modules/PX4Firmware’: checked out '3e947ccf02c66b77f6d1c7e22dafb72d448c62fa’
Cloning into ‘modules/PX4NuttX’…
remote: Counting objects: 125703, done.
remote: Total 125703 (delta 0), reused 0 (delta 0), pack-reused 125702
Receiving objects: 100% (125703/125703), 31.42 MiB | 5.64 MiB/s, done.
Resolving deltas: 100% (102467/102467), done.
Checking connectivity… done.
Submodule path ‘modules/PX4NuttX’: checked out '8c9659921c0d42a0e909a5ecdba93e9d9a4b0a7e’
Cloning into ‘modules/gbenchmark’…
remote: Counting objects: 3135, done.
remote: Total 3135 (delta 0), reused 0 (delta 0), pack-reused 3135
Receiving objects: 100% (3135/3135), 790.18 KiB | 0 bytes/s, done.
Resolving deltas: 100% (2035/2035), done.
Checking connectivity… done.
Submodule path ‘modules/gbenchmark’: checked out '006d23ccca1375a973b7fae0cc351cedb41b812a’
Cloning into ‘modules/gtest’…
remote: Counting objects: 7141, done.
remote: Total 7141 (delta 0), reused 0 (delta 0), pack-reused 7141
Receiving objects: 100% (7141/7141), 2.41 MiB | 1.91 MiB/s, done.
Resolving deltas: 100% (5327/5327), done.
Checking connectivity… done.
Submodule path ‘modules/gtest’: checked out 'c99458533a9b4c743ed51537e25989ea55944908’
Cloning into ‘modules/mavlink’…
remote: Counting objects: 14249, done.
remote: Compressing objects: 100% (15/15), done.
remote: Total 14249 (delta 7), reused 0 (delta 0), pack-reused 14234
Receiving objects: 100% (14249/14249), 5.80 MiB | 3.33 MiB/s, done.
Resolving deltas: 100% (9498/9498), done.
Checking connectivity… done.
Submodule path ‘modules/mavlink’: checked out 'd1923992b27c55ff7e8a068fbd7f71d4d1794546’
Cloning into ‘modules/uavcan’…
remote: Counting objects: 16659, done.
remote: Total 16659 (delta 0), reused 0 (delta 0), pack-reused 16659
Receiving objects: 100% (16659/16659), 2.69 MiB | 1.66 MiB/s, done.
Resolving deltas: 100% (11241/11241), done.
Checking connectivity… done.
Submodule path ‘modules/uavcan’: checked out '71cf39c8c6c3c2709bc1a32ffd947add22b1a836’
Cloning into ‘modules/waf’…
remote: Counting objects: 13093, done.
remote: Total 13093 (delta 0), reused 0 (delta 0), pack-reused 13093
Receiving objects: 100% (13093/13093), 3.74 MiB | 1.38 MiB/s, done.
Resolving deltas: 100% (9130/9130), done.
Checking connectivity… done.
Submodule path ‘modules/waf’: checked out ‘73163ef5c117a51f29546d17c2bb2041aecefcdd’
root@bchost:~/ardupilot# Tools/scripts/install-prereqs-ubuntu.sh -y
gpg: keyring /tmp/tmppu7u6033/secring.gpg' created gpg: keyring/tmp/tmppu7u6033/pubring.gpg’ created
gpg: requesting key 828AB726 from hkp server keyserver.ubuntu.com
gpg: /tmp/tmppu7u6033/trustdb.gpg: trustdb created
gpg: key 828AB726: public key “Launchpad George Edison’s PPA” imported
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)
OK
E: Package ‘libc6-i386’ has no installation candidate
root@bchost:~/ardupilot# sudo apt-get install cmake
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following extra packages will be installed:
binutils cmake-data cpp cpp-4.8 gcc gcc-4.8 gcc-4.8-base libarchive13
libasan0 libatomic1 libc-dev-bin libc6 libc6-dev libcloog-isl4 libcurl3
libgcc-4.8-dev libgmp10 libgomp1 libisl10 libitm1 libjsoncpp0 liblzo2-2
libmpc3 libmpfr4 libnettle4 libquadmath0 libstdc++6 linux-libc-dev make
manpages-dev
Suggested packages:
binutils-doc codeblocks eclipse ninja-build cpp-doc gcc-4.8-locales
gcc-multilib autoconf automake1.9 libtool flex bison gdb gcc-doc
gcc-4.8-multilib gcc-4.8-doc libgcc1-dbg libgomp1-dbg libitm1-dbg
libatomic1-dbg libasan0-dbg libtsan0-dbg libquadmath0-dbg lrzip glibc-doc
make-doc
The following NEW packages will be installed:
binutils cmake cmake-data cpp cpp-4.8 gcc gcc-4.8 libarchive13 libasan0
libatomic1 libc-dev-bin libc6-dev libcloog-isl4 libcurl3 libgcc-4.8-dev
libgmp10 libgomp1 libisl10 libitm1 libjsoncpp0 liblzo2-2 libmpc3 libmpfr4
libnettle4 libquadmath0 linux-libc-dev make manpages-dev
The following packages will be upgraded:
gcc-4.8-base libc6 libstdc++6
3 upgraded, 28 newly installed, 0 to remove and 192 not upgraded.
Need to get 27.4 MB of archives.
After this operation, 85.2 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main gcc-4.8-base i386 4.8.4-2ubuntu1~14.04.3 [16.2 kB]
Get:2 http://ppa.launchpad.net/george-edison55/cmake-3.x/ubuntu/ trusty/main cmake-data all 3.2.2-2~ubuntu14.04.1~ppa1 [1,043 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main libstdc++6 i386 4.8.4-2ubuntu1~14.04.3 [269 kB]
Get:4 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main libc6 i386 2.19-0ubuntu6.9 [3,988 kB]
Get:5 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main liblzo2-2 i386 2.06-1.2ubuntu1.1 [49.9 kB]
Get:6 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main libnettle4 i386 2.7.1-1ubuntu0.1 [105 kB]
Get:7 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main libarchive13 i386 3.1.2-7ubuntu2.3 [276 kB]
Get:8 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main libcurl3 i386 7.35.0-1ubuntu2.9 [174 kB]
Get:9 http://us.archive.ubuntu.com/ubuntu/ trusty/universe libjsoncpp0 i386 0.6.0~rc2-3ubuntu1 [57.2 kB]
Get:10 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main libasan0 i386 4.8.4-2ubuntu1~14.04.3 [64.0 kB]
Get:11 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main libatomic1 i386 4.8.4-2ubuntu1~14.04.3 [8,288 B]
Get:12 http://us.archive.ubuntu.com/ubuntu/ trusty/main libgmp10 i386 2:5.1.3+dfsg-1ubuntu1 [230 kB]
Get:13 http://us.archive.ubuntu.com/ubuntu/ trusty/main libisl10 i386 0.12.2-1 [430 kB]
Get:14 http://us.archive.ubuntu.com/ubuntu/ trusty/main libcloog-isl4 i386 0.18.2-1 [57.6 kB]
Get:15 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main libgomp1 i386 4.8.4-2ubuntu1~14.04.3 [25.0 kB]
Get:16 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main libitm1 i386 4.8.4-2ubuntu1~14.04.3 [28.5 kB]
Get:17 http://us.archive.ubuntu.com/ubuntu/ trusty/main libmpfr4 i386 3.1.2-1 [197 kB]
Get:18 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main libquadmath0 i386 4.8.4-2ubuntu1~14.04.3 [187 kB]
Get:19 http://us.archive.ubuntu.com/ubuntu/ trusty/main libmpc3 i386 1.0.1-1ubuntu1 [38.0 kB]
Get:20 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main binutils i386 2.24-5ubuntu14.1 [2,120 kB]
Get:21 http://ppa.launchpad.net/george-edison55/cmake-3.x/ubuntu/ trusty/main cmake i386 3.2.2-2~ubuntu14.04.1~ppa1 [2,627 kB]
Get:22 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main cpp-4.8 i386 4.8.4-2ubuntu1~14.04.3 [4,444 kB]
Get:23 http://us.archive.ubuntu.com/ubuntu/ trusty/main cpp i386 4:4.8.2-1ubuntu6 [27.4 kB]
Get:24 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main libgcc-4.8-dev i386 4.8.4-2ubuntu1~14.04.3 [1,735 kB]
Get:25 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main gcc-4.8 i386 4.8.4-2ubuntu1~14.04.3 [4,909 kB]
Get:26 http://us.archive.ubuntu.com/ubuntu/ trusty/main gcc i386 4:4.8.2-1ubuntu6 [5,096 B]
Get:27 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main libc-dev-bin i386 2.19-0ubuntu6.9 [63.5 kB]
Get:28 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main linux-libc-dev i386 3.13.0-100.147 [767 kB]
Get:29 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main libc6-dev i386 2.19-0ubuntu6.9 [1,559 kB]
Get:30 http://us.archive.ubuntu.com/ubuntu/ trusty/main make i386 3.81-8.2ubuntu3 [115 kB]
Get:31 http://us.archive.ubuntu.com/ubuntu/ trusty/main manpages-dev all 3.54-1ubuntu1 [1,820 kB]
Fetched 27.4 MB in 10s (2,628 kB/s)
Extracting templates from packages: 100%
Preconfiguring packages …
(Reading database … 55337 files and directories currently installed.)
Preparing to unpack …/gcc-4.8-base_4.8.4-2ubuntu1~14.04.3_i386.deb …
Unpacking gcc-4.8-base:i386 (4.8.4-2ubuntu1~14.04.3) over (4.8.2-19ubuntu1) …
Setting up gcc-4.8-base:i386 (4.8.4-2ubuntu1~14.04.3) …
(Reading database … 55337 files and directories currently installed.)
Preparing to unpack …/libstdc++6_4.8.4-2ubuntu1~14.04.3_i386.deb …
Unpacking libstdc++6:i386 (4.8.4-2ubuntu1~14.04.3) over (4.8.2-19ubuntu1) …
Preparing to unpack …/libc6_2.19-0ubuntu6.9_i386.deb …
Unpacking libc6:i386 (2.19-0ubuntu6.9) over (2.19-0ubuntu6) …
Setting up libc6:i386 (2.19-0ubuntu6.9) …
Setting up libstdc++6:i386 (4.8.4-2ubuntu1~14.04.3) …
Processing triggers for libc-bin (2.19-0ubuntu6) …
Selecting previously unselected package cmake-data.
(Reading database … 55350 files and directories currently installed.)
Preparing to unpack …/cmake-data_3.2.2-2~ubuntu14.04.1~ppa1_all.deb …
Unpacking cmake-data (3.2.2-2~ubuntu14.04.1~ppa1) …
Selecting previously unselected package liblzo2-2:i386.
Preparing to unpack …/liblzo2-2_2.06-1.2ubuntu1.1_i386.deb …
Unpacking liblzo2-2:i386 (2.06-1.2ubuntu1.1) …
Selecting previously unselected package libnettle4:i386.
Preparing to unpack …/libnettle4_2.7.1-1ubuntu0.1_i386.deb …
Unpacking libnettle4:i386 (2.7.1-1ubuntu0.1) …
Selecting previously unselected package libarchive13:i386.
Preparing to unpack …/libarchive13_3.1.2-7ubuntu2.3_i386.deb …
Unpacking libarchive13:i386 (3.1.2-7ubuntu2.3) …
Selecting previously unselected package libcurl3:i386.
Preparing to unpack …/libcurl3_7.35.0-1ubuntu2.9_i386.deb …
Unpacking libcurl3:i386 (7.35.0-1ubuntu2.9) …
Selecting previously unselected package libjsoncpp0:i386.
Preparing to unpack …/libjsoncpp0_0.6.0~rc2-3ubuntu1_i386.deb …
Unpacking libjsoncpp0:i386 (0.6.0~rc2-3ubuntu1) …
Selecting previously unselected package cmake.
Preparing to unpack …/cmake_3.2.2-2~ubuntu14.04.1~ppa1_i386.deb …
Unpacking cmake (3.2.2-2~ubuntu14.04.1~ppa1) …
Selecting previously unselected package libasan0:i386.
Preparing to unpack …/libasan0_4.8.4-2ubuntu1~14.04.3_i386.deb …
Unpacking libasan0:i386 (4.8.4-2ubuntu1~14.04.3) …
Selecting previously unselected package libatomic1:i386.
Preparing to unpack …/libatomic1_4.8.4-2ubuntu1~14.04.3_i386.deb …
Unpacking libatomic1:i386 (4.8.4-2ubuntu1~14.04.3) …
Selecting previously unselected package libgmp10:i386.
Preparing to unpack …/libgmp10_2%3a5.1.3+dfsg-1ubuntu1_i386.deb …
Unpacking libgmp10:i386 (2:5.1.3+dfsg-1ubuntu1) …
Selecting previously unselected package libisl10:i386.
Preparing to unpack …/libisl10_0.12.2-1_i386.deb …
Unpacking libisl10:i386 (0.12.2-1) …
Selecting previously unselected package libcloog-isl4:i386.
Preparing to unpack …/libcloog-isl4_0.18.2-1_i386.deb …
Unpacking libcloog-isl4:i386 (0.18.2-1) …
Selecting previously unselected package libgomp1:i386.
Preparing to unpack …/libgomp1_4.8.4-2ubuntu1~14.04.3_i386.deb …
Unpacking libgomp1:i386 (4.8.4-2ubuntu1~14.04.3) …
Selecting previously unselected package libitm1:i386.
Preparing to unpack …/libitm1_4.8.4-2ubuntu1~14.04.3_i386.deb …
Unpacking libitm1:i386 (4.8.4-2ubuntu1~14.04.3) …
Selecting previously unselected package libmpfr4:i386.
Preparing to unpack …/libmpfr4_3.1.2-1_i386.deb …
Unpacking libmpfr4:i386 (3.1.2-1) …
Selecting previously unselected package libquadmath0:i386.
Preparing to unpack …/libquadmath0_4.8.4-2ubuntu1~14.04.3_i386.deb …
Unpacking libquadmath0:i386 (4.8.4-2ubuntu1~14.04.3) …
Selecting previously unselected package libmpc3:i386.
Preparing to unpack …/libmpc3_1.0.1-1ubuntu1_i386.deb …
Unpacking libmpc3:i386 (1.0.1-1ubuntu1) …
Selecting previously unselected package binutils.
Preparing to unpack …/binutils_2.24-5ubuntu14.1_i386.deb …
Unpacking binutils (2.24-5ubuntu14.1) …
Selecting previously unselected package cpp-4.8.
Preparing to unpack …/cpp-4.8_4.8.4-2ubuntu1~14.04.3_i386.deb …
Unpacking cpp-4.8 (4.8.4-2ubuntu1~14.04.3) …
Selecting previously unselected package cpp.
Preparing to unpack …/cpp_4%3a4.8.2-1ubuntu6_i386.deb …
Unpacking cpp (4:4.8.2-1ubuntu6) …
Selecting previously unselected package libgcc-4.8-dev:i386.
Preparing to unpack …/libgcc-4.8-dev_4.8.4-2ubuntu1~14.04.3_i386.deb …
Unpacking libgcc-4.8-dev:i386 (4.8.4-2ubuntu1~14.04.3) …
Selecting previously unselected package gcc-4.8.
Preparing to unpack …/gcc-4.8_4.8.4-2ubuntu1~14.04.3_i386.deb …
Unpacking gcc-4.8 (4.8.4-2ubuntu1~14.04.3) …
Selecting previously unselected package gcc.
Preparing to unpack …/gcc_4%3a4.8.2-1ubuntu6_i386.deb …
Unpacking gcc (4:4.8.2-1ubuntu6) …
Selecting previously unselected package libc-dev-bin.
Preparing to unpack …/libc-dev-bin_2.19-0ubuntu6.9_i386.deb …
Unpacking libc-dev-bin (2.19-0ubuntu6.9) …
Selecting previously unselected package linux-libc-dev:i386.
Preparing to unpack …/linux-libc-dev_3.13.0-100.147_i386.deb …
Unpacking linux-libc-dev:i386 (3.13.0-100.147) …
Selecting previously unselected package libc6-dev:i386.
Preparing to unpack …/libc6-dev_2.19-0ubuntu6.9_i386.deb …
Unpacking libc6-dev:i386 (2.19-0ubuntu6.9) …
Selecting previously unselected package make.
Preparing to unpack …/make_3.81-8.2ubuntu3_i386.deb …
Unpacking make (3.81-8.2ubuntu3) …
Selecting previously unselected package manpages-dev.
Preparing to unpack …/manpages-dev_3.54-1ubuntu1_all.deb …
Unpacking manpages-dev (3.54-1ubuntu1) …
Processing triggers for man-db (2.6.7.1-1) …
Setting up cmake-data (3.2.2-2~ubuntu14.04.1~ppa1) …
Setting up liblzo2-2:i386 (2.06-1.2ubuntu1.1) …
Setting up libnettle4:i386 (2.7.1-1ubuntu0.1) …
Setting up libarchive13:i386 (3.1.2-7ubuntu2.3) …
Setting up libcurl3:i386 (7.35.0-1ubuntu2.9) …
Setting up libjsoncpp0:i386 (0.6.0~rc2-3ubuntu1) …
Setting up cmake (3.2.2-2~ubuntu14.04.1~ppa1) …
Setting up libasan0:i386 (4.8.4-2ubuntu1~14.04.3) …
Setting up libatomic1:i386 (4.8.4-2ubuntu1~14.04.3) …
Setting up libgmp10:i386 (2:5.1.3+dfsg-1ubuntu1) …
Setting up libisl10:i386 (0.12.2-1) …
Setting up libcloog-isl4:i386 (0.18.2-1) …
Setting up libgomp1:i386 (4.8.4-2ubuntu1~14.04.3) …
Setting up libitm1:i386 (4.8.4-2ubuntu1~14.04.3) …
Setting up libmpfr4:i386 (3.1.2-1) …
Setting up libquadmath0:i386 (4.8.4-2ubuntu1~14.04.3) …
Setting up libmpc3:i386 (1.0.1-1ubuntu1) …
Setting up binutils (2.24-5ubuntu14.1) …
Setting up cpp-4.8 (4.8.4-2ubuntu1~14.04.3) …
Setting up cpp (4:4.8.2-1ubuntu6) …
Setting up libgcc-4.8-dev:i386 (4.8.4-2ubuntu1~14.04.3) …
Setting up gcc-4.8 (4.8.4-2ubuntu1~14.04.3) …
Setting up gcc (4:4.8.2-1ubuntu6) …
Setting up libc-dev-bin (2.19-0ubuntu6.9) …
Setting up linux-libc-dev:i386 (3.13.0-100.147) …
Setting up libc6-dev:i386 (2.19-0ubuntu6.9) …
Setting up make (3.81-8.2ubuntu3) …
Setting up manpages-dev (3.54-1ubuntu1) …
Processing triggers for libc-bin (2.19-0ubuntu6) …
root@bchost:~/ardupilot# . ~/.profile
root@bchost:~/ardupilot# ./waf configure --board px4-v2
Setting top to : /root/ardupilot
Setting out to : /root/ardupilot/build
Autoconfiguration : enabled
Setting board to : px4-v2
Checking for program ‘arm-none-eabi-ar’ : not found
Could not find the program [‘arm-none-eabi-ar’]
(complete log in /root/ardupilot/build/config.log)
root@bchost:~/ardupilot# ./waf copter
The project was not configured: run “waf configure” first!
root@bchost:~/ardupilot#