Difficulties Compiling

Hi Christopher,

I’m sorry to inform you, but I was able to replicate your issue and we are going to update our documentation about it.
You can check the issue status here:

I did a test here with a docker image of ubuntu 18.04 that in theory is similar with your WSL version.

  • Install necessary tools
    apt update
    apt install build-essential cmake gcc-multilib genromfs git make python python-dev python-empy python-future python-matplotlib python-numpy python-opencv python-pip python-pyparsing python-scipy python-serial python-setuptools sudo unzip wget xz-utils zip

  • Download gcc-arm-none-eabi-4_9
    wget http://firmware.ardupilot.org/Tools/STM32-tools/gcc-arm-none-eabi-4_9-2015q3-20150921-linux.tar.bz2
    tar jxf gcc-arm-none-eabi-4_9-2015q3-20150921-linux.tar.bz2
    export PATH=$PATH:$PWD/gcc-arm-none-eabi-4_9-2015q3/bin

  • Configure and compile ArduSub-stable.

    git clone https://github.com/ardupilot/ardupilot.git && cd ardupilot &&
    git submodule update --init --recursive &&
    git fetch --tags &&
    git checkout ArduSub-stable &&
    git submodule update --recursive &&
    ./waf configure --board px4-v2 &&
    ./waf build sub`