with test enabled, it fails compilation with cmake 3.22.0 while succeeds with cmake 3.21.4. In file included from /var/tmp/portage/sci-electronics/gazebo-11.7.0-r1/work/gazebo-11.7.0/gazebo/common/Plugin.hh:41, from /var/tmp/portage/sci-electronics/gazebo-11.7.0-r1/work/gazebo-11.7.0/gazebo/common/Plugin_TEST.cc:18: /var/tmp/portage/sci-electronics/gazebo-11.7.0-r1/work/gazebo-11.7.0/gazebo/physics/PhysicsTypes.hh:26:10: fatal error: gazebo/msgs/poses_stamped.pb.h: No such file or directory 26 | #include "gazebo/msgs/poses_stamped.pb.h" gazebo/msgs/*.pb.h is generated by protoc from *.proto as specified in gazebo/msgs/CMakeLists.txt. But seems like gazebo/common gets compiled before it is generated.
Created attachment 757162 [details] build log
Created attachment 757163 [details] emerge --info
ci has reproduced this issue with version 11.7.0-r2 - Updating summary.
ci has reproduced this issue with version 11.9.1 - Updating summary.
Needs to be reported upstream, I think.
from this commit https://github.com/osrf/gazebo/commit/1754f15e49a56237b9ffa7a7c146c5b338945b0f , it seems upstream does not recommend compiling tests and the default all target in the same time by enabling ENABLE_TESTS_COMPILATION. But I am not sure about using BUILD_TESTING. The upstream ci script build with make all -> make tests -> make test/ ctest. I removed BUILD_TESTING and add > src_compile() { > cmake_src_compile > use test && cmake_src_compile tests > } This compiles and runs the tests.
ci has reproduced this issue with version 11.9.1-r1 - Updating summary.
ci has reproduced this issue with version 11.10.1 - Updating summary.
ci has reproduced this issue with version 11.10.2 - Updating summary.
ci has reproduced this issue with version 11.11.0 - Updating summary.
ci has reproduced this issue with version 11.12.0 - Updating summary.