Skip to content

Conversation

@mqcmd196
Copy link
Member

@mqcmd196 mqcmd196 commented Apr 9, 2025

Fix the compile error in jammy

Errors     << jsk_robot_startup:make /home/obinata/ros/catkin_ws/logs/jsk_robot_startup/build.make.003.log
In file included from /usr/include/log4cxx/log4cxx.h:45,
                 from /usr/include/log4cxx/logstring.h:28,
                 from /usr/include/log4cxx/level.h:22,
                 from /opt/ros/one/include/ros/console.h:46,
                 from /opt/ros/one/include/ros/ros.h:40,
                 from /home/obinata/ros/catkin_ws/build/jsk_robot_startup/JSK_NODELET_jsk_robot_startup_lightweight_logger.cpp:35:
/usr/include/log4cxx/boost-std-configuration.h:10:18: error: ‘shared_mutex’ in namespace ‘std’ does not name a type
   10 |     typedef std::shared_mutex shared_mutex;
      |                  ^~~~~~~~~~~~
/usr/include/log4cxx/boost-std-configuration.h:10:13: note: ‘std::shared_mutex’ is only available from C++17 onwards
   10 |     typedef std::shared_mutex shared_mutex;
      |             ^~~
/usr/include/log4cxx/boost-std-configuration.h:12:30: error: ‘shared_lock’ in namespace ‘std’ does not name a template type
   12 |     using shared_lock = std::shared_lock<T>;
      |                              ^~~~~~~~~~~
/usr/include/log4cxx/boost-std-configuration.h:12:25: note: ‘std::shared_lock’ is only available from C++14 onwards
   12 |     using shared_lock = std::shared_lock<T>;
      |                         ^~~
In file included from /usr/include/log4cxx/log4cxx.h:45,
                 from /usr/include/log4cxx/logstring.h:28,
                 from /usr/include/log4cxx/level.h:22,
                 from /opt/ros/one/include/ros/console.h:46,
                 from /opt/ros/one/include/ros/ros.h:40,
                 from /home/obinata/ros/catkin_ws/src/jsk-ros-pkg/jsk_robot/jsk_robot_common/jsk_robot_startup/src/quadruped_joystick_teleop.cpp:1:
/usr/include/log4cxx/boost-std-configuration.h:10:18: error: ‘shared_mutex’ in namespace ‘std’ does not name a type
   10 |     typedef std::shared_mutex shared_mutex;
      |                  ^~~~~~~~~~~~
/usr/include/log4cxx/boost-std-configuration.h:10:13: note: ‘std::shared_mutex’ is only available from C++17 onwards
   10 |     typedef std::shared_mutex shared_mutex;
      |             ^~~
/usr/include/log4cxx/boost-std-configuration.h:12:30: error: ‘shared_lock’ in namespace ‘std’ does not name a template type
   12 |     using shared_lock = std::shared_lock<T>;
      |                              ^~~~~~~~~~~
/usr/include/log4cxx/boost-std-configuration.h:12:25: note: ‘std::shared_lock’ is only available from C++14 onwards
   12 |     using shared_lock = std::shared_lock<T>;
      |                         ^~~
In file included from /usr/include/log4cxx/log4cxx.h:45,
                 from /usr/include/log4cxx/logstring.h:28,
                 from /usr/include/log4cxx/level.h:22,
                 from /opt/ros/one/include/ros/console.h:46,
                 from /opt/ros/one/include/ros/ros.h:40,
                 from /home/obinata/ros/catkin_ws/src/jsk-ros-pkg/jsk_robot/jsk_robot_common/jsk_robot_startup/src/joint_states_throttle_node.cpp:45:
/usr/include/log4cxx/boost-std-configuration.h:10:18: error: ‘shared_mutex’ in namespace ‘std’ does not name a type
   10 |     typedef std::shared_mutex shared_mutex;
      |                  ^~~~~~~~~~~~
/usr/include/log4cxx/boost-std-configuration.h:10:13: note: ‘std::shared_mutex’ is only available from C++17 onwards
   10 |     typedef std::shared_mutex shared_mutex;
      |             ^~~
/usr/include/log4cxx/boost-std-configuration.h:12:30: error: ‘shared_lock’ in namespace ‘std’ does not name a template type
   12 |     using shared_lock = std::shared_lock<T>;
      |                              ^~~~~~~~~~~
/usr/include/log4cxx/boost-std-configuration.h:12:25: note: ‘std::shared_lock’ is only available from C++14 onwards
   12 |     using shared_lock = std::shared_lock<T>;
      |                         ^~~
