Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Failed to build SITL #24370

Open
edu-rossrobotics opened this issue Feb 19, 2025 · 1 comment
Open

[Bug] Failed to build SITL #24370

edu-rossrobotics opened this issue Feb 19, 2025 · 1 comment

Comments

@edu-rossrobotics
Copy link

Describe the bug

Hi, I'm trying to build a target to run a SITL simulation but I'm getting the following error:

[14/76] Building CXX object src/modules/simulation/gz_bridge/CMakeFiles/modules__simulation__gz_bridge.dir/GZMixingInterfaceESC.cpp.o
FAILED: src/modules/simulation/gz_bridge/CMakeFiles/modules__simulation__gz_bridge.dir/GZMixingInterfaceESC.cpp.o
/usr/bin/ccache /usr/bin/c++ -DCONFIG_ARCH_BOARD_PX4_SITL -DENABLE_LOCKSTEP_SCHEDULER -DMODULE_NAME=\"gz_bridge\" -DPX4_MAIN=gz_bridge_app_main -D__CUSTOM_FILE_IO__ -D__PX4_LINUX -D__PX4_POSIX -D__STDC_FORMAT_MACROS -Dnoreturn_function="__attribute__((noreturn))" -I/home/edu/siddux-github/PX4-Autopilot/boards/px4/sitl/src -I/home/edu/siddux-github/PX4-Autopilot/platforms/posix/src/px4/common/include -I/home/edu/siddux-github/PX4-Autopilot/build/px4_sitl_default -I/home/edu/siddux-github/PX4-Autopilot/build/px4_sitl_default/src/lib -I/home/edu/siddux-github/PX4-Autopilot/platforms/posix/src/px4/generic/generic/include -I/home/edu/siddux-github/PX4-Autopilot/platforms/common -I/home/edu/siddux-github/PX4-Autopilot/platforms/common/include -I/home/edu/siddux-github/PX4-Autopilot/src -I/home/edu/siddux-github/PX4-Autopilot/src/include -I/home/edu/siddux-github/PX4-Autopilot/src/lib -I/home/edu/siddux-github/PX4-Autopilot/src/lib/matrix -I/home/edu/siddux-github/PX4-Autopilot/src/modules -I/home/edu/siddux-github/PX4-Autopilot/platforms/posix/include -I/home/edu/siddux-github/PX4-Autopilot/build/px4_sitl_default/external/Install/include -isystem /usr/include/gz/transport13 -isystem /home/edu/.local/include -isystem /usr/include/gz/utils2 -isystem /usr/include/gz/msgs10 -isystem /usr/include/gz/math7 -isystem /usr/include/uuid -O2 -g -DNDEBUG -std=gnu++17 -fPIC -g -fdata-sections -ffunction-sections -fomit-frame-pointer -fmerge-all-constants -fno-signed-zeros -fno-trapping-math -freciprocal-math -fno-math-errno -fno-strict-aliasing -fvisibility=hidden -include visibility.h -Wall -Wextra -Werror -Warray-bounds -Wcast-align -Wdisabled-optimization -Wdouble-promotion -Wfatal-errors -Wfloat-equal -Wformat-security -Winit-self -Wlogical-op -Wpointer-arith -Wshadow -Wuninitialized -Wunknown-pragmas -Wunused-variable -Wno-missing-field-initializers -Wno-missing-include-dirs -Wno-unused-parameter -fdiagnostics-color=always -Wno-stringop-truncation -fno-builtin-printf -fno-strength-reduce -Wformat=1 -Wunused-but-set-variable -Wno-format-truncation -fcheck-new -Wreorder -Wno-overloaded-virtual -frtti -fexceptions -O2 -I/usr/include -I/usr/include/uuid -MD -MT src/modules/simulation/gz_bridge/CMakeFiles/modules__simulation__gz_bridge.dir/GZMixingInterfaceESC.cpp.o -MF src/modules/simulation/gz_bridge/CMakeFiles/modules__simulation__gz_bridge.dir/GZMixingInterfaceESC.cpp.o.d -o src/modules/simulation/gz_bridge/CMakeFiles/modules__simulation__gz_bridge.dir/GZMixingInterfaceESC.cpp.o -c /home/edu/siddux-github/PX4-Autopilot/src/modules/simulation/gz_bridge/GZMixingInterfaceESC.cpp
In file included from /usr/include/gz/msgs10/gz/msgs/vector3d.pb.h:12,
                 from /usr/include/gz/msgs10/gz/msgs/convert/Vector3.hh:21,
                 from /usr/include/gz/msgs10/gz/msgs/convert/AxisAlignedBox.hh:20,
                 from /usr/include/gz/msgs10/gz/msgs.hh:23,
                 from /home/edu/siddux-github/PX4-Autopilot/src/modules/simulation/gz_bridge/GZMixingInterfaceESC.hpp:38,
                 from /home/edu/siddux-github/PX4-Autopilot/src/modules/simulation/gz_bridge/GZMixingInterfaceESC.cpp:34:
/usr/include/gz/msgs10/gz/msgs/details/vector3d.pb.h:12:2: error: #error This file was generated by a newer version of protoc which is
   12 | #error This file was generated by a newer version of protoc which is
      |  ^~~~~
compilation terminated due to -Wfatal-errors.

Initially I thought it could be related to the version I had installed for the protobuf-compiler package but after removing it and re-run the setup script for ubuntu I end up with the same issue.

To Reproduce

Using latest main, run the make command:

make px4_sitl gz_x500

Expected behavior

Build without errors

Screenshot / Media

No response

Flight Log

No response

Software Version

Latest main branch

Flight controller

No response

Vehicle type

None

How are the different components wired up (including port information)

No response

Additional context

No response

@tassalor1
Copy link
Contributor

This is known and added here:
#24369 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants