Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 672396

Summary: dev-ros/rostime: Project 'rostime' tried to find library '-lpthread'
Product: Gentoo Linux Reporter: Hanno Böck <hanno>
Component: Current packagesAssignee: Robot Operating System team <ros>
Status: RESOLVED FIXED    
Severity: normal CC: vmatare+gbug
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Hanno Böck gentoo-dev 2018-12-02 12:45:48 UTC
Compilation of rostime fails for me with this error:

-- catkin 0.7.14
CMake Error at //usr/share/cpp_common/cmake/cpp_commonConfig.cmake:148 (message):
  Project 'rostime' tried to find library '-lpthread'.  The library is
  neither a target nor built/installed properly.  Did you compile project
  'cpp_common'? Did you find_package() it before the subdirectory containing
  its code is included?


I don't know why this happens, when I manually remove -lphthread from

/usr/share/cpp_common/cmake/cpp_commonConfig.cmake

it compiles, but I doubt that's then intended / right solution.
Comment 1 Toralf Förster gentoo-dev 2018-12-04 18:55:20 UTC
happened at other ros-packages too
Comment 2 Alexis Ballier gentoo-dev 2018-12-05 14:08:24 UTC
rebuilding cpp_common with cmake 3.12.3 fixes the issue too

seems like a bug or incompatibility with cmake 3.13+
Comment 3 Hanno Böck gentoo-dev 2018-12-05 15:46:53 UTC
If this is an incompatibility with latest cmake we should probably report it upstream.

Unfortunately my knowledge about cmake is very limited, can someone who knows this stuff better investigate further?
Comment 4 Andreas Sturmlechner gentoo-dev 2019-05-12 19:46:45 UTC
Does it still happen with cmake-3.14.3?
Comment 5 Victor Mataré 2019-05-12 20:26:40 UTC
For me the problem exists in >=cmake-3.13. This is where the geneneral issue is discussed:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=915148
Comment 6 Victor Mataré 2019-05-12 20:34:38 UTC
Catkin fix: https://github.com/ros/catkin/commit/4812667954e4cb7f99a753ffd4d725047e73a73b

So I guess we should bump dev-util/catkin
Comment 7 Andreas Sturmlechner gentoo-dev 2019-05-12 20:37:24 UTC
great, nothing left to do for kde then.
Comment 8 Alexis Ballier gentoo-dev 2020-08-06 11:17:14 UTC
(In reply to Victor Mataré from comment #6)
> Catkin fix:
> https://github.com/ros/catkin/commit/4812667954e4cb7f99a753ffd4d725047e73a73b
> 
> So I guess we should bump dev-util/catkin

then it is fixed now