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

strange pthread error when building gazebo_ros_pkgs hydro precise against gazebo_4.0 branch #1284

Closed
osrf-migration opened this issue Sep 19, 2014 · 4 comments
Labels
all bug Something isn't working build critical

Comments

@osrf-migration
Copy link

Original report (archived issue) by John Hsu (Bitbucket: hsu, GitHub: hsu).

The original report had attachments: build.log


see attached build.log for complete build log. Below is the failed compilation step:

/usr/bin/c++  -fPIC -O3 -DNDEBUG  -Wl,-rpath,/usr/local/lib/gazebo-4.0/plugins pthread -L/usr/local/lib -L/usr/local/lib/gazebo-4.0/plugins -lgazebo_transport -lgazebo_physics -lgazebo_sensors -lgazebo_rendering -lgazebo_gui -lgazebo_msgs -lgazebo_math -lgazebo_common -lgazebo -lboost_thread-mt -lboost_signals-mt -lboost_system-mt -lboost_filesystem-mt -lboost_program_options-mt -lboost_regex-mt -lboost_iostreams-mt -lboost_date_time-mt -Wl,-rpath,/usr/local/lib/gazebo-4.0/plugins -L/usr/local/lib -L/usr/local/lib/gazebo-4.0/plugins   -shared -Wl,-soname,libgazebo_ros_paths_plugin.so -o /tmp/ws/devel/lib/libgazebo_ros_paths_plugin.so CMakeFiles/gazebo_ros_paths_plugin.dir/src/gazebo_ros_paths_plugin.cpp.o -lgazebo_transport -lgazebo_physics -lgazebo_sensors -lgazebo_rendering -lgazebo_gui -lgazebo_msgs -lgazebo_math -lgazebo_common -lgazebo -lboost_thread-mt -lboost_signals-mt -lboost_system-mt -lboost_filesystem-mt -lboost_program_options-mt -lboost_regex-mt -lboost_iostreams-mt -lboost_date_time-mt /usr/local/lib/libgazebo.so /usr/local/lib/libgazebo_common.so /usr/local/lib/libgazebo_gimpact.so /usr/local/lib/libgazebo_gui.so /usr/local/lib/libgazebo_gui_building.so /usr/local/lib/libgazebo_gui_viewers.so /usr/local/lib/libgazebo_math.so /usr/local/lib/libgazebo_msgs.so /usr/local/lib/libgazebo_ode.so /usr/local/lib/libgazebo_opcode.so /usr/local/lib/libgazebo_opende_ou.so /usr/local/lib/libgazebo_physics.so /usr/local/lib/libgazebo_physics_ode.so /usr/local/lib/libgazebo_rendering.so /usr/local/lib/libgazebo_selection_buffer.so /usr/local/lib/libgazebo_sensors.so /usr/local/lib/libgazebo_skyx.so /usr/local/lib/libgazebo_transport.so /usr/local/lib/libgazebo_util.so /usr/local/lib/libgazebo_ccd.so -lprotobuf -lsdformat -lsdformat /opt/ros/hydro/lib/libroslib.so /opt/ros/hydro/lib/libtf.so /opt/ros/hydro/lib/libtf2_ros.so /opt/ros/hydro/lib/libactionlib.so /opt/ros/hydro/lib/libmessage_filters.so /opt/ros/hydro/lib/libroscpp.so -lboost_signals-mt -lboost_filesystem-mt /opt/ros/hydro/lib/libxmlrpcpp.so /opt/ros/hydro/lib/libtf2.so /opt/ros/hydro/lib/librosconsole.so /opt/ros/hydro/lib/librosconsole_log4cxx.so /opt/ros/hydro/lib/librosconsole_backend_interface.so -llog4cxx -lboost_regex-mt /opt/ros/hydro/lib/libdynamic_reconfigure_config_init_mutex.so /opt/ros/hydro/lib/libroscpp_serialization.so /opt/ros/hydro/lib/librostime.so -lboost_date_time-mt -lboost_system-mt -lboost_thread-mt -lpthread /opt/ros/hydro/lib/libcpp_common.so /opt/ros/hydro/lib/libconsole_bridge.so -lboost_thread-mt -lpthread /opt/ros/hydro/lib/libcpp_common.so /opt/ros/hydro/lib/libconsole_bridge.so -Wl,-rpath,/usr/local/lib:/opt/ros/hydro/lib:
make[2]: Leaving directory `/tmp/ws/build'
/usr/bin/cmake -E cmake_progress_report /tmp/ws/build/CMakeFiles
/usr/bin/cmake -E cmake_progress_report /tmp/ws/build/CMakeFiles

with error:

c++: error: pthread: No such file or directory
[ 91%] make[2]: *** [/tmp/ws/devel/lib/libgazebo_ros_paths_plugin.so] Error 1
make[2]: Leaving directory `/tmp/ws/build'
make[1]: *** [gazebo_ros_pkgs/gazebo_ros/CMakeFiles/gazebo_ros_paths_plugin.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....

Looking at installed lib/pkgconfig/gazebo.pc, there is a pthread by itself:

Libs: -Wl,-rpath,${prefix}/lib/gazebo-4.0/plugins -L${libdir} -L${prefix}/lib/gazebo-4.0/plugins -lgazebo_transport -lgazebo_physics -lgazebo_sensors -lgazebo_rendering -lgazebo_gui -lgazebo_msgs -lgazebo_math -lgazebo_common -lgazebo -L/usr/lib -lboost_thread-mt pthread -lboost_signals-mt -lboost_system-mt -lboost_filesystem-mt -lboost_program_options-mt -lboost_regex-mt -lboost_iostreams-mt -lboost_date_time-mt 
CFlags: -I${includedir}/gazebo-4.0 -I/usr/include

removing pthread appears to fix compilation.

@osrf-migration
Copy link
Author

Original comment by Jose Luis Rivero (Bitbucket: Jose Luis Rivero, GitHub: j-rivero).


  • changed state from "new" to "resolved"

pull request #1207 implements a way of keeping pthread in pkgconfig but using the corresponding -l

@osrf-migration
Copy link
Author

Original comment by Steve Peters (Bitbucket: Steven Peters, GitHub: scpeters).


This has been failing on the jenkins precise machine for a while:

http://build.osrfoundation.org/job/gazebo-default-devel-precise-amd64/1164/testReport/junit/%28root%29/PkgConfig/CC/

@osrf-migration
Copy link
Author

Original comment by Nate Koenig (Bitbucket: Nathan Koenig).


  • set version to "all"

@osrf-migration
Copy link
Author

Original comment by Nate Koenig (Bitbucket: Nathan Koenig).


  • changed state from "resolved" to "closed"

@osrf-migration osrf-migration added critical build bug Something isn't working all labels Apr 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
all bug Something isn't working build critical
Projects
None yet
Development

No branches or pull requests

1 participant