Troubles building px4 firmware

Hi guys. I’m currently developing modules to add to the PX4 firmware. Last week I decided to upgrade the firmware I was using. So I created a folder and used git clone to download the firmware from github. After that I tried to build the code, so that I would be able to add my personal modules and upload it to pixhawk. But since I made this upgrade, I was unable to build the code anymore :\ Below I’m showing the error I’m getting while trying to build it with make px4fmu-v2_default. (Note: I follow all the steps from dev.px4.io to build the code).

alessandro@alessandro-debian:~/PX4-AeroRio2017/Firmware$ make px4fmu-v2_default
Tools/check_submodules.sh
Git submodule config valid.
Checked NuttX submodule, correct version found
Checked Tools/gencpp submodule, correct version found
Checked Tools/genmsg submodule, correct version found
Checked Tools/jMAVSim submodule, correct version found
Checked Tools/sitl_gazebo submodule, correct version found
Checked cmake/cmake_hexagon submodule, correct version found
Checked mavlink/include/mavlink/v1.0 submodule, correct version found
Checked src/lib/DriverFramework submodule, correct version found
Checked src/lib/DriverFramework/cmake_hexagon submodule, correct version found
Checked src/lib/DriverFramework/dspal submodule, correct version found
Checked src/lib/ecl submodule, correct version found
Checked src/lib/matrix submodule, correct version found
Checked src/modules/uavcan/libuavcan submodule, correct version found
Checked unittests/googletest submodule, correct version found
make -C /home/alessandro/PX4-AeroRio2017/Firmware/build_px4fmu-v2_default -j4 --no-print-directory
make[1]: *** No targets specified and no makefile found. Stop.
Makefile:132: recipe for target ‘px4fmu-v2_default’ failed
make: *** [px4fmu-v2_default] Error 2

Does anyone have any idea on how to solve it?

Thanks,
Alessandro

Update from master again and make sure to run make clean.

Thanks for the answer.

I did that, and now I get the following error:

alessandro@alessandro-debian:~/PX4-AeroRio2017/Firmware$ make clean
alessandro@alessandro-debian:~/PX4-AeroRio2017/Firmware$ make px4fmu-v2_default
– nuttx-px4fmu-v2-default
CMake Error at cmake/toolchains/Toolchain-arm-none-eabi.cmake:29 (message):
could not find arm-none-eabi-gcc compiler
Call Stack (most recent call first):
/usr/local/share/cmake-3.4/Modules/CMakeDetermineSystem.cmake:98 (include)
CMakeLists.txt:204 (project)

CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_ASM_COMPILER not set, after EnableLanguage
– Configuring incomplete, errors occurred!
Makefile:132: recipe for target ‘px4fmu-v2_default’ failed
make: *** [px4fmu-v2_default] Error 1

Note: I’m sure I gave this arm gcc compiler

Are you sure you followed the complete installation guide? You’re missing the compiler, which gets installed if you follow the guide.

I have the same error, and then trace back, there is an instruction on the console after doing “source ubuntu_sim_nuttx.sh”

Step1: Inside Ubuntu, open a terminal and input
“sudo add-apt-repository ppa:team-gcc-arm-embedded/ppa”

Step2: Continue to input
“sudo apt-get update”

Step3: Continue to input to install toolchain
“sudo apt-get install gcc-arm-embedded”

Please try the following:

% cd firmware
% git submodule update --init --recursive

then you should be OK.