make[2]: *** [CMakeFiles/JSK_NODELET_jsk_robot_startup_lightweight_logger.dir/build.make:76: CMakeFiles/JSK_NODELET_jsk_robot_startup_lightweight_logger.dir/JSK_NODELET_jsk_robot_startup_lightweight_logger.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:2489: CMakeFiles/JSK_NODELET_jsk_robot_startup_lightweight_logger.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
make[2]: *** [CMakeFiles/quadruped_joystick_teleop.dir/build.make:76: CMakeFiles/quadruped_joystick_teleop.dir/src/quadruped_joystick_teleop.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:2570: CMakeFiles/quadruped_joystick_teleop.dir/all] Error 2
In file included from /usr/include/log4cxx/log4cxx.h:45,
                 from /usr/include/log4cxx/logstring.h:28,
                 from /usr/include/log4cxx/level.h:22,
                 from /opt/ros/one/include/ros/console.h:46,
                 from /opt/ros/one/include/ros/ros.h:40,
                 from /opt/ros/one/include/mongodb_store/message_store.h:4,
                 from /home/obinata/ros/catkin_ws/src/jsk-ros-pkg/jsk_robot/jsk_robot_common/jsk_robot_startup/include/jsk_robot_startup/message_store_singleton.h:45,
                 from /home/obinata/ros/catkin_ws/src/jsk-ros-pkg/jsk_robot/jsk_robot_common/jsk_robot_startup/src/message_store_singleton.cpp:40:
/usr/include/log4cxx/boost-std-configuration.h:10:18: error: ‘shared_mutex’ in namespace ‘std’ does not name a type
   10 |     typedef std::shared_mutex shared_mutex;
      |                  ^~~~~~~~~~~~
/usr/include/log4cxx/boost-std-configuration.h:10:13: note: ‘std::shared_mutex’ is only available from C++17 onwards
   10 |     typedef std::shared_mutex shared_mutex;
      |             ^~~
/usr/include/log4cxx/boost-std-configuration.h:12:30: error: ‘shared_lock’ in namespace ‘std’ does not name a template type
   12 |     using shared_lock = std::shared_lock<T>;
      |                              ^~~~~~~~~~~
/usr/include/log4cxx/boost-std-configuration.h:12:25: note: ‘std::shared_lock’ is only available from C++14 onwards
   12 |     using shared_lock = std::shared_lock<T>;
      |                         ^~~
In file included from /home/obinata/ros/catkin_ws/src/jsk-ros-pkg/jsk_robot/jsk_robot_common/jsk_robot_startup/src/message_store_singleton.cpp:40:
/home/obinata/ros/catkin_ws/src/jsk-ros-pkg/jsk_robot/jsk_robot_common/jsk_robot_startup/include/jsk_robot_startup/message_store_singleton.h: In member function ‘jsk_robot_startup::lifelog::MessageStoreSingleton& jsk_robot_startup::lifelog::MessageStoreSingleton::operator=(const jsk_robot_startup::lifelog::MessageStoreSingleton&)’:
/home/obinata/ros/catkin_ws/src/jsk-ros-pkg/jsk_robot/jsk_robot_common/jsk_robot_startup/include/jsk_robot_startup/message_store_singleton.h:68:67: warning: no return statement in function returning non-void [-Wreturn-type]
   68 |   MessageStoreSingleton& operator=(MessageStoreSingleton const&) {};
      |                                                                   ^
      |                                                                   return *this;
In file included from /usr/include/log4cxx/log4cxx.h:45,
                 from /usr/include/log4cxx/logstring.h:28,
                 from /usr/include/log4cxx/level.h:22,
                 from /opt/ros/one/include/ros/console.h:46,
                 from /opt/ros/one/include/ros/assert.h:35,
                 from /opt/ros/one/include/ros/common.h:36,
                 from /opt/ros/one/include/ros/publisher.h:32,
                 from /opt/ros/one/include/ros/node_handle.h:32,
                 from /opt/ros/one/include/diagnostic_updater/diagnostic_updater.h:42,
                 from /home/obinata/ros/catkin_ws/src/jsk-ros-pkg/jsk_robot/jsk_robot_common/jsk_robot_startup/include/jsk_robot_startup/lightweight_logger.h:46,
                 from /home/obinata/ros/catkin_ws/src/jsk-ros-pkg/jsk_robot/jsk_robot_common/jsk_robot_startup/src/lightweight_logger_nodelet.cpp:40:
/usr/include/log4cxx/boost-std-configuration.h:10:18: error: ‘shared_mutex’ in namespace ‘std’ does not name a type
   10 |     typedef std::shared_mutex shared_mutex;
      |                  ^~~~~~~~~~~~
/usr/include/log4cxx/boost-std-configuration.h:10:13: note: ‘std::shared_mutex’ is only available from C++17 onwards
   10 |     typedef std::shared_mutex shared_mutex;
      |             ^~~
/usr/include/log4cxx/boost-std-configuration.h:12:30: error: ‘shared_lock’ in namespace ‘std’ does not name a template type
   12 |     using shared_lock = std::shared_lock<T>;
      |                              ^~~~~~~~~~~
/usr/include/log4cxx/boost-std-configuration.h:12:25: note: ‘std::shared_lock’ is only available from C++14 onwards
   12 |     using shared_lock = std::shared_lock<T>;
      |                         ^~~
make[2]: *** [CMakeFiles/joint_states_throttle.dir/build.make:76: CMakeFiles/joint_states_throttle.dir/src/joint_states_throttle_node.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:2543: CMakeFiles/joint_states_throttle.dir/all] Error 2
make[2]: *** [CMakeFiles/jsk_robot_lifelog.dir/build.make:90: CMakeFiles/jsk_robot_lifelog.dir/src/message_store_singleton.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [CMakeFiles/jsk_robot_lifelog.dir/build.make:76: CMakeFiles/jsk_robot_lifelog.dir/src/lightweight_logger_nodelet.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:2516: CMakeFiles/jsk_robot_lifelog.dir/all] Error 2
make: *** [Makefile:146: all] Error 2
cd /home/obinata/ros/catkin_ws/build/jsk_robot_startup; catkin build --get-env jsk_robot_startup | catkin env -si  /usr/bin/make --jobserver-auth=3,4; cd -

................................................................................................................................................................................................
Failed     << jsk_robot_startup:make                   [ Exited with code 2 ]
Failed    <<< jsk_robot_startup                        [ 11.5 seconds ]

Cc: @Michi-Tsubaki

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant