Px4_fmu-v3_default not building

Hi, i have forked from master but am unable to build px4_fmu-v3_default. v2 works fine even after I have made a couple of apps for it but I haven’t changed any makefiles for v3. Changing from v2 to v3 because I have the Pixhawk 2 cube and some sensors aren’t working but do on the stable release through QGC. Here is the output:

:~/px4/Firmware$ make px4fmu-v3_default 
REINITIALIZING GIT SUBMODULES
no git repo found in Tools/jMAVSim/jMAVlib/.git
error: pathspec 'Tools/jMAVSim/jMAVlib' did not match any file(s) known to git.
error: pathspec 'Tools/jMAVSim/jMAVlib' did not match any file(s) known to git.
REINITIALIZING GIT SUBMODULES
no git repo found in Tools/sitl_gazebo/external/OpticalFlow/.git
error: pathspec 'Tools/sitl_gazebo/external/OpticalFlow' did not match any file(s) known to git.
error: pathspec 'Tools/sitl_gazebo/external/OpticalFlow' did not match any file(s) known to git.
REINITIALIZING GIT SUBMODULES
no git repo found in src/lib/DriverFramework/dspal/.git
error: pathspec 'src/lib/DriverFramework/dspal' did not match any file(s) known to git.
error: pathspec 'src/lib/DriverFramework/dspal' did not match any file(s) known to git.
REINITIALIZING GIT SUBMODULES
no git repo found in src/lib/ecl/matrix/.git
error: pathspec 'src/lib/ecl/matrix' did not match any file(s) known to git.
error: pathspec 'src/lib/ecl/matrix' did not match any file(s) known to git.
REINITIALIZING GIT SUBMODULES
no git repo found in src/modules/uavcan/libuavcan/dsdl/.git
error: pathspec 'src/modules/uavcan/libuavcan/dsdl' did not match any file(s) known to git.
error: pathspec 'src/modules/uavcan/libuavcan/dsdl' did not match any file(s) known to git.
REINITIALIZING GIT SUBMODULES
no git repo found in src/modules/uavcan/libuavcan/libuavcan/dsdl_compiler/pyuavcan/.git
error: pathspec 'src/modules/uavcan/libuavcan/libuavcan/dsdl_compiler/pyuavcan' did not match any file(s) known to git.
error: pathspec 'src/modules/uavcan/libuavcan/libuavcan/dsdl_compiler/pyuavcan' did not match any file(s) known to git.
-- Build Type: MinSizeRel
-- PX4 VERSION: v1.7.0-rc0-7-gef906d0
-- CONFIG: nuttx_px4fmu-v3_default
-- The ASM compiler identification is GNU
-- Found assembler: /home/ubuntu/gcc-arm-none-eabi-5_4-2016q2/bin/arm-none-eabi-gcc
-- Found PythonInterp: /usr/bin/python (found version "2.7.12") 
-- Found PY_jinja2: /usr/local/lib/python2.7/dist-packages/jinja2  
-- C compiler: arm-none-eabi-gcc (GNU Tools for ARM Embedded Processors) 5.4.1 20160609 (release) [ARM/embedded-5-branch revision 237715]
-- C++ compiler: arm-none-eabi-g++ (GNU Tools for ARM Embedded Processors) 5.4.1 20160609 (release) [ARM/embedded-5-branch revision 237715]
-- Building and including px4io-v2
-- Using C++03
-- Release build type: MinSizeRel
-- Adding UAVCAN STM32 platform driver
-- NuttX: px4fmu-v3 nsh cortex-m4
-- ROMFS: px4fmu_common
-- Configuring done
-- Generating done
-- Build files have been written to: /home/ubuntu/px4/Firmware/build/px4fmu-v3_default
[5/894] Building px4io-v2
REINITIALIZING GIT SUBMODULES
no git repo found in Tools/jMAVSim/jMAVlib/.git
error: pathspec 'Tools/jMAVSim/jMAVlib' did not match any file(s) known to git.
error: pathspec 'Tools/jMAVSim/jMAVlib' did not match any file(s) known to git.
REINITIALIZING GIT SUBMODULES
no git repo found in Tools/sitl_gazebo/external/OpticalFlow/.git
error: pathspec 'Tools/sitl_gazebo/external/OpticalFlow' did not match any file(s) known to git.
error: pathspec 'Tools/sitl_gazebo/external/OpticalFlow' did not match any file(s) known to git.
REINITIALIZING GIT SUBMODULES
no git repo found in src/lib/DriverFramework/dspal/.git
error: pathspec 'src/lib/DriverFramework/dspal' did not match any file(s) known to git.
error: pathspec 'src/lib/DriverFramework/dspal' did not match any file(s) known to git.
REINITIALIZING GIT SUBMODULES
no git repo found in src/lib/ecl/matrix/.git
error: pathspec 'src/lib/ecl/matrix' did not match any file(s) known to git.
error: pathspec 'src/lib/ecl/matrix' did not match any file(s) known to git.
REINITIALIZING GIT SUBMODULES
no git repo found in src/modules/uavcan/libuavcan/dsdl/.git
error: pathspec 'src/modules/uavcan/libuavcan/dsdl' did not match any file(s) known to git.
error: pathspec 'src/modules/uavcan/libuavcan/dsdl' did not match any file(s) known to git.
REINITIALIZING GIT SUBMODULES
no git repo found in src/modules/uavcan/libuavcan/libuavcan/dsdl_compiler/pyuavcan/.git
error: pathspec 'src/modules/uavcan/libuavcan/libuavcan/dsdl_compiler/pyuavcan' did not match any file(s) known to git.
error: pathspec 'src/modules/uavcan/libuavcan/libuavcan/dsdl_compiler/pyuavcan' did not match any file(s) known to git.
-- Build Type: MinSizeRel
-- PX4 VERSION: v1.7.0-rc0-7-gef906d0
-- CONFIG: nuttx_px4io-v2_default
-- The ASM compiler identification is GNU
-- Found assembler: /home/ubuntu/gcc-arm-none-eabi-5_4-2016q2/bin/arm-none-eabi-gcc
-- Found PythonInterp: /usr/bin/python (found version "2.7.12") 
-- Found PY_jinja2: /usr/local/lib/python2.7/dist-packages/jinja2  
-- C compiler: arm-none-eabi-gcc (GNU Tools for ARM Embedded Processors) 5.4.1 20160609 (release) [ARM/embedded-5-branch revision 237715]
-- C++ compiler: arm-none-eabi-g++ (GNU Tools for ARM Embedded Processors) 5.4.1 20160609 (release) [ARM/embedded-5-branch revision 237715]
-- NuttX: px4io-v2 nsh cortex-m3
-- Configuring done
-- Generating done
-- Build files have been written to: /home/ubuntu/px4/Firmware/build/px4io-v2_default
[153/153] Linking CXX executable nuttx_px4io-v2_default.elf
[6/894] Running dsdl compiler
FAILED: cd /home/ubuntu/px4/Firmware/src/modules/uavcan/libuavcan/libuavcan && /usr/bin/python /home/ubuntu/px4/Firmware/src/modules/uavcan/libuavcan/libuavcan/dsdl_compiler/libuavcan_dsdlc test/dsdl_test/root_ns_a test/dsdl_test/root_ns_b /home/ubuntu/px4/Firmware/src/modules/uavcan/libuavcan/libuavcan/../dsdl/uavcan -Oinclude/dsdlc_generated && /usr/bin/cmake -E touch /home/ubuntu/px4/Firmware/build/px4fmu-v3_default/libuavcan_dsdlc_run.stamp
Traceback (most recent call last):
  File "/home/ubuntu/px4/Firmware/src/modules/uavcan/libuavcan/libuavcan/dsdl_compiler/libuavcan_dsdlc", line 59, in <module>
    from libuavcan_dsdl_compiler import run as dsdlc_run
  File "/home/ubuntu/px4/Firmware/src/modules/uavcan/libuavcan/libuavcan/dsdl_compiler/libuavcan_dsdl_compiler/__init__.py", line 17, in <module>
    from uavcan import dsdl
ImportError: No module named uavcan
[6/894] Generating uORB topic headers
ninja: build stopped: subcommand failed.
Makefile:153: recipe for target 'px4fmu-v3_default' failed
make: *** [px4fmu-v3_default] Error 1

Please could someone identify what I have done wrong? Thanks for any help you can give

There’s something wrong with your submodules. Try make distclean and then build again.