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

[package] onetbb/2020.3: compiler.cppstd isn't used #13519

Closed
Nekto89 opened this issue Oct 16, 2022 · 0 comments · Fixed by #13552
Closed

[package] onetbb/2020.3: compiler.cppstd isn't used #13519

Nekto89 opened this issue Oct 16, 2022 · 0 comments · Fixed by #13552
Labels
bug Something isn't working

Comments

@Nekto89
Copy link
Contributor

Nekto89 commented Oct 16, 2022

Description

onetbb recipe doesn't forward -std=c++17 flag on Macos during onetbb build. This leads to improper exception handling in runtime.
"TBB Warning: Exact exception propagation is requested by application but the linked library is built without support for it"
Example:

#include <tbb/parallel_for.h>
#include <iostream>
#include <stdexcept>

int main()
try {
    tbb::parallel_for(std::size_t{0}, std::size_t{1}, [](const std::size_t i){
        if (i == 0)
            throw std::runtime_error("test exception");
    });
    std::cout << "no exception";
    return 1;
} catch (const std::runtime_error&) {
    std::cout << "Got exception";
    return 0;
} catch (const tbb::captured_exception&) {
    std::cout << "Unexpected tbb::captured_exception";
    return 2;
}

Package and Environment Details

  • Package Name/Version: onetbb/2020.3
  • Operating System+version: macOS Catalina 10.15.7
  • Compiler+version: Apple clang version 12.0.0 (clang-1200.0.32.2)
  • Docker image: ****
  • Conan version: conan 1.52.0
  • Python version: Python 3.10.4

Conan profile

[settings]
os=Macos
os_build=Macos
arch=x86_64
arch_build=x86_64
compiler=apple-clang
compiler.cppstd=17
compiler.version=12.0
compiler.libcxx=libc++
build_type=Release
[options]
[conf]
[build_requires]
[env]

Steps to reproduce

conan install -r conancenter onetbb/2020.3@ -pr:b=default -pr:h=default -s compiler.cppstd=17 --build=onetbb

Logs

Click to expand log
...
Created the ./build/macos_intel64_clang_cc12.0.0_os10.15.7_release directory
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C "./build/macos_intel64_clang_cc12.0.0_os10.15.7_release"  -r -f ../../build/Makefile.tbb cfg=release
../../build/Makefile.tbb:28: CONFIG: cfg=release arch=intel64 compiler=clang target=macos runtime=cc12.0.0_os10.15.7
clang++ -o concurrent_hash_map.o -c -MMD -g -O2 -DUSE_PTHREAD -DDO_ITT_NOTIFY -stdlib=libc++ -m64 -mrtm -mmacosx-version-min=10.11  -fPIC  -D__TBB_BUILD=1 -Wall -Wno-non-virtual-dtor -Wno-dangling-else  -DTBB_SUPPRESS_DEPRECATED_MESSAGES=1   -I../../src -I../../src/rml/include -I../../include ../../src/tbb/concurrent_hash_map.cpp
...
@Nekto89 Nekto89 added the bug Something isn't working label Oct 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant