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

Linking CXX executable UnitTests error #6

Closed
szihs opened this issue Apr 6, 2018 · 3 comments
Closed

Linking CXX executable UnitTests error #6

szihs opened this issue Apr 6, 2018 · 3 comments
Labels
Feature Request New feature or request

Comments

@szihs
Copy link

szihs commented Apr 6, 2018

Hello support-ARM,

While using static boost libs I face linking error in UnitTests executable.

Linking CXX executable UnitTests

libarmnn.so: undefined reference to `boost::detail::add_thread_exit_function(boost::detail::thread_exit_function_base*)'
libarmnn.so: undefined reference to `boost::detail::get_tss_data(void const*)'
libarmnn.so: undefined reference to `boost::detail::set_tss_data(void const*, boost::shared_ptr<boost::detail::tss_cleanup_function>, void*, bool)'

Changing in file cmake/GlobalConfig.cmake

-find_package(Boost 1.59 REQUIRED COMPONENTS unit_test_framework system filesystem log program_options)
+find_package(Boost 1.59 REQUIRED COMPONENTS unit_test_framework system filesystem log **thread** program_options)

makes it link properly.

Regards,
Harsh

@MatthewARM
Copy link
Collaborator

Thanks @szihs, you are right that boost thread is needed as it is a dependency of some of the other boost libraries. However, indirect dependencies are supposed to be added automatically by armnn/cmake/modules/FindBoost.cmake. Please could you let me know which version of Cmake and boost you are using? I'm using cmake 3.5.1 and boost 1.64.

Thanks,
Matthew

@szihs
Copy link
Author

szihs commented Apr 6, 2018

Hello Matthew,
My environment has cmake 3.9.4 and boost 1.65.

Thanks,
Harsh

@MatthewARM
Copy link
Collaborator

Thanks, then probably what has happened here is that boost 1.65 has an additional dependency on boost.thread that was not previously needed, and our version of FindBoost.cmake does not know about it.

I'll flag the issue internally and we'll fix it properly in a future release. I'm closing this issue as you have a workaround.

All the best,
Matthew

@Surmeh Surmeh added the Feature Request New feature or request label Aug 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants