Hello list!
Trying to install melodic using the recipe from [http://wiki.ros.org/melodic/Installation/Source](http://wiki.ros.org/melodic/Installation/Source) using current debian/testing/buster.
I only added `--os=debian:buster` to the rosdep command. All three variants fail in the same way.
The catkin_make isolated for the bare bones variant ends in:
<== Finished processing package [8 of 54]: 'cmake_modules'
==> Processing catkin package: 'class_loader'
......
-- Found the following Boost libraries:
-- thread
-- chrono
-- system
-- date_time
-- atomic
CMake Error at /home/sietse/ros_catkin_ws/devel_isolated/class_loader/share/class_loader/cmake/class_loaderConfig.cmake:148 (message):
Project 'class_loader' tried to find library '-lpthread'. The library is
neither a target nor built/installed properly. Did you compile project
'class_loader'? Did you find_package() it before the subdirectory
containing its code is included?
Call Stack (most recent call first):
/home/sietse/ros_catkin_ws/install_isolated/share/catkin/cmake/catkinConfig.cmake:76 (find_package)
test/CMakeLists.txt:4 (find_package)
-- Configuring incomplete, errors occurred!
It seems that is a problem with the boost library in this context.
The CMakeError.log file reports the following:
Run Build Command:"/usr/bin/make" "cmTC_50014/fast"
/usr/bin/make -f CMakeFiles/cmTC_50014.dir/build.make CMakeFiles/cmTC_50014.dir/build
make[1]: Entering directory '/home/sietse/ros_catkin_ws/build_isolated/class_loader/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_50014.dir/CheckSymbolExists.cxx.o
/usr/bin/c++ -o CMakeFiles/cmTC_50014.dir/CheckSymbolExists.cxx.o -c /home/sietse/ros_catkin_ws/build_isolated/class_loader/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx
Linking CXX executable cmTC_50014
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_50014.dir/link.txt --verbose=1
/usr/bin/c++ CMakeFiles/cmTC_50014.dir/CheckSymbolExists.cxx.o -o cmTC_50014
/usr/bin/ld: CMakeFiles/cmTC_50014.dir/CheckSymbolExists.cxx.o: in function `main':
CheckSymbolExists.cxx:(.text+0x1b): undefined reference to `pthread_create'
collect2: error: ld returned 1 exit status
make[1]: *** [CMakeFiles/cmTC_50014.dir/build.make:87: cmTC_50014] Error 1
make[1]: Leaving directory '/home/sietse/ros_catkin_ws/build_isolated/class_loader/CMakeFiles/CMakeTmp'
make: *** [Makefile:121: cmTC_50014/fast] Error 2
File /home/sietse/ros_catkin_ws/build_isolated/class_loader/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx:
/* */
#include
int main(int argc, char** argv)
{
(void)argv;
#ifndef pthread_create
return ((int*)(&pthread_create))[argc];
#else
(void)argc;
return 0;
#endif
}
The library is of course installed on this system.
Please note that this worked about 2 months ago on this system, with older libraries, such as libboost.
Is there a simple solution to this problem, or is melodic not yet ready for this?
Thanks in advance, Sietse
↧