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

error: no type named ‘type’ in ‘struct boost::enable_if<boost::is_integral<double>, void>’ #1651

Open
Michdo93 opened this issue Jul 18, 2020 · 0 comments

Comments

@Michdo93
Copy link

Michdo93 commented Jul 18, 2020

ros melodic on Raspberry Pi 4 Model B with Buster as OS.

(robotcar) pi@robotcar:~/ros_catkin_ws/build_isolated/jsk_topic_tools $ cd /home/pi/ros_catkin_ws/build_isolated/jsk_topic_tools && /opt/ros/melodic/env.sh make -j4
[ 94%] Built target _jsk_topic_tools_generate_messages_check_deps_Update
[ 94%] Built target _jsk_topic_tools_generate_messages_check_deps_List
[ 94%] Built target _jsk_topic_tools_generate_messages_check_deps_ChangeTopic
[ 94%] Built target _jsk_topic_tools_generate_messages_check_deps_TopicInfo
[ 94%] Built target jsk_topic_tools_gencfg
[ 94%] Built target JSK_NODELET_jsk_topic_tools_block
[ 94%] Built target JSK_NODELET_jsk_topic_tools_passthrough
[ 94%] Built target _jsk_topic_tools_generate_messages_check_deps_PassthroughDuration
[ 94%] Built target JSK_NODELET_jsk_topic_tools_mux
[ 94%] Built target JSK_NODELET_jsk_topic_tools_deprecated_relay
[ 94%] Built target transform_merger
[ 94%] Built target JSK_NODELET_jsk_topic_tools_string_relay
[ 94%] Built target JSK_NODELET_jsk_topic_tools_lightweight_throttle
[ 94%] Built target standalone_complexed_nodelet
[ 94%] Built target JSK_NODELET_jsk_topic_tools_relay
[ 94%] Built target JSK_NODELET_jsk_topic_tools_stealth_relay
[ 94%] Built target JSK_NODELET_jsk_topic_tools_snapshot
[ 94%] Built target JSK_NODELET_jsk_topic_tools_hz_measure
[ 94%] Built target JSK_NODELET_jsk_topic_tools_vital_checker
[ 94%] Built target jsk_topic_tools_generate_messages_cpp
[ 94%] Built target JSK_NODELET_jsk_topic_tools_synchronized_throttle
[ 94%] Built target jsk_topic_tools_generate_messages_py
[ 94%] Built target jsk_topic_tools_generate_messages_eus
[ 94%] Built target jsk_topic_tools_generate_messages_lisp
[ 94%] Built target jsk_topic_tools_generate_messages_nodejs
[ 94%] Built target jsk_topic_tools_gencpp
[ 94%] Built target jsk_topic_tools_generate_messages
[ 94%] Building CXX object CMakeFiles/topic_buffer_server.dir/src/topic_buffer_server.cpp.o
CMake Error: Cannot open file for write: /home/pi/ros_catkin_ws/build_isolated/jsk_topic_tools/CMakeFiles/topic_buffer_client.dir/depend.make.tmp
CMake Error: : System Error: Permission denied
Scanning dependencies of target topic_buffer_client
CMake Error: Directory Information file not found
CMake Error: Cannot open file for write: /home/pi/ros_catkin_ws/build_isolated/jsk_topic_tools/CMakeFiles/topic_buffer_client.dir/depend.make.tmp
CMake Error: : System Error: Permission denied
make[2]: *** [CMakeFiles/topic_buffer_client.dir/build.make:135: CMakeFiles/topic_buffer_client.dir/depend] Error 2
make[1]: *** [CMakeFiles/Makefile2:4041: CMakeFiles/topic_buffer_client.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 94%] Built target static_transform_pose_stamped
[ 94%] Built target jsk_topic_tools
/home/pi/ros_catkin_ws/src/jsk_common/jsk_topic_tools/src/topic_buffer_server.cpp: In member function ‘void sub_info_t::periodic_update_topic()’:
/home/pi/ros_catkin_ws/src/jsk_common/jsk_topic_tools/src/topic_buffer_server.cpp:45:85: error: no matching function for call to ‘boost::date_time::subsecond_duration<boost::posix_time::time_duration, 1000>::subsecond_duration(double)’
boost::this_thread::sleep(boost::posix_time::milliseconds(sleep_sec * 1e-6));
^
In file included from /usr/include/boost/date_time/posix_time/posix_time_config.hpp:16,
from /usr/include/boost/date_time/posix_time/posix_time_system.hpp:13,
from /usr/include/boost/date_time/posix_time/ptime.hpp:12,
from /usr/include/boost/date_time/posix_time/posix_time_types.hpp:12,
from /usr/include/boost/thread/thread_time.hpp:11,
from /usr/include/boost/thread/lock_types.hpp:18,
from /usr/include/boost/thread/pthread/thread_data.hpp:12,
from /usr/include/boost/thread/thread_only.hpp:17,
from /usr/include/boost/thread/thread.hpp:12,
from /usr/include/boost/thread.hpp:13,
from /home/pi/ros_catkin_ws/src/jsk_common/jsk_topic_tools/src/topic_buffer_server.cpp:10:
/usr/include/boost/date_time/time_duration.hpp:285:14: note: candidate: ‘template boost::date_time::subsecond_duration<base_duration, frac_of_second>::subsecond_duration(const T&, typename boost::enable_if<boost::is_integral, void>::type*)’
explicit subsecond_duration(T const& ss,
^~~~~~~~~~~~~~~~~~
/usr/include/boost/date_time/time_duration.hpp:285:14: note: template argument deduction/substitution failed:
/usr/include/boost/date_time/time_duration.hpp: In substitution of ‘template boost::date_time::subsecond_duration<boost::posix_time::time_duration, 1000>::subsecond_duration(const T&, typename boost::enable_if<boost::is_integral >::type*) [with T = double]’:
/home/pi/ros_catkin_ws/src/jsk_common/jsk_topic_tools/src/topic_buffer_server.cpp:45:85: required from here
/usr/include/boost/date_time/time_duration.hpp:285:14: error: no type named ‘type’ in ‘struct boost::enable_if<boost::is_integral, void>’
In file included from /usr/include/boost/date_time/posix_time/posix_time_config.hpp:16,
from /usr/include/boost/date_time/posix_time/posix_time_system.hpp:13,
from /usr/include/boost/date_time/posix_time/ptime.hpp:12,
from /usr/include/boost/date_time/posix_time/posix_time_types.hpp:12,
from /usr/include/boost/thread/thread_time.hpp:11,
from /usr/include/boost/thread/lock_types.hpp:18,
from /usr/include/boost/thread/pthread/thread_data.hpp:12,
from /usr/include/boost/thread/thread_only.hpp:17,
from /usr/include/boost/thread/thread.hpp:12,
from /usr/include/boost/thread.hpp:13,
from /home/pi/ros_catkin_ws/src/jsk_common/jsk_topic_tools/src/topic_buffer_server.cpp:10:
/usr/include/boost/date_time/time_duration.hpp:270:30: note: candidate: ‘boost::date_time::subsecond_duration<boost::posix_time::time_duration, 1000>::subsecond_duration(const boost::date_time::subsecond_duration<boost::posix_time::time_duration, 1000>&)’
class BOOST_SYMBOL_VISIBLE subsecond_duration : public base_duration
^~~~~~~~~~~~~~~~~~
/usr/include/boost/date_time/time_duration.hpp:270:30: note: no known conversion for argument 1 from ‘double’ to ‘const boost::date_time::subsecond_duration<boost::posix_time::time_duration, 1000>&’
/usr/include/boost/date_time/time_duration.hpp:270:30: note: candidate: ‘boost::date_time::subsecond_duration<boost::posix_time::time_duration, 1000>::subsecond_duration(boost::date_time::subsecond_duration<boost::posix_time::time_duration, 1000>&&)’
/usr/include/boost/date_time/time_duration.hpp:270:30: note: no known conversion for argument 1 from ‘double’ to ‘boost::date_time::subsecond_duration<boost::posix_time::time_duration, 1000>&&’
make[2]: *** [CMakeFiles/topic_buffer_server.dir/build.make:63: CMakeFiles/topic_buffer_server.dir/src/topic_buffer_server.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:3932: CMakeFiles/topic_buffer_server.dir/all] Error 2
make: *** [Makefile:141: all] Error 2

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

No branches or pull requests

1 participant