error during catkin workspace build
During setup of catkin workspace i am getting this error: /usr/bin/ld: cannot find -lpthreads while executing catkin_make
please help!!!
Determining if the function pthread_create exists in the pthreads failed with the following output:
Change Dir: /home/devesh/ROS/catlin_workspace/build/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTryCompileExec3515155321/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec3515155321.dir/build.make CMakeFiles/cmTryCompileExec3515155321.dir/build
make[1]: Entering directory '/home/devesh/ROS/catlin_workspace/build/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /home/devesh/ROS/catlin_workspace/build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec3515155321.dir/CheckFunctionExists.c.o
/usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create -o CMakeFiles/cmTryCompileExec3515155321.dir/CheckFunctionExists.c.o -c /usr/share/cmake-3.2/Modules/CheckFunctionExists.c
Linking C executable cmTryCompileExec3515155321
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec3515155321.dir/link.txt --verbose=1
/usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create CMakeFiles/cmTryCompileExec3515155321.dir/CheckFunctionExists.c.o -o cmTryCompileExec3515155321 -rdynamic -lpthreads
**/usr/bin/ld: cannot find -lpthreads**
collect2: error: ld returned 1 exit status
CMakeFiles/cmTryCompileExec3515155321.dir/build.make:88: recipe for target 'cmTryCompileExec3515155321' failed
make[1]: Leaving directory '/home/devesh/ROS/catlin_workspace/build/CMakeFiles/CMakeTmp'
make[1]: *** [cmTryCompileExec3515155321] Error 1
Makefile:117: recipe for target 'cmTryCompileExec3515155321/fast' failed
make: *** [cmTryCompileExec3515155321/fast] Error 2
Asked by Devwalkar on 2016-12-12 13:18:05 UTC
Comments
Seems like you don't have pthreads on your system. That's very unusual, and shouldn't happen on a standard Ubuntu install. Which OS and version of ROS are you trying to build? If you're following an installation guide it would be useful to include a link to that guide too.
Asked by ahendrix on 2016-12-12 17:48:07 UTC
I am using Ubuntu 15.10 and trying to build ROS KINETIC. I am using the standard ROS build tutorials as installation guide : http://wiki.ros.org/ROS/Tutorials .. From that step 1 of beginner level
Asked by Devwalkar on 2016-12-12 21:47:41 UTC