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

link fails building oneTBB from conan #1305

Closed
andrea-cassioli-maersk opened this issue Jan 30, 2024 · 3 comments
Closed

link fails building oneTBB from conan #1305

andrea-cassioli-maersk opened this issue Jan 30, 2024 · 3 comments

Comments

@andrea-cassioli-maersk
Copy link

Hey,
I am struggling to install oneTBB via conan. I get the following linker errors

[ 41%] Linking C shared library ../../clang_15.0_cxx17_64_release/libtbbmalloc.dylib

ld: unknown options: -z -z 
clang-15: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [clang_15.0_cxx17_64_release/libtbbmalloc.2.10.dylib] Error 1
make[1]: *** [src/tbbmalloc/CMakeFiles/tbbmalloc.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....

and

[ 92%] Linking CXX shared library ../../clang_15.0_cxx17_64_release/libtbb.dylib
ld: unknown options: -z -z 
clang-15: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [clang_15.0_cxx17_64_release/libtbb.12.10.dylib] Error 1
make[1]: *** [src/tbb/CMakeFiles/tbb.dir/all] Error 2

I am using onetbb/2021.10.0 on osx. Any clue?

@isaevil
Copy link
Contributor

isaevil commented Jan 30, 2024

This is a known bug in CMake files which is fixed by #1150. You can either switch to oneTBB 2021.11 for build or apply the fix locally.

@andrea-cassioli-maersk
Copy link
Author

Thanks @isaevil 2021.11 is not available afaik in conan. I'll look into the fix.

@isaevil
Copy link
Contributor

isaevil commented Jan 30, 2024

@andrea-cassioli-maersk closing the issue then. Please reopen if you'll have other questions/errors related to this.

@isaevil isaevil closed this as completed Jan 30, 2024
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

2 participants