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

Combination Ubuntu Jammy / ROS Rolling have undefined tbb symbols #1372

Closed
j-rivero opened this issue Apr 25, 2022 · 3 comments
Closed

Combination Ubuntu Jammy / ROS Rolling have undefined tbb symbols #1372

j-rivero opened this issue Apr 25, 2022 · 3 comments
Assignees

Comments

@j-rivero
Copy link
Contributor

On Ubuntu Jammy + ROS Rolling, the pr job is failing due to problems resolving tbb symbols:

14:03:12 [ 58%] Linking CXX executable test_gazebo_ros_factory
14:03:12 /usr/bin/ld: CMakeFiles/test_gazebo_ros_factory.dir/test_gazebo_ros_factory.cpp.o: undefined reference to symbol '_ZN3tbb6detail2r114notify_waitersEm'
14:03:12 /usr/bin/ld: /lib/x86_64-linux-gnu/libtbb.so.12: error adding symbols: DSO missing from command line
14:03:12 collect2: error: ld returned 1 exit status
14:03:12 gmake[2]: *** [test/CMakeFiles/test_gazebo_ros_factory.dir/build.make:254: test/test_gazebo_ros_factory] Error 1
14:03:12 gmake[1]: *** [CMakeFiles/Makefile2:621: test/CMakeFiles/test_gazebo_ros_factory.dir/all] Error 2
14:03:12 gmake: *** [Makefile:146: all] Error 2
undefined reference to symbol '_ZN3tbb6detail2r114notify_waitersEm'

As the compiler says, the symbol is in /lib/x86_64-linux-gnu/libtbb.so.12 so we need to declare it as a dependency in Gazebo11 CMake module so linking against the code is done without missing parts.

/cc @ahcorde

@j-rivero j-rivero self-assigned this Apr 25, 2022
@traversaro
Copy link

Related to:

I thought (erroneously, it seems) that it was exclusively a tbb >= 2021 problem so in gazebosim/gazebo-classic#3174 I fixed it just when tbb >= 2021 was used.

j-rivero added a commit that referenced this issue Apr 27, 2022
Signed-off-by: Jose Luis Rivero <jrivero@osrfoundation.org>
@chapulina
Copy link
Contributor

jacobperron added a commit that referenced this issue May 3, 2022
Co-authored-by: Jacob Perron <jacob@openrobotics.org>
Signed-off-by: Jose Luis Rivero <jrivero@osrfoundation.org>
@j-rivero
Copy link
Contributor Author

j-rivero commented May 3, 2022

This is now fixed. Let's get a new release out.

@j-rivero j-rivero closed this as completed May 3, 2022
BrettRD pushed a commit to BrettRD/gazebo_ros_pkgs that referenced this issue Aug 12, 2022
…ation#1373)

Co-authored-by: Jacob Perron <jacob@openrobotics.org>
Signed-off-by: Jose Luis Rivero <jrivero@osrfoundation.org>
Minipada pushed a commit to brisa-robotics/gazebo_ros_pkgs that referenced this issue Nov 13, 2022
…ation#1373)

Co-authored-by: Jacob Perron <jacob@openrobotics.org>
Signed-off-by: Jose Luis Rivero <jrivero@osrfoundation.org>
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

3 participants