You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I get the following error when trying to build from stable branch for the px4fmu-v3_default. I have no problem building from master, though.
➜ Firmware git:(stable) make px4fmu-v3_default
CMake Warning (dev) at cmake/configs/nuttx_px4fmu-v3_default.cmake:3 (set):
implicitly converting 'string' to 'STRING' type.
Call Stack (most recent call first):
CMakeLists.txt:151 (include)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at cmake/configs/nuttx_px4fmu-v3_default.cmake:4 (set):
implicitly converting 'string' to 'STRING' type.
Call Stack (most recent call first):
CMakeLists.txt:151 (include)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at cmake/configs/nuttx_px4fmu-v3_default.cmake:5 (set):
implicitly converting 'string' to 'STRING' type.
Call Stack (most recent call first):
CMakeLists.txt:151 (include)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at cmake/configs/nuttx_px4fmu-v3_default.cmake:6 (set):
implicitly converting 'string' to 'STRING' type.
Call Stack (most recent call first):
CMakeLists.txt:151 (include)
This warning is for project developers. Use -Wno-dev to suppress it.
-- PX4 VERSION: v1.8.2
-- CONFIG: nuttx_px4fmu-v3_default
-- Build Type: MinSizeRel
CMake Deprecation Warning at /usr/local/Cellar/cmake/3.14.0/share/cmake/Modules/CMakeForceCompiler.cmake:72 (message):
The CMAKE_FORCE_C_COMPILER macro is deprecated. Instead just set
CMAKE_C_COMPILER and allow CMake to identify the compiler.
Call Stack (most recent call first):
cmake/toolchains/Toolchain-arm-none-eabi.cmake:31 (cmake_force_c_compiler)
/usr/local/Cellar/cmake/3.14.0/share/cmake/Modules/CMakeDetermineSystem.cmake:93 (include)
CMakeLists.txt:176 (project)
CMake Deprecation Warning at /usr/local/Cellar/cmake/3.14.0/share/cmake/Modules/CMakeForceCompiler.cmake:86 (message):
The CMAKE_FORCE_CXX_COMPILER macro is deprecated. Instead just set
CMAKE_CXX_COMPILER and allow CMake to identify the compiler.
Call Stack (most recent call first):
cmake/toolchains/Toolchain-arm-none-eabi.cmake:37 (cmake_force_cxx_compiler)
/usr/local/Cellar/cmake/3.14.0/share/cmake/Modules/CMakeDetermineSystem.cmake:93 (include)
CMakeLists.txt:176 (project)
CMake Deprecation Warning at /usr/local/Cellar/cmake/3.14.0/share/cmake/Modules/CMakeForceCompiler.cmake:72 (message):
The CMAKE_FORCE_C_COMPILER macro is deprecated. Instead just set
CMAKE_C_COMPILER and allow CMake to identify the compiler.
Call Stack (most recent call first):
cmake/toolchains/Toolchain-arm-none-eabi.cmake:31 (cmake_force_c_compiler)
build/nuttx_px4fmu-v3_default/CMakeFiles/3.14.0/CMakeSystem.cmake:6 (include)
CMakeLists.txt:176 (project)
CMake Deprecation Warning at /usr/local/Cellar/cmake/3.14.0/share/cmake/Modules/CMakeForceCompiler.cmake:86 (message):
The CMAKE_FORCE_CXX_COMPILER macro is deprecated. Instead just set
CMAKE_CXX_COMPILER and allow CMake to identify the compiler.
Call Stack (most recent call first):
cmake/toolchains/Toolchain-arm-none-eabi.cmake:37 (cmake_force_cxx_compiler)
build/nuttx_px4fmu-v3_default/CMakeFiles/3.14.0/CMakeSystem.cmake:6 (include)
CMakeLists.txt:176 (project)
-- The ASM compiler identification is GNU
-- Found assembler: /usr/local/bin/arm-none-eabi-gcc
-- Found PythonInterp: /usr/local/anaconda2/bin/python (found version "2.7.14")
-- Found PY_jinja2: /usr/local/anaconda2/lib/python2.7/site-packages/jinja2
-- C compiler: arm-none-eabi-gcc (GNU Tools for Arm Embedded Processors 7-2018-q2-update) 7.3.1 20180622 (release) [ARM/embedded-7-branch revision 261907]
-- C++ compiler: arm-none-eabi-g++ (GNU Tools for Arm Embedded Processors 7-2018-q2-update) 7.3.1 20180622 (release) [ARM/embedded-7-branch revision 261907]
Submodule 'msg/tools/gencpp' (https://github.com/ros/gencpp.git) registered for path 'tools/gencpp'
Submodule path 'tools/gencpp': checked out 'b41ee3060badd660662e21cd9d4f81971c87a420'
Submodule 'msg/tools/genmsg' (https://github.com/ros/genmsg.git) registered for path 'tools/genmsg'
Submodule path 'tools/genmsg': checked out 'a189fc78558e7276df59d2961cfe4f8b4de08a8b'
Submodule 'src/lib/DriverFramework' (https://github.com/PX4/DriverFramework.git) registered for path 'src/lib/DriverFramework'
Submodule path 'src/lib/DriverFramework': checked out '410e9fc4e78da91030e9d535a7f8e023a9ddd1f4'
Submodule path 'src/lib/DriverFramework/dspal': checked out '9b46b4a57f230672ee0806a523963af70bc44f1c'
Submodule path 'src/lib/DriverFramework/dspal/cmake_hexagon': checked out '07168bd5715818802b78f674816ec851307998a7'
Submodule 'src/lib/ecl' (https://github.com/PX4/ecl.git) registered for path 'ecl'
Submodule path 'ecl': checked out '1a1106878d6ab1cc48565bef9b25b07d626c5d0b'
Submodule 'src/lib/matrix' (https://github.com/PX4/Matrix.git) registered for path 'matrix'
Submodule path 'matrix': checked out 'b815fc97c4e686a93a8074f27d1830a031b0d38d'
-- PX4 ECL: Very lightweight Estimation & Control Library v0.9.0-553-g1a11068
CMake Warning (dev) at src/lib/ecl/CMakeLists.txt:71 (set):
implicitly converting 'string' to 'STRING' type.
This warning is for project developers. Use -Wno-dev to suppress it.
Submodule 'src/drivers/gps/devices' (https://github.com/PX4/GpsDrivers.git) registered for path 'devices'
Submodule path 'devices': checked out 'a5cf54a2e14e1c6f3ff443f7f13eba31782c0460'
-- Building and including px4io-v2
Submodule 'mavlink/include/mavlink/v2.0' (https://github.com/mavlink/c_library_v2.git) registered for path '../../../mavlink/include/mavlink/v2.0'
Submodule path '../../../mavlink/include/mavlink/v2.0': checked out '033fa8e7a4a75a0c3f17cea57e3be8966e05f770'
Submodule 'src/modules/uavcan/libuavcan' (https://github.com/UAVCAN/libuavcan.git) registered for path 'libuavcan'
Submodule path 'libuavcan': checked out '231b221b64265db4e98f86e53721316f9e17e143'
Submodule path 'libuavcan/dsdl': checked out '192295c4f9b67f4a20b0eabf74757b6597415f2b'
Submodule path 'libuavcan/libuavcan/dsdl_compiler/pyuavcan': checked out 'c58477a644d20ccf95a20c151f3a0402f271c3b8'
Submodule path 'libuavcan/libuavcan/dsdl_compiler/pyuavcan/dsdl': checked out 'fd12483ddd4e58242d61d74a163e7aeaa1e0f466'
-- Using C++03
-- Release build type: MinSizeRel
-- Adding UAVCAN STM32 platform driver
Submodule 'platforms/nuttx/NuttX/nuttx' (https://github.com/PX4-NuttX/nuttx.git) registered for path 'nuttx'
Submodule path 'nuttx': checked out '63775322bf25adb406594f8e610122fe0cef2f7a'
Submodule 'platforms/nuttx/NuttX/apps' (https://github.com/PX4-NuttX/apps.git) registered for path 'apps'
Submodule path 'apps': checked out '36806ba3d84c0fa07ed86857d4c92a997b7cd194'
-- NuttX: px4fmu-v2 nsh cortex-m4
CMake Warning (dev) at platforms/nuttx/CMakeLists.txt:78 (target_link_libraries):
Policy CMP0079 is not set: target_link_libraries allows use with targets in
other directories. Run "cmake --help-policy CMP0079" for policy details.
Use the cmake_policy command to set the policy and suppress this warning.
Target
nuttx_arch
is not created in this directory. For compatibility with older versions of
CMake, link library
drivers_board
will be looked up in the directory in which the target was created rather
than in this calling directory.
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at platforms/nuttx/CMakeLists.txt:78 (target_link_libraries):
Policy CMP0079 is not set: target_link_libraries allows use with targets in
other directories. Run "cmake --help-policy CMP0079" for policy details.
Use the cmake_policy command to set the policy and suppress this warning.
Target
nuttx_arch
is not created in this directory. For compatibility with older versions of
CMake, link library
drivers_arch
will be looked up in the directory in which the target was created rather
than in this calling directory.
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at platforms/nuttx/CMakeLists.txt:78 (target_link_libraries):
Policy CMP0079 is not set: target_link_libraries allows use with targets in
other directories. Run "cmake --help-policy CMP0079" for policy details.
Use the cmake_policy command to set the policy and suppress this warning.
Target
nuttx_arch
is not created in this directory. For compatibility with older versions of
CMake, link library
drivers_boards_common
will be looked up in the directory in which the target was created rather
than in this calling directory.
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at platforms/nuttx/CMakeLists.txt:78 (target_link_libraries):
Policy CMP0079 is not set: target_link_libraries allows use with targets in
other directories. Run "cmake --help-policy CMP0079" for policy details.
Use the cmake_policy command to set the policy and suppress this warning.
Target
nuttx_arch
is not created in this directory. For compatibility with older versions of
CMake, link library
drivers_boards_common_arch
will be looked up in the directory in which the target was created rather
than in this calling directory.
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at platforms/nuttx/CMakeLists.txt:86 (target_link_libraries):
Policy CMP0079 is not set: target_link_libraries allows use with targets in
other directories. Run "cmake --help-policy CMP0079" for policy details.
Use the cmake_policy command to set the policy and suppress this warning.
Target
nuttx_c
is not created in this directory. For compatibility with older versions of
CMake, link library
nuttx_drivers
will be looked up in the directory in which the target was created rather
than in this calling directory.
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at platforms/nuttx/CMakeLists.txt:87 (target_link_libraries):
Policy CMP0079 is not set: target_link_libraries allows use with targets in
other directories. Run "cmake --help-policy CMP0079" for policy details.
Use the cmake_policy command to set the policy and suppress this warning.
Target
nuttx_cxx
is not created in this directory. For compatibility with older versions of
CMake, link library
nuttx_c
will be looked up in the directory in which the target was created rather
than in this calling directory.
This warning is for project developers. Use -Wno-dev to suppress it.
-- ROMFS: px4fmu_common
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/dlw/Workspace/PX4/Firmware/build/nuttx_px4fmu-v3_default
ninja: Entering directory `/Users/dlw/Workspace/PX4/Firmware/build/nuttx_px4fmu-v3_default'
[2/998] Building px4io-v2
-- PX4 VERSION: v1.8.2
-- CONFIG: nuttx_px4io-v2_default
-- Build Type: MinSizeRel
CMake Deprecation Warning at /usr/local/Cellar/cmake/3.14.0/share/cmake/Modules/CMakeForceCompiler.cmake:72 (message):
The CMAKE_FORCE_C_COMPILER macro is deprecated. Instead just set
CMAKE_C_COMPILER and allow CMake to identify the compiler.
Call Stack (most recent call first):
cmake/toolchains/Toolchain-arm-none-eabi.cmake:31 (cmake_force_c_compiler)
/usr/local/Cellar/cmake/3.14.0/share/cmake/Modules/CMakeDetermineSystem.cmake:93 (include)
CMakeLists.txt:176 (project)
CMake Deprecation Warning at /usr/local/Cellar/cmake/3.14.0/share/cmake/Modules/CMakeForceCompiler.cmake:86 (message):
The CMAKE_FORCE_CXX_COMPILER macro is deprecated. Instead just set
CMAKE_CXX_COMPILER and allow CMake to identify the compiler.
Call Stack (most recent call first):
cmake/toolchains/Toolchain-arm-none-eabi.cmake:37 (cmake_force_cxx_compiler)
/usr/local/Cellar/cmake/3.14.0/share/cmake/Modules/CMakeDetermineSystem.cmake:93 (include)
CMakeLists.txt:176 (project)
CMake Deprecation Warning at /usr/local/Cellar/cmake/3.14.0/share/cmake/Modules/CMakeForceCompiler.cmake:72 (message):
The CMAKE_FORCE_C_COMPILER macro is deprecated. Instead just set
CMAKE_C_COMPILER and allow CMake to identify the compiler.
Call Stack (most recent call first):
cmake/toolchains/Toolchain-arm-none-eabi.cmake:31 (cmake_force_c_compiler)
build/nuttx_px4io-v2_default/CMakeFiles/3.14.0/CMakeSystem.cmake:6 (include)
CMakeLists.txt:176 (project)
CMake Deprecation Warning at /usr/local/Cellar/cmake/3.14.0/share/cmake/Modules/CMakeForceCompiler.cmake:86 (message):
The CMAKE_FORCE_CXX_COMPILER macro is deprecated. Instead just set
CMAKE_CXX_COMPILER and allow CMake to identify the compiler.
Call Stack (most recent call first):
cmake/toolchains/Toolchain-arm-none-eabi.cmake:37 (cmake_force_cxx_compiler)
build/nuttx_px4io-v2_default/CMakeFiles/3.14.0/CMakeSystem.cmake:6 (include)
CMakeLists.txt:176 (project)
-- The ASM compiler identification is GNU
-- Found assembler: /usr/local/bin/arm-none-eabi-gcc
-- Found PythonInterp: /usr/local/anaconda2/bin/python (found version "2.7.14")
-- Found PY_jinja2: /usr/local/anaconda2/lib/python2.7/site-packages/jinja2
-- C compiler: arm-none-eabi-gcc (GNU Tools for Arm Embedded Processors 7-2018-q2-update) 7.3.1 20180622 (release) [ARM/embedded-7-branch revision 261907]
-- C++ compiler: arm-none-eabi-g++ (GNU Tools for Arm Embedded Processors 7-2018-q2-update) 7.3.1 20180622 (release) [ARM/embedded-7-branch revision 261907]
-- PX4 ECL: Very lightweight Estimation & Control Library v0.9.0-553-g1a11068
CMake Warning (dev) at src/lib/ecl/CMakeLists.txt:71 (set):
implicitly converting 'string' to 'STRING' type.
This warning is for project developers. Use -Wno-dev to suppress it.
-- NuttX: px4io-v2 nsh cortex-m3
CMake Warning (dev) at platforms/nuttx/CMakeLists.txt:78 (target_link_libraries):
Policy CMP0079 is not set: target_link_libraries allows use with targets in
other directories. Run "cmake --help-policy CMP0079" for policy details.
Use the cmake_policy command to set the policy and suppress this warning.
Target
nuttx_arch
is not created in this directory. For compatibility with older versions of
CMake, link library
drivers_board
will be looked up in the directory in which the target was created rather
than in this calling directory.
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at platforms/nuttx/CMakeLists.txt:78 (target_link_libraries):
Policy CMP0079 is not set: target_link_libraries allows use with targets in
other directories. Run "cmake --help-policy CMP0079" for policy details.
Use the cmake_policy command to set the policy and suppress this warning.
Target
nuttx_arch
is not created in this directory. For compatibility with older versions of
CMake, link library
drivers_arch
will be looked up in the directory in which the target was created rather
than in this calling directory.
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at platforms/nuttx/CMakeLists.txt:78 (target_link_libraries):
Policy CMP0079 is not set: target_link_libraries allows use with targets in
other directories. Run "cmake --help-policy CMP0079" for policy details.
Use the cmake_policy command to set the policy and suppress this warning.
Target
nuttx_arch
is not created in this directory. For compatibility with older versions of
CMake, link library
drivers_boards_common
will be looked up in the directory in which the target was created rather
than in this calling directory.
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at platforms/nuttx/CMakeLists.txt:78 (target_link_libraries):
Policy CMP0079 is not set: target_link_libraries allows use with targets in
other directories. Run "cmake --help-policy CMP0079" for policy details.
Use the cmake_policy command to set the policy and suppress this warning.
Target
nuttx_arch
is not created in this directory. For compatibility with older versions of
CMake, link library
drivers_boards_common_arch
will be looked up in the directory in which the target was created rather
than in this calling directory.
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at platforms/nuttx/CMakeLists.txt:86 (target_link_libraries):
Policy CMP0079 is not set: target_link_libraries allows use with targets in
other directories. Run "cmake --help-policy CMP0079" for policy details.
Use the cmake_policy command to set the policy and suppress this warning.
Target
nuttx_c
is not created in this directory. For compatibility with older versions of
CMake, link library
nuttx_drivers
will be looked up in the directory in which the target was created rather
than in this calling directory.
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at platforms/nuttx/CMakeLists.txt:87 (target_link_libraries):
Policy CMP0079 is not set: target_link_libraries allows use with targets in
other directories. Run "cmake --help-policy CMP0079" for policy details.
Use the cmake_policy command to set the policy and suppress this warning.
Target
nuttx_cxx
is not created in this directory. For compatibility with older versions of
CMake, link library
nuttx_c
will be looked up in the directory in which the target was created rather
than in this calling directory.
This warning is for project developers. Use -Wno-dev to suppress it.
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/dlw/Workspace/PX4/Firmware/build/nuttx_px4io-v2_default
ninja: Entering directory `/Users/dlw/Workspace/PX4/Firmware/build/nuttx_px4io-v2_default'
[16/193] Building CXX object src/lib/mixer/CMakeFiles/mixer.dir/mixer_helicopter.cpp.obj
FAILED: src/lib/mixer/CMakeFiles/mixer.dir/mixer_helicopter.cpp.obj
/usr/local/bin/arm-none-eabi-g++ -DCONFIG_ARCH_BOARD_PX4IO_V2 -D__DF_NUTTX -D__PX4_NUTTX -D__STDC_FORMAT_MACROS -I. -Isrc -Isrc/lib -Isrc/modules -I../../src -I../../src/drivers/boards/px4io-v2 -I../../src/include -I../../src/lib -I../../src/lib/DriverFramework/framework/include -I../../src/lib/matrix -I../../src/modules -I../../src/platforms -INuttX/nuttx/arch/arm/src/armv7-m -INuttX/nuttx/arch/arm/src/chip -INuttX/nuttx/arch/arm/src/common -INuttX/apps/include -Iexternal/Install/include -Isrc/lib/mixer -isystem NuttX/nuttx/include/cxx -isystem NuttX/nuttx/include -fno-common -ffunction-sections -fdata-sections -mcpu=cortex-m3 -mthumb -march=armv7-m -fno-common -ffunction-sections -fdata-sections -g -fno-exceptions -fno-rtti -std=gnu++11 -fno-threadsafe-statics -DCONFIG_WCHAR_BUILTIN -D__CUSTOM_FILE_IO__ -fcheck-new -Wall -Warray-bounds -Wdisabled-optimization -Werror -Wextra -Wfatal-errors -Wfloat-equal -Wformat-security -Winit-self -Wlogical-op -Wmissing-declarations -Wmissing-field-initializers -Wpointer-arith -Wshadow -Wuninitialized -Wunknown-pragmas -Wunused-variable -Wno-implicit-fallthrough -Wno-unused-parameter -Wunused-but-set-variable -Wformat=1 -Wdouble-promotion -Wno-missing-field-initializers -Wno-overloaded-virtual -Wreorder -Wno-format-truncation -fvisibility=hidden -include visibility.h -fno-strict-aliasing -fomit-frame-pointer -fno-math-errno -funsafe-math-optimizations -ffunction-sections -fdata-sections -fno-strength-reduce -fno-builtin-printf -Os -DNDEBUG -MD -MT src/lib/mixer/CMakeFiles/mixer.dir/mixer_helicopter.cpp.obj -MF src/lib/mixer/CMakeFiles/mixer.dir/mixer_helicopter.cpp.obj.d -o src/lib/mixer/CMakeFiles/mixer.dir/mixer_helicopter.cpp.obj -c ../../src/lib/mixer/mixer_helicopter.cpp
In file included from NuttX/nuttx/include/math.h:52:0,
from NuttX/nuttx/include/cxx/cmath:46,
from ../../src/platforms/px4_defines.h:67,
from ../../src/drivers/drv_mixer.h:56,
from ../../src/lib/mixer/mixer.h:132,
from ../../src/lib/mixer/mixer_helicopter.cpp:40:
NuttX/nuttx/include/arch/math.h:87:20: error: expected initializer before '_PARAMS'
extern double atan _PARAMS((double));
^~~~~~~
compilation terminated due to -Wfatal-errors.
[17/193] Building CXX object src/lib/mixer/CMakeFiles/mixer.dir/mixer_group.cpp.obj
FAILED: src/lib/mixer/CMakeFiles/mixer.dir/mixer_group.cpp.obj
/usr/local/bin/arm-none-eabi-g++ -DCONFIG_ARCH_BOARD_PX4IO_V2 -D__DF_NUTTX -D__PX4_NUTTX -D__STDC_FORMAT_MACROS -I. -Isrc -Isrc/lib -Isrc/modules -I../../src -I../../src/drivers/boards/px4io-v2 -I../../src/include -I../../src/lib -I../../src/lib/DriverFramework/framework/include -I../../src/lib/matrix -I../../src/modules -I../../src/platforms -INuttX/nuttx/arch/arm/src/armv7-m -INuttX/nuttx/arch/arm/src/chip -INuttX/nuttx/arch/arm/src/common -INuttX/apps/include -Iexternal/Install/include -Isrc/lib/mixer -isystem NuttX/nuttx/include/cxx -isystem NuttX/nuttx/include -fno-common -ffunction-sections -fdata-sections -mcpu=cortex-m3 -mthumb -march=armv7-m -fno-common -ffunction-sections -fdata-sections -g -fno-exceptions -fno-rtti -std=gnu++11 -fno-threadsafe-statics -DCONFIG_WCHAR_BUILTIN -D__CUSTOM_FILE_IO__ -fcheck-new -Wall -Warray-bounds -Wdisabled-optimization -Werror -Wextra -Wfatal-errors -Wfloat-equal -Wformat-security -Winit-self -Wlogical-op -Wmissing-declarations -Wmissing-field-initializers -Wpointer-arith -Wshadow -Wuninitialized -Wunknown-pragmas -Wunused-variable -Wno-implicit-fallthrough -Wno-unused-parameter -Wunused-but-set-variable -Wformat=1 -Wdouble-promotion -Wno-missing-field-initializers -Wno-overloaded-virtual -Wreorder -Wno-format-truncation -fvisibility=hidden -include visibility.h -fno-strict-aliasing -fomit-frame-pointer -fno-math-errno -funsafe-math-optimizations -ffunction-sections -fdata-sections -fno-strength-reduce -fno-builtin-printf -Os -DNDEBUG -MD -MT src/lib/mixer/CMakeFiles/mixer.dir/mixer_group.cpp.obj -MF src/lib/mixer/CMakeFiles/mixer.dir/mixer_group.cpp.obj.d -o src/lib/mixer/CMakeFiles/mixer.dir/mixer_group.cpp.obj -c ../../src/lib/mixer/mixer_group.cpp
In file included from NuttX/nuttx/include/math.h:52:0,
from ../../src/lib/mixer/mixer_group.cpp:51:
NuttX/nuttx/include/arch/math.h:87:20: error: expected initializer before '_PARAMS'
extern double atan _PARAMS((double));
^~~~~~~
compilation terminated due to -Wfatal-errors.
[19/193] Building CXX object src/lib/mixer/CMakeFiles/mixer.dir/mixer.cpp.obj
FAILED: src/lib/mixer/CMakeFiles/mixer.dir/mixer.cpp.obj
/usr/local/bin/arm-none-eabi-g++ -DCONFIG_ARCH_BOARD_PX4IO_V2 -D__DF_NUTTX -D__PX4_NUTTX -D__STDC_FORMAT_MACROS -I. -Isrc -Isrc/lib -Isrc/modules -I../../src -I../../src/drivers/boards/px4io-v2 -I../../src/include -I../../src/lib -I../../src/lib/DriverFramework/framework/include -I../../src/lib/matrix -I../../src/modules -I../../src/platforms -INuttX/nuttx/arch/arm/src/armv7-m -INuttX/nuttx/arch/arm/src/chip -INuttX/nuttx/arch/arm/src/common -INuttX/apps/include -Iexternal/Install/include -Isrc/lib/mixer -isystem NuttX/nuttx/include/cxx -isystem NuttX/nuttx/include -fno-common -ffunction-sections -fdata-sections -mcpu=cortex-m3 -mthumb -march=armv7-m -fno-common -ffunction-sections -fdata-sections -g -fno-exceptions -fno-rtti -std=gnu++11 -fno-threadsafe-statics -DCONFIG_WCHAR_BUILTIN -D__CUSTOM_FILE_IO__ -fcheck-new -Wall -Warray-bounds -Wdisabled-optimization -Werror -Wextra -Wfatal-errors -Wfloat-equal -Wformat-security -Winit-self -Wlogical-op -Wmissing-declarations -Wmissing-field-initializers -Wpointer-arith -Wshadow -Wuninitialized -Wunknown-pragmas -Wunused-variable -Wno-implicit-fallthrough -Wno-unused-parameter -Wunused-but-set-variable -Wformat=1 -Wdouble-promotion -Wno-missing-field-initializers -Wno-overloaded-virtual -Wreorder -Wno-format-truncation -fvisibility=hidden -include visibility.h -fno-strict-aliasing -fomit-frame-pointer -fno-math-errno -funsafe-math-optimizations -ffunction-sections -fdata-sections -fno-strength-reduce -fno-builtin-printf -Os -DNDEBUG -MD -MT src/lib/mixer/CMakeFiles/mixer.dir/mixer.cpp.obj -MF src/lib/mixer/CMakeFiles/mixer.dir/mixer.cpp.obj.d -o src/lib/mixer/CMakeFiles/mixer.dir/mixer.cpp.obj -c ../../src/lib/mixer/mixer.cpp
In file included from NuttX/nuttx/include/math.h:52:0,
from NuttX/nuttx/include/cxx/cmath:46,
from ../../src/platforms/px4_defines.h:67,
from ../../src/drivers/drv_mixer.h:56,
from ../../src/lib/mixer/mixer.h:132,
from ../../src/lib/mixer/mixer.cpp:40:
NuttX/nuttx/include/arch/math.h:87:20: error: expected initializer before '_PARAMS'
extern double atan _PARAMS((double));
^~~~~~~
compilation terminated due to -Wfatal-errors.
[21/193] Building CXX object src/lib/mixer/CMakeFiles/mixer.dir/mixer_simple.cpp.obj
FAILED: src/lib/mixer/CMakeFiles/mixer.dir/mixer_simple.cpp.obj
/usr/local/bin/arm-none-eabi-g++ -DCONFIG_ARCH_BOARD_PX4IO_V2 -D__DF_NUTTX -D__PX4_NUTTX -D__STDC_FORMAT_MACROS -I. -Isrc -Isrc/lib -Isrc/modules -I../../src -I../../src/drivers/boards/px4io-v2 -I../../src/include -I../../src/lib -I../../src/lib/DriverFramework/framework/include -I../../src/lib/matrix -I../../src/modules -I../../src/platforms -INuttX/nuttx/arch/arm/src/armv7-m -INuttX/nuttx/arch/arm/src/chip -INuttX/nuttx/arch/arm/src/common -INuttX/apps/include -Iexternal/Install/include -Isrc/lib/mixer -isystem NuttX/nuttx/include/cxx -isystem NuttX/nuttx/include -fno-common -ffunction-sections -fdata-sections -mcpu=cortex-m3 -mthumb -march=armv7-m -fno-common -ffunction-sections -fdata-sections -g -fno-exceptions -fno-rtti -std=gnu++11 -fno-threadsafe-statics -DCONFIG_WCHAR_BUILTIN -D__CUSTOM_FILE_IO__ -fcheck-new -Wall -Warray-bounds -Wdisabled-optimization -Werror -Wextra -Wfatal-errors -Wfloat-equal -Wformat-security -Winit-self -Wlogical-op -Wmissing-declarations -Wmissing-field-initializers -Wpointer-arith -Wshadow -Wuninitialized -Wunknown-pragmas -Wunused-variable -Wno-implicit-fallthrough -Wno-unused-parameter -Wunused-but-set-variable -Wformat=1 -Wdouble-promotion -Wno-missing-field-initializers -Wno-overloaded-virtual -Wreorder -Wno-format-truncation -fvisibility=hidden -include visibility.h -fno-strict-aliasing -fomit-frame-pointer -fno-math-errno -funsafe-math-optimizations -ffunction-sections -fdata-sections -fno-strength-reduce -fno-builtin-printf -Os -DNDEBUG -MD -MT src/lib/mixer/CMakeFiles/mixer.dir/mixer_simple.cpp.obj -MF src/lib/mixer/CMakeFiles/mixer.dir/mixer_simple.cpp.obj.d -o src/lib/mixer/CMakeFiles/mixer.dir/mixer_simple.cpp.obj -c ../../src/lib/mixer/mixer_simple.cpp
In file included from NuttX/nuttx/include/math.h:52:0,
from NuttX/nuttx/include/cxx/cmath:46,
from ../../src/platforms/px4_defines.h:67,
from ../../src/drivers/drv_mixer.h:56,
from ../../src/lib/mixer/mixer.h:132,
from ../../src/lib/mixer/mixer_simple.cpp:40:
NuttX/nuttx/include/arch/math.h:87:20: error: expected initializer before '_PARAMS'
extern double atan _PARAMS((double));
^~~~~~~
compilation terminated due to -Wfatal-errors.
[22/193] Building CXX object src/lib/mixer/CMakeFiles/mixer.dir/mixer_multirotor.cpp.obj
FAILED: src/lib/mixer/CMakeFiles/mixer.dir/mixer_multirotor.cpp.obj
/usr/local/bin/arm-none-eabi-g++ -DCONFIG_ARCH_BOARD_PX4IO_V2 -D__DF_NUTTX -D__PX4_NUTTX -D__STDC_FORMAT_MACROS -I. -Isrc -Isrc/lib -Isrc/modules -I../../src -I../../src/drivers/boards/px4io-v2 -I../../src/include -I../../src/lib -I../../src/lib/DriverFramework/framework/include -I../../src/lib/matrix -I../../src/modules -I../../src/platforms -INuttX/nuttx/arch/arm/src/armv7-m -INuttX/nuttx/arch/arm/src/chip -INuttX/nuttx/arch/arm/src/common -INuttX/apps/include -Iexternal/Install/include -Isrc/lib/mixer -isystem NuttX/nuttx/include/cxx -isystem NuttX/nuttx/include -fno-common -ffunction-sections -fdata-sections -mcpu=cortex-m3 -mthumb -march=armv7-m -fno-common -ffunction-sections -fdata-sections -g -fno-exceptions -fno-rtti -std=gnu++11 -fno-threadsafe-statics -DCONFIG_WCHAR_BUILTIN -D__CUSTOM_FILE_IO__ -fcheck-new -Wall -Warray-bounds -Wdisabled-optimization -Werror -Wextra -Wfatal-errors -Wfloat-equal -Wformat-security -Winit-self -Wlogical-op -Wmissing-declarations -Wmissing-field-initializers -Wpointer-arith -Wshadow -Wuninitialized -Wunknown-pragmas -Wunused-variable -Wno-implicit-fallthrough -Wno-unused-parameter -Wunused-but-set-variable -Wformat=1 -Wdouble-promotion -Wno-missing-field-initializers -Wno-overloaded-virtual -Wreorder -Wno-format-truncation -fvisibility=hidden -include visibility.h -fno-strict-aliasing -fomit-frame-pointer -fno-math-errno -funsafe-math-optimizations -ffunction-sections -fdata-sections -fno-strength-reduce -fno-builtin-printf -Os -DNDEBUG -MD -MT src/lib/mixer/CMakeFiles/mixer.dir/mixer_multirotor.cpp.obj -MF src/lib/mixer/CMakeFiles/mixer.dir/mixer_multirotor.cpp.obj.d -o src/lib/mixer/CMakeFiles/mixer.dir/mixer_multirotor.cpp.obj -c ../../src/lib/mixer/mixer_multirotor.cpp
In file included from NuttX/nuttx/include/math.h:52:0,
from NuttX/nuttx/include/cxx/cmath:46,
from ../../src/platforms/px4_defines.h:67,
from ../../src/drivers/drv_mixer.h:56,
from ../../src/lib/mixer/mixer.h:132,
from ../../src/lib/mixer/mixer_multirotor.cpp:40:
NuttX/nuttx/include/arch/math.h:87:20: error: expected initializer before '_PARAMS'
extern double atan _PARAMS((double));
^~~~~~~
compilation terminated due to -Wfatal-errors.
[25/193] Generating uORB topic sources
ninja: build stopped: subcommand failed.
make[1]: *** [nuttx_px4io-v2_default] Error 1
[19/998] Building CXX object src/lib/ecl/attitude_fw/CMakeFiles/ecl_attitude_fw.dir/ecl_controller.cpp.obj
FAILED: src/lib/ecl/attitude_fw/CMakeFiles/ecl_attitude_fw.dir/ecl_controller.cpp.obj
/usr/local/bin/arm-none-eabi-g++ -DCONFIG_ARCH_BOARD_PX4FMU_V2 -DMODULE_NAME=\"ecl/attitude_fw\" -D__DF_NUTTX -D__PX4_NUTTX -D__STDC_FORMAT_MACROS -I. -Isrc -Isrc/lib -Isrc/modules -I../../src -I../../src/drivers/boards/px4fmu-v2 -I../../src/include -I../../src/lib -I../../src/lib/DriverFramework/framework/include -I../../src/lib/matrix -I../../src/modules -I../../src/platforms -INuttX/nuttx/arch/arm/src/armv7-m -INuttX/nuttx/arch/arm/src/chip -INuttX/nuttx/arch/arm/src/common -INuttX/apps/include -Iexternal/Install/include -I../../src/lib/ecl -isystem NuttX/nuttx/include/cxx -isystem NuttX/nuttx/include -fno-common -ffunction-sections -fdata-sections -mcpu=cortex-m4 -mthumb -march=armv7e-m -mfpu=fpv4-sp-d16 -mfloat-abi=hard -fno-common -ffunction-sections -fdata-sections -g -fno-exceptions -fno-rtti -std=gnu++11 -fno-threadsafe-statics -DCONFIG_WCHAR_BUILTIN -D__CUSTOM_FILE_IO__ -fcheck-new -Wall -Warray-bounds -Wdisabled-optimization -Werror -Wextra -Wfatal-errors -Wfloat-equal -Wformat-security -Winit-self -Wlogical-op -Wmissing-declarations -Wmissing-field-initializers -Wpointer-arith -Wshadow -Wuninitialized -Wunknown-pragmas -Wunused-variable -Wno-implicit-fallthrough -Wno-unused-parameter -Wunused-but-set-variable -Wformat=1 -Wdouble-promotion -Wno-missing-field-initializers -Wno-overloaded-virtual -Wreorder -Wno-format-truncation -fvisibility=hidden -include visibility.h -fno-strict-aliasing -fomit-frame-pointer -fno-math-errno -funsafe-math-optimizations -ffunction-sections -fdata-sections -fno-strength-reduce -fno-builtin-printf -Os -DNDEBUG -MD -MT src/lib/ecl/attitude_fw/CMakeFiles/ecl_attitude_fw.dir/ecl_controller.cpp.obj -MF src/lib/ecl/attitude_fw/CMakeFiles/ecl_attitude_fw.dir/ecl_controller.cpp.obj.d -o src/lib/ecl/attitude_fw/CMakeFiles/ecl_attitude_fw.dir/ecl_controller.cpp.obj -c ../../src/lib/ecl/attitude_fw/ecl_controller.cpp
In file included from NuttX/nuttx/include/math.h:52:0,
from NuttX/nuttx/include/cxx/cmath:46,
from ../../src/platforms/px4_defines.h:67,
from ../../src/platforms/px4_log.h:136,
from ../../src/lib/ecl/ecl.h:44,
from ../../src/lib/ecl/attitude_fw/ecl_controller.h:51,
from ../../src/lib/ecl/attitude_fw/ecl_controller.cpp:49:
NuttX/nuttx/include/arch/math.h:87:20: error: expected initializer before '_PARAMS'
extern double atan _PARAMS((double));
^~~~~~~
compilation terminated due to -Wfatal-errors.
[20/998] Building CXX object src/lib/ecl/attitude_fw/CMakeFiles/ecl_attitude_fw.dir/ecl_roll_controller.cpp.obj
FAILED: src/lib/ecl/attitude_fw/CMakeFiles/ecl_attitude_fw.dir/ecl_roll_controller.cpp.obj
/usr/local/bin/arm-none-eabi-g++ -DCONFIG_ARCH_BOARD_PX4FMU_V2 -DMODULE_NAME=\"ecl/attitude_fw\" -D__DF_NUTTX -D__PX4_NUTTX -D__STDC_FORMAT_MACROS -I. -Isrc -Isrc/lib -Isrc/modules -I../../src -I../../src/drivers/boards/px4fmu-v2 -I../../src/include -I../../src/lib -I../../src/lib/DriverFramework/framework/include -I../../src/lib/matrix -I../../src/modules -I../../src/platforms -INuttX/nuttx/arch/arm/src/armv7-m -INuttX/nuttx/arch/arm/src/chip -INuttX/nuttx/arch/arm/src/common -INuttX/apps/include -Iexternal/Install/include -I../../src/lib/ecl -isystem NuttX/nuttx/include/cxx -isystem NuttX/nuttx/include -fno-common -ffunction-sections -fdata-sections -mcpu=cortex-m4 -mthumb -march=armv7e-m -mfpu=fpv4-sp-d16 -mfloat-abi=hard -fno-common -ffunction-sections -fdata-sections -g -fno-exceptions -fno-rtti -std=gnu++11 -fno-threadsafe-statics -DCONFIG_WCHAR_BUILTIN -D__CUSTOM_FILE_IO__ -fcheck-new -Wall -Warray-bounds -Wdisabled-optimization -Werror -Wextra -Wfatal-errors -Wfloat-equal -Wformat-security -Winit-self -Wlogical-op -Wmissing-declarations -Wmissing-field-initializers -Wpointer-arith -Wshadow -Wuninitialized -Wunknown-pragmas -Wunused-variable -Wno-implicit-fallthrough -Wno-unused-parameter -Wunused-but-set-variable -Wformat=1 -Wdouble-promotion -Wno-missing-field-initializers -Wno-overloaded-virtual -Wreorder -Wno-format-truncation -fvisibility=hidden -include visibility.h -fno-strict-aliasing -fomit-frame-pointer -fno-math-errno -funsafe-math-optimizations -ffunction-sections -fdata-sections -fno-strength-reduce -fno-builtin-printf -Os -DNDEBUG -MD -MT src/lib/ecl/attitude_fw/CMakeFiles/ecl_attitude_fw.dir/ecl_roll_controller.cpp.obj -MF src/lib/ecl/attitude_fw/CMakeFiles/ecl_attitude_fw.dir/ecl_roll_controller.cpp.obj.d -o src/lib/ecl/attitude_fw/CMakeFiles/ecl_attitude_fw.dir/ecl_roll_controller.cpp.obj -c ../../src/lib/ecl/attitude_fw/ecl_roll_controller.cpp
In file included from NuttX/nuttx/include/math.h:52:0,
from NuttX/nuttx/include/cxx/cmath:46,
from ../../src/platforms/px4_defines.h:67,
from ../../src/platforms/px4_log.h:136,
from ../../src/lib/ecl/ecl.h:44,
from ../../src/lib/ecl/attitude_fw/ecl_controller.h:51,
from ../../src/lib/ecl/attitude_fw/ecl_roll_controller.h:52,
from ../../src/lib/ecl/attitude_fw/ecl_roll_controller.cpp:41:
NuttX/nuttx/include/arch/math.h:87:20: error: expected initializer before '_PARAMS'
extern double atan _PARAMS((double));
^~~~~~~
compilation terminated due to -Wfatal-errors.
[21/998] Building CXX object src/lib/ecl/airdata/CMakeFiles/ecl_airdata.dir/WindEstimator.cpp.obj
FAILED: src/lib/ecl/airdata/CMakeFiles/ecl_airdata.dir/WindEstimator.cpp.obj
/usr/local/bin/arm-none-eabi-g++ -DCONFIG_ARCH_BOARD_PX4FMU_V2 -DMODULE_NAME=\"ecl/airdata\" -D__DF_NUTTX -D__PX4_NUTTX -D__STDC_FORMAT_MACROS -I. -Isrc -Isrc/lib -Isrc/modules -I../../src -I../../src/drivers/boards/px4fmu-v2 -I../../src/include -I../../src/lib -I../../src/lib/DriverFramework/framework/include -I../../src/lib/matrix -I../../src/modules -I../../src/platforms -INuttX/nuttx/arch/arm/src/armv7-m -INuttX/nuttx/arch/arm/src/chip -INuttX/nuttx/arch/arm/src/common -INuttX/apps/include -Iexternal/Install/include -I../../src/lib/ecl -isystem NuttX/nuttx/include/cxx -isystem NuttX/nuttx/include -fno-common -ffunction-sections -fdata-sections -mcpu=cortex-m4 -mthumb -march=armv7e-m -mfpu=fpv4-sp-d16 -mfloat-abi=hard -fno-common -ffunction-sections -fdata-sections -g -fno-exceptions -fno-rtti -std=gnu++11 -fno-threadsafe-statics -DCONFIG_WCHAR_BUILTIN -D__CUSTOM_FILE_IO__ -fcheck-new -Wall -Warray-bounds -Wdisabled-optimization -Werror -Wextra -Wfatal-errors -Wfloat-equal -Wformat-security -Winit-self -Wlogical-op -Wmissing-declarations -Wmissing-field-initializers -Wpointer-arith -Wshadow -Wuninitialized -Wunknown-pragmas -Wunused-variable -Wno-implicit-fallthrough -Wno-unused-parameter -Wunused-but-set-variable -Wformat=1 -Wdouble-promotion -Wno-missing-field-initializers -Wno-overloaded-virtual -Wreorder -Wno-format-truncation -fvisibility=hidden -include visibility.h -fno-strict-aliasing -fomit-frame-pointer -fno-math-errno -funsafe-math-optimizations -ffunction-sections -fdata-sections -fno-strength-reduce -fno-builtin-printf -Os -DNDEBUG -MD -MT src/lib/ecl/airdata/CMakeFiles/ecl_airdata.dir/WindEstimator.cpp.obj -MF src/lib/ecl/airdata/CMakeFiles/ecl_airdata.dir/WindEstimator.cpp.obj.d -o src/lib/ecl/airdata/CMakeFiles/ecl_airdata.dir/WindEstimator.cpp.obj -c ../../src/lib/ecl/airdata/WindEstimator.cpp
In file included from NuttX/nuttx/include/math.h:52:0,
from NuttX/nuttx/include/cxx/cmath:46,
from ../../src/platforms/px4_defines.h:67,
from ../../src/platforms/px4_log.h:136,
from ../../src/lib/ecl/ecl.h:44,
from ../../src/lib/ecl/airdata/WindEstimator.hpp:41,
from ../../src/lib/ecl/airdata/WindEstimator.cpp:39:
NuttX/nuttx/include/arch/math.h:87:20: error: expected initializer before '_PARAMS'
extern double atan _PARAMS((double));
^~~~~~~
compilation terminated due to -Wfatal-errors.
[27/998] Generating uORB topic sources
FAILED: ../nuttx_px4io-v2_default/nuttx_px4io-v2_default.elf
cd /Users/dlw/Workspace/PX4/Firmware && make --no-print-directory nuttx_px4io-v2_default
ninja: build stopped: subcommand failed.
make: *** [px4fmu-v3_default] Error 1
The text was updated successfully, but these errors were encountered:
I get the following error when trying to build from stable branch for the px4fmu-v3_default. I have no problem building from master, though.
The text was updated successfully, but these errors were encountered: