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

[question] How to build onetbb with clang++ on Windows? #21320

Closed
pgrossomoreira opened this issue Nov 23, 2023 · 4 comments
Closed

[question] How to build onetbb with clang++ on Windows? #21320

pgrossomoreira opened this issue Nov 23, 2023 · 4 comments
Labels
question Further information is requested

Comments

@pgrossomoreira
Copy link

What is your question?

I'm just getting started with Conan so I created a small project with Conan and CMake and it worked fine at first, but then I added "onetbb/2021.10.0" in the conanfile.txt and conan install started failing.

It appears that onetbb requires ninja/1.11.1, and ninja fails to build. Here's my conanfile.txt:

[requires]
gtest/1.14.0
onetbb/2021.10.0

[generators]
CMakeDeps
CMakeToolchain

[tool_requires]
cmake/3.27.7

Here's my conan incantation:

conan install . --output-folder=build --build=missing --profile conan_clang.txt --settings=build_type=Debug

And here's the output:

======== Input profiles ========
Profile host:
[settings]
arch=x86_64
build_type=Debug
compiler=clang
compiler.cppstd=23
compiler.version=17
os=Windows
[buildenv]
CONAN_CMAKE_GENERATOR=Ninja

Profile build:
[settings]
arch=x86_64
os=Windows


======== Computing dependency graph ========
Graph root
    conanfile.txt: C:\pedro\teng\1\conanfile.txt
Requirements
    gtest/1.14.0#4372c5aed2b4018ed9f9da3e218d18b3 - Cache
    hwloc/2.9.3#526f2dfd53146a99475b1ee7cbe8cbfd - Cache
    onetbb/2021.10.0#c771602f68309b671e63d302296023e3 - Cache
Build requirements
    cmake/3.27.7#6e11610a238b9292dffda14c34bb53e6 - Cache
    meson/1.2.2#aace9dcc1db58fa42ecb5292f724092d - Cache
    ninja/1.11.1#77587f8c8318662ac8e5a7867eb4be21 - Cache
    pkgconf/2.0.3#f996677e96e61e6552d85e83756c328b - Cache

======== Computing necessary packages ========
onetbb/2021.10.0: Checking 11 compatible configurations
onetbb/2021.10.0: Compatible configurations not found in cache, checking servers
onetbb/2021.10.0: 'bf40d789a1fd5cf01746f48abe2354c3d6bfed62': compiler.cppstd=98
onetbb/2021.10.0: '7798c8be2db488448a5e08b73622c48c019ab175': compiler.cppstd=gnu98
onetbb/2021.10.0: '9c44ad67e471b9fe4a57069d9e9bda97f3d6699b': compiler.cppstd=11
onetbb/2021.10.0: '9e06c6aa689a14aca354da2309147a78a8f2e09e': compiler.cppstd=gnu11
onetbb/2021.10.0: '06758716bd500967ba9d2b1e78c9918e96f111a0': compiler.cppstd=14
onetbb/2021.10.0: 'bdbda9fb8300aa5fa90d98ddd1455f7ad7974ea9': compiler.cppstd=gnu14
onetbb/2021.10.0: 'e7e2fd986c62c2ac0a8d7951d7606e46f91d44bb': compiler.cppstd=17
onetbb/2021.10.0: 'b25c4885eadb98c8519d64b3a4786c19714084c9': compiler.cppstd=gnu17
onetbb/2021.10.0: '934e8d4cd647e97647b8567431ac458d196a4b83': compiler.cppstd=20
onetbb/2021.10.0: '2504cda1da6c7ed9342c3b65e7a98c0295956b78': compiler.cppstd=gnu20
onetbb/2021.10.0: 'dfdc78acece13f53a5f309d98d8ec3f2b3e4f1b2': compiler.cppstd=gnu23
Requirements
    gtest/1.14.0#4372c5aed2b4018ed9f9da3e218d18b3:50992bf910c6c5f85cbf045b1b6b755a395836e6#032ab94b763a8229d148178a479b4137 - Cache
    hwloc/2.9.3#526f2dfd53146a99475b1ee7cbe8cbfd:1f02fe433af72f6a87d236ef783c4641a348355d#be2090be470c6ffed3c6c7a133ac9bb7 - Cache
    onetbb/2021.10.0#c771602f68309b671e63d302296023e3:686410d1ab3343a3a3458d5a6c98ec9e78e6cf5e - Build
Build requirements
    cmake/3.27.7#6e11610a238b9292dffda14c34bb53e6:522dcea5982a3f8a5b624c16477e47195da2f84f#adc097cd7e997ed4dad8f6f32a71f50d - Cache
    meson/1.2.2#aace9dcc1db58fa42ecb5292f724092d:da39a3ee5e6b4b0d3255bfef95601890afd80709#2bfd29b9a8744e08daf4c11bdb43a4ce - Cache
    ninja/1.11.1#77587f8c8318662ac8e5a7867eb4be21:522dcea5982a3f8a5b624c16477e47195da2f84f - Build
    pkgconf/2.0.3#f996677e96e61e6552d85e83756c328b:cfe734f6f435320f9400bda6229903fdde06d9db - Build

======== Installing packages ========
cmake/3.27.7: Already installed! (1 of 7)
cmake/3.27.7: Appending PATH environment variable: C:\Users\pedro\.conan2\p\cmake9ed6bb793264d\p\bin
gtest/1.14.0: Already installed! (2 of 7)
hwloc/2.9.3: Already installed! (3 of 7)

-------- Installing package ninja/1.11.1 (4 of 7) --------
ninja/1.11.1: Building from source
ninja/1.11.1: Package ninja/1.11.1:522dcea5982a3f8a5b624c16477e47195da2f84f
ninja/1.11.1: Copying sources to build folder
ninja/1.11.1: Building your package in C:\Users\pedro\.conan2\p\b\ninjafb8deac9af948\b
ninja/1.11.1: Calling generate()
ninja/1.11.1: Generators folder: C:\Users\pedro\.conan2\p\b\ninjafb8deac9af948\b\build\None\generators
ninja/1.11.1: CMakeToolchain generated: conan_toolchain.cmake
ninja/1.11.1: CMakeToolchain generated: CMakePresets.json
ninja/1.11.1: CMakeToolchain generated: ..\..\..\src\CMakeUserPresets.json
ninja/1.11.1: Generating aggregated env files
ninja/1.11.1: Generated aggregated env files: ['conanbuild.bat', 'conanrun.bat']
ninja/1.11.1: Calling build()
ninja/1.11.1: Running CMake.configure()
ninja/1.11.1: RUN: cmake -G "MinGW Makefiles" -DCMAKE_TOOLCHAIN_FILE="C:/Users/pedro/.conan2/p/b/ninjafb8deac9af948/b/build/None/generators/conan_toolchain.cmake" -DCMAKE_INSTALL_PREFIX="C:/Users/pedro/.conan2/p/b/ninjafb8deac9af948/p" -DCMAKE_SH="CMAKE_SH-NOTFOUND" -DCMAKE_POLICY_DEFAULT_CMP0091="NEW" "C:\Users\pedro\.conan2\p\b\ninjafb8deac9af948\b\src"
-- Using Conan toolchain: C:/Users/pedro/.conan2/p/b/ninjafb8deac9af948/b/build/None/generators/conan_toolchain.cmake
CMake Error: CMake was unable to find a build program corresponding to "MinGW Makefiles".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!

ninja/1.11.1: ERROR:
Package '522dcea5982a3f8a5b624c16477e47195da2f84f' build failed
ninja/1.11.1: WARN: Build folder C:\Users\pedro\.conan2\p\b\ninjafb8deac9af948\b\build\None
*********************************************************
Recipe 'ninja/1.11.1' cannot build its binary
It is possible that this recipe is not Conan 2.0 ready
If the recipe comes from ConanCenter, report it at https://github.com/conan-io/conan-center-index/issues
If it is your recipe, check if it is updated to 2.0
*********************************************************

ERROR: ninja/1.11.1: Error in build() method, line 40
        cmake.configure()
        ConanException: Error 1 while executing

One thing I find odd is that there's a directory called "None" inside ninja's build directory: C:\Users\pedro\.conan2\p\b\ninjafb8deac9af948\b\build\None. I wonder if that directory should be called Debug.

Thanks for the help!

@pgrossomoreira pgrossomoreira added the question Further information is requested label Nov 23, 2023
@pgrossomoreira pgrossomoreira changed the title [question] How require ninja in conanfile.txt [question] How to require ninja in conanfile.txt Nov 23, 2023
@SpaceIm
Copy link
Contributor

SpaceIm commented Nov 23, 2023

Profile host:
[settings]
arch=x86_64
build_type=Debug
compiler=clang
compiler.cppstd=23
compiler.version=17
os=Windows
[buildenv]
CONAN_CMAKE_GENERATOR=Ninja

Profile build:
[settings]
arch=x86_64
os=Windows
  • Your profiles are incomplete:

    • host profile: there is not enough information about clang flavor you are using on Windows
    • build profile: compiler and build type are missing, they are required
  • CONAN_CMAKE_GENERATOR has no effect in conan v2. Use tools.cmake.cmaketoolchain:generator conf.

It appears that onetbb requires ninja/1.11.1

Not really. onetbb may need pkgconf as a build requirement, and to build pkgconf you need meson and meson uses ninja by default.

@pgrossomoreira
Copy link
Author

Thank you Spacelm! I might have made some progress thanks to your input, but I'm not 100% sure.

After changing my profiles, I encountered another unexpected error while building onetbb:

======== Input profiles ========
Profile host:
[settings]
arch=x86_64
build_type=Release
compiler=clang
compiler.cppstd=23
compiler.libcxx=libc++
compiler.version=17
os=Windows
[conf]
tools.cmake.cmaketoolchain:generator=Ninja

Profile build:
[settings]
arch=x86_64
build_type=Release
compiler=msvc
compiler.cppstd=14
compiler.runtime=dynamic
compiler.runtime_type=Release
compiler.version=193
os=Windows


======== Computing dependency graph ========
Graph root
    conanfile.txt: C:\pedro\teng\1\conanfile.txt
Requirements
    gtest/1.14.0#4372c5aed2b4018ed9f9da3e218d18b3 - Cache
    hwloc/2.9.3#526f2dfd53146a99475b1ee7cbe8cbfd - Cache
    onetbb/2021.10.0#c771602f68309b671e63d302296023e3 - Cache
Build requirements
    cmake/3.27.7#6e11610a238b9292dffda14c34bb53e6 - Cache
    meson/1.2.2#aace9dcc1db58fa42ecb5292f724092d - Cache
    ninja/1.11.1#77587f8c8318662ac8e5a7867eb4be21 - Cache
    pkgconf/2.0.3#f996677e96e61e6552d85e83756c328b - Cache

======== Computing necessary packages ========
onetbb/2021.10.0: Checking 11 compatible configurations
onetbb/2021.10.0: Compatible configurations not found in cache, checking servers
onetbb/2021.10.0: '42452b548a539b6176601aa1df1673e5f78aec9b': compiler.cppstd=98
onetbb/2021.10.0: '6e8e520203bacf0bb4e22ed762eb090d4ee9a474': compiler.cppstd=gnu98
onetbb/2021.10.0: '6acca66f362ffe4f1ea07eb27a92dbabf8df20c9': compiler.cppstd=11
onetbb/2021.10.0: '96e39d8acbfece10e1d7d13188eeb5328b4da221': compiler.cppstd=gnu11
onetbb/2021.10.0: 'dd40409d49dd76d4de11474bb472c94cc64d504f': compiler.cppstd=14
onetbb/2021.10.0: '1bb35bcb213576cc7b07fe55488f9a3e8de031dc': compiler.cppstd=gnu14
onetbb/2021.10.0: 'ecb4e70c167c08cda23709f86c71e8bcf5f490c8': compiler.cppstd=17
onetbb/2021.10.0: '3a7eb430b00a087f09264bba027cbcbc2ba3ce01': compiler.cppstd=gnu17
onetbb/2021.10.0: '7137fd8400710c793574af2f31c432fa6072307a': compiler.cppstd=20
onetbb/2021.10.0: '28dc5a6691fa1c369bc284b74b7af94ca8a1d05f': compiler.cppstd=gnu20
onetbb/2021.10.0: '5c26a3cbed18fc72c73639b32466cc12d632af91': compiler.cppstd=gnu23
Requirements
    gtest/1.14.0#4372c5aed2b4018ed9f9da3e218d18b3:7643ece4d522452f824805845427dacef8f24255#b93ade4819b1b8430dd99e7d695cbc2f - Cache
    hwloc/2.9.3#526f2dfd53146a99475b1ee7cbe8cbfd:f3b87fbcb15efee18a94113b56f56971054648a2#2c8785846ae9ca4073bf9dd75d96ab89 - Cache
    onetbb/2021.10.0#c771602f68309b671e63d302296023e3:87d6a8714d755a1dc18af20094f0b661afc4fd01 - Build
Build requirements
    cmake/3.27.7#6e11610a238b9292dffda14c34bb53e6:522dcea5982a3f8a5b624c16477e47195da2f84f#adc097cd7e997ed4dad8f6f32a71f50d - Cache
    pkgconf/2.0.3#f996677e96e61e6552d85e83756c328b:43771b8671ac44479c188dd72670e2eb2d7918a6#f6ed446340fdb82496318a89eb45eb01 - Cache
Skipped binaries
    meson/1.2.2, ninja/1.11.1

======== Installing packages ========
cmake/3.27.7: Already installed! (1 of 5)
cmake/3.27.7: Appending PATH environment variable: C:\Users\pedro\.conan2\p\cmake9ed6bb793264d\p\bin
gtest/1.14.0: Already installed! (2 of 5)
hwloc/2.9.3: Already installed! (3 of 5)
pkgconf/2.0.3: Already installed! (4 of 5)
pkgconf/2.0.3: WARN: The use of 'unix_path_legacy_compat' is deprecated in Conan 2.0 and does not perform path conversions. This is retained for compatibility with Conan 1.x and will be removed in a future version.

-------- Installing package onetbb/2021.10.0 (5 of 5) --------
onetbb/2021.10.0: Building from source
onetbb/2021.10.0: Package onetbb/2021.10.0:87d6a8714d755a1dc18af20094f0b661afc4fd01
onetbb/2021.10.0: Copying sources to build folder
onetbb/2021.10.0: Building your package in C:\Users\pedro\.conan2\p\b\onetb0a0dbc966087a\b
onetbb/2021.10.0: Calling generate()
onetbb/2021.10.0: Generators folder: C:\Users\pedro\.conan2\p\b\onetb0a0dbc966087a\b\build\Release\generators
onetbb/2021.10.0: CMakeToolchain generated: conan_toolchain.cmake
onetbb/2021.10.0: CMakeToolchain generated: CMakePresets.json
onetbb/2021.10.0: CMakeToolchain generated: ..\..\..\src\CMakeUserPresets.json
onetbb/2021.10.0: Generating aggregated env files
onetbb/2021.10.0: Generated aggregated env files: ['conanbuild.bat', 'conanrun.bat']
onetbb/2021.10.0: Calling build()
onetbb/2021.10.0: apply_conandata_patches(): No patches defined in conandata
onetbb/2021.10.0: Running CMake.configure()
onetbb/2021.10.0: RUN: cmake -G "Ninja" -DCMAKE_TOOLCHAIN_FILE="C:/Users/pedro/.conan2/p/b/onetb0a0dbc966087a/b/build/Release/generators/conan_toolchain.cmake" -DCMAKE_INSTALL_PREFIX="C:/Users/pedro/.conan2/p/b/onetb0a0dbc966087a/p" -DCMAKE_POLICY_DEFAULT_CMP0091="NEW" -DCMAKE_BUILD_TYPE="Release" "C:\Users\pedro\.conan2\p\b\onetb0a0dbc966087a\b\src"
CMake Deprecation Warning at CMakeLists.txt:15 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


-- Using Conan toolchain: C:/Users/pedro/.conan2/p/b/onetb0a0dbc966087a/b/build/Release/generators/conan_toolchain.cmake
-- Conan toolchain: C++ Standard 23 with extensions OFF
-- The CXX compiler identification is Clang 17.0.1 with GNU-like command-line
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files/LLVM/bin/clang++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - no
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - not found
-- Found Threads: TRUE
-- Checking for one of the modules 'hwloc'
-- The C compiler identification is Clang 17.0.1 with GNU-like command-line
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files/LLVM/bin/clang.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- The tbbbind_2_5 target will be configured using the HWLOC 2.9.3
-- Configuring done (3.8s)
-- Generating done (0.0s)
-- Build files have been written to: C:/Users/pedro/.conan2/p/b/onetb0a0dbc966087a/b/build/Release

onetbb/2021.10.0: Running CMake.build()
onetbb/2021.10.0: RUN: cmake --build "C:\Users\pedro\.conan2\p\b\onetb0a0dbc966087a\b\build\Release" -- -j24
[1/45] Building CXX object src/tbb/CMakeFiles/tbb.dir/observer_proxy.cpp.obj
FAILED: src/tbb/CMakeFiles/tbb.dir/observer_proxy.cpp.obj
C:\PROGRA~1\LLVM\bin\CLANG_~1.EXE -D__TBB_BUILD -D__TBB_USE_ITT_NOTIFY -IC:/Users/pedro/.conan2/p/b/onetb0a0dbc966087a/b/src/src/tbb/../../include -m64 -stdlib=libc++ -O3 -DNDEBUG -std=c++23 -D_DLL -D_MT -Xclang --dependent-lib=msvcrt -Wall -Wextra -mrtm -mwaitpkg -Wformat -Wformat-security -Werror=format-security -fstack-protector-strong -fPIC -D_FORTIFY_SOURCE=2 -MD -MT src/tbb/CMakeFiles/tbb.dir/observer_proxy.cpp.obj -MF src\tbb\CMakeFiles\tbb.dir\observer_proxy.cpp.obj.d -o src/tbb/CMakeFiles/tbb.dir/observer_proxy.cpp.obj -c C:/Users/pedro/.conan2/p/b/onetb0a0dbc966087a/b/src/src/tbb/observer_proxy.cpp
CLANG_~1: error: unsupported option '-fPIC' for target 'x86_64-pc-windows-msvc'
[2/45] Building CXX object src/tbb/CMakeFiles/tbb.dir/allocator.cpp.obj
FAILED: src/tbb/CMakeFiles/tbb.dir/allocator.cpp.obj
C:\PROGRA~1\LLVM\bin\CLANG_~1.EXE -D__TBB_BUILD -D__TBB_USE_ITT_NOTIFY -IC:/Users/pedro/.conan2/p/b/onetb0a0dbc966087a/b/src/src/tbb/../../include -m64 -stdlib=libc++ -O3 -DNDEBUG -std=c++23 -D_DLL -D_MT -Xclang --dependent-lib=msvcrt -Wall -Wextra -mrtm -mwaitpkg -Wformat -Wformat-security -Werror=format-security -fstack-protector-strong -fPIC -D_FORTIFY_SOURCE=2 -MD -MT src/tbb/CMakeFiles/tbb.dir/allocator.cpp.obj -MF src\tbb\CMakeFiles\tbb.dir\allocator.cpp.obj.d -o src/tbb/CMakeFiles/tbb.dir/allocator.cpp.obj -c C:/Users/pedro/.conan2/p/b/onetb0a0dbc966087a/b/src/src/tbb/allocator.cpp
CLANG_~1: error: unsupported option '-fPIC' for target 'x86_64-pc-windows-msvc'
[3/45] Building CXX object src/tbb/CMakeFiles/tbb.dir/dynamic_link.cpp.obj
FAILED: src/tbb/CMakeFiles/tbb.dir/dynamic_link.cpp.obj
C:\PROGRA~1\LLVM\bin\CLANG_~1.EXE -D__TBB_BUILD -D__TBB_USE_ITT_NOTIFY -IC:/Users/pedro/.conan2/p/b/onetb0a0dbc966087a/b/src/src/tbb/../../include -m64 -stdlib=libc++ -O3 -DNDEBUG -std=c++23 -D_DLL -D_MT -Xclang --dependent-lib=msvcrt -Wall -Wextra -mrtm -mwaitpkg -Wformat -Wformat-security -Werror=format-security -fstack-protector-strong -fPIC -D_FORTIFY_SOURCE=2 -MD -MT src/tbb/CMakeFiles/tbb.dir/dynamic_link.cpp.obj -MF src\tbb\CMakeFiles\tbb.dir\dynamic_link.cpp.obj.d -o src/tbb/CMakeFiles/tbb.dir/dynamic_link.cpp.obj -c C:/Users/pedro/.conan2/p/b/onetb0a0dbc966087a/b/src/src/tbb/dynamic_link.cpp
CLANG_~1: error: unsupported option '-fPIC' for target 'x86_64-pc-windows-msvc'
[4/45] Building CXX object src/tbb/CMakeFiles/tbb.dir/address_waiter.cpp.obj
FAILED: src/tbb/CMakeFiles/tbb.dir/address_waiter.cpp.obj
C:\PROGRA~1\LLVM\bin\CLANG_~1.EXE -D__TBB_BUILD -D__TBB_USE_ITT_NOTIFY -IC:/Users/pedro/.conan2/p/b/onetb0a0dbc966087a/b/src/src/tbb/../../include -m64 -stdlib=libc++ -O3 -DNDEBUG -std=c++23 -D_DLL -D_MT -Xclang --dependent-lib=msvcrt -Wall -Wextra -mrtm -mwaitpkg -Wformat -Wformat-security -Werror=format-security -fstack-protector-strong -fPIC -D_FORTIFY_SOURCE=2 -MD -MT src/tbb/CMakeFiles/tbb.dir/address_waiter.cpp.obj -MF src\tbb\CMakeFiles\tbb.dir\address_waiter.cpp.obj.d -o src/tbb/CMakeFiles/tbb.dir/address_waiter.cpp.obj -c C:/Users/pedro/.conan2/p/b/onetb0a0dbc966087a/b/src/src/tbb/address_waiter.cpp
CLANG_~1: error: unsupported option '-fPIC' for target 'x86_64-pc-windows-msvc'
[5/45] Building CXX object src/tbb/CMakeFiles/tbb.dir/itt_notify.cpp.obj
FAILED: src/tbb/CMakeFiles/tbb.dir/itt_notify.cpp.obj
C:\PROGRA~1\LLVM\bin\CLANG_~1.EXE -D__TBB_BUILD -D__TBB_USE_ITT_NOTIFY -IC:/Users/pedro/.conan2/p/b/onetb0a0dbc966087a/b/src/src/tbb/../../include -m64 -stdlib=libc++ -O3 -DNDEBUG -std=c++23 -D_DLL -D_MT -Xclang --dependent-lib=msvcrt -Wall -Wextra -mrtm -mwaitpkg -Wformat -Wformat-security -Werror=format-security -fstack-protector-strong -fPIC -D_FORTIFY_SOURCE=2 -MD -MT src/tbb/CMakeFiles/tbb.dir/itt_notify.cpp.obj -MF src\tbb\CMakeFiles\tbb.dir\itt_notify.cpp.obj.d -o src/tbb/CMakeFiles/tbb.dir/itt_notify.cpp.obj -c C:/Users/pedro/.conan2/p/b/onetb0a0dbc966087a/b/src/src/tbb/itt_notify.cpp
CLANG_~1: error: unsupported option '-fPIC' for target 'x86_64-pc-windows-msvc'
[6/45] Building CXX object src/tbb/CMakeFiles/tbb.dir/parallel_pipeline.cpp.obj
FAILED: src/tbb/CMakeFiles/tbb.dir/parallel_pipeline.cpp.obj
C:\PROGRA~1\LLVM\bin\CLANG_~1.EXE -D__TBB_BUILD -D__TBB_USE_ITT_NOTIFY -IC:/Users/pedro/.conan2/p/b/onetb0a0dbc966087a/b/src/src/tbb/../../include -m64 -stdlib=libc++ -O3 -DNDEBUG -std=c++23 -D_DLL -D_MT -Xclang --dependent-lib=msvcrt -Wall -Wextra -mrtm -mwaitpkg -Wformat -Wformat-security -Werror=format-security -fstack-protector-strong -fPIC -D_FORTIFY_SOURCE=2 -MD -MT src/tbb/CMakeFiles/tbb.dir/parallel_pipeline.cpp.obj -MF src\tbb\CMakeFiles\tbb.dir\parallel_pipeline.cpp.obj.d -o src/tbb/CMakeFiles/tbb.dir/parallel_pipeline.cpp.obj -c C:/Users/pedro/.conan2/p/b/onetb0a0dbc966087a/b/src/src/tbb/parallel_pipeline.cpp
CLANG_~1: error: unsupported option '-fPIC' for target 'x86_64-pc-windows-msvc'
[7/45] Building CXX object src/tbb/CMakeFiles/tbb.dir/arena_slot.cpp.obj
FAILED: src/tbb/CMakeFiles/tbb.dir/arena_slot.cpp.obj
C:\PROGRA~1\LLVM\bin\CLANG_~1.EXE -D__TBB_BUILD -D__TBB_USE_ITT_NOTIFY -IC:/Users/pedro/.conan2/p/b/onetb0a0dbc966087a/b/src/src/tbb/../../include -m64 -stdlib=libc++ -O3 -DNDEBUG -std=c++23 -D_DLL -D_MT -Xclang --dependent-lib=msvcrt -Wall -Wextra -mrtm -mwaitpkg -Wformat -Wformat-security -Werror=format-security -fstack-protector-strong -fPIC -D_FORTIFY_SOURCE=2 -MD -MT src/tbb/CMakeFiles/tbb.dir/arena_slot.cpp.obj -MF src\tbb\CMakeFiles\tbb.dir\arena_slot.cpp.obj.d -o src/tbb/CMakeFiles/tbb.dir/arena_slot.cpp.obj -c C:/Users/pedro/.conan2/p/b/onetb0a0dbc966087a/b/src/src/tbb/arena_slot.cpp
CLANG_~1: error: unsupported option '-fPIC' for target 'x86_64-pc-windows-msvc'
[8/45] Building CXX object src/tbb/CMakeFiles/tbb.dir/rml_tbb.cpp.obj
FAILED: src/tbb/CMakeFiles/tbb.dir/rml_tbb.cpp.obj
C:\PROGRA~1\LLVM\bin\CLANG_~1.EXE -D__TBB_BUILD -D__TBB_USE_ITT_NOTIFY -IC:/Users/pedro/.conan2/p/b/onetb0a0dbc966087a/b/src/src/tbb/../../include -m64 -stdlib=libc++ -O3 -DNDEBUG -std=c++23 -D_DLL -D_MT -Xclang --dependent-lib=msvcrt -Wall -Wextra -mrtm -mwaitpkg -Wformat -Wformat-security -Werror=format-security -fstack-protector-strong -fPIC -D_FORTIFY_SOURCE=2 -MD -MT src/tbb/CMakeFiles/tbb.dir/rml_tbb.cpp.obj -MF src\tbb\CMakeFiles\tbb.dir\rml_tbb.cpp.obj.d -o src/tbb/CMakeFiles/tbb.dir/rml_tbb.cpp.obj -c C:/Users/pedro/.conan2/p/b/onetb0a0dbc966087a/b/src/src/tbb/rml_tbb.cpp
CLANG_~1: error: unsupported option '-fPIC' for target 'x86_64-pc-windows-msvc'
[9/45] Building CXX object src/tbb/CMakeFiles/tbb.dir/misc_ex.cpp.obj
FAILED: src/tbb/CMakeFiles/tbb.dir/misc_ex.cpp.obj
C:\PROGRA~1\LLVM\bin\CLANG_~1.EXE -D__TBB_BUILD -D__TBB_USE_ITT_NOTIFY -IC:/Users/pedro/.conan2/p/b/onetb0a0dbc966087a/b/src/src/tbb/../../include -m64 -stdlib=libc++ -O3 -DNDEBUG -std=c++23 -D_DLL -D_MT -Xclang --dependent-lib=msvcrt -Wall -Wextra -mrtm -mwaitpkg -Wformat -Wformat-security -Werror=format-security -fstack-protector-strong -fPIC -D_FORTIFY_SOURCE=2 -MD -MT src/tbb/CMakeFiles/tbb.dir/misc_ex.cpp.obj -MF src\tbb\CMakeFiles\tbb.dir\misc_ex.cpp.obj.d -o src/tbb/CMakeFiles/tbb.dir/misc_ex.cpp.obj -c C:/Users/pedro/.conan2/p/b/onetb0a0dbc966087a/b/src/src/tbb/misc_ex.cpp
CLANG_~1: error: unsupported option '-fPIC' for target 'x86_64-pc-windows-msvc'
[10/45] Building CXX object src/tbb/CMakeFiles/tbb.dir/concurrent_bounded_queue.cpp.obj
FAILED: src/tbb/CMakeFiles/tbb.dir/concurrent_bounded_queue.cpp.obj
C:\PROGRA~1\LLVM\bin\CLANG_~1.EXE -D__TBB_BUILD -D__TBB_USE_ITT_NOTIFY -IC:/Users/pedro/.conan2/p/b/onetb0a0dbc966087a/b/src/src/tbb/../../include -m64 -stdlib=libc++ -O3 -DNDEBUG -std=c++23 -D_DLL -D_MT -Xclang --dependent-lib=msvcrt -Wall -Wextra -mrtm -mwaitpkg -Wformat -Wformat-security -Werror=format-security -fstack-protector-strong -fPIC -D_FORTIFY_SOURCE=2 -MD -MT src/tbb/CMakeFiles/tbb.dir/concurrent_bounded_queue.cpp.obj -MF src\tbb\CMakeFiles\tbb.dir\concurrent_bounded_queue.cpp.obj.d -o src/tbb/CMakeFiles/tbb.dir/concurrent_bounded_queue.cpp.obj -c C:/Users/pedro/.conan2/p/b/onetb0a0dbc966087a/b/src/src/tbb/concurrent_bounded_queue.cpp
CLANG_~1: error: unsupported option '-fPIC' for target 'x86_64-pc-windows-msvc'
[11/45] Building CXX object src/tbb/CMakeFiles/tbb.dir/global_control.cpp.obj
FAILED: src/tbb/CMakeFiles/tbb.dir/global_control.cpp.obj
C:\PROGRA~1\LLVM\bin\CLANG_~1.EXE -D__TBB_BUILD -D__TBB_USE_ITT_NOTIFY -IC:/Users/pedro/.conan2/p/b/onetb0a0dbc966087a/b/src/src/tbb/../../include -m64 -stdlib=libc++ -O3 -DNDEBUG -std=c++23 -D_DLL -D_MT -Xclang --dependent-lib=msvcrt -Wall -Wextra -mrtm -mwaitpkg -Wformat -Wformat-security -Werror=format-security -fstack-protector-strong -fPIC -D_FORTIFY_SOURCE=2 -MD -MT src/tbb/CMakeFiles/tbb.dir/global_control.cpp.obj -MF src\tbb\CMakeFiles\tbb.dir\global_control.cpp.obj.d -o src/tbb/CMakeFiles/tbb.dir/global_control.cpp.obj -c C:/Users/pedro/.conan2/p/b/onetb0a0dbc966087a/b/src/src/tbb/global_control.cpp
CLANG_~1: error: unsupported option '-fPIC' for target 'x86_64-pc-windows-msvc'
[12/45] Building CXX object src/tbb/CMakeFiles/tbb.dir/misc.cpp.obj
FAILED: src/tbb/CMakeFiles/tbb.dir/misc.cpp.obj
C:\PROGRA~1\LLVM\bin\CLANG_~1.EXE -D__TBB_BUILD -D__TBB_USE_ITT_NOTIFY -IC:/Users/pedro/.conan2/p/b/onetb0a0dbc966087a/b/src/src/tbb/../../include -m64 -stdlib=libc++ -O3 -DNDEBUG -std=c++23 -D_DLL -D_MT -Xclang --dependent-lib=msvcrt -Wall -Wextra -mrtm -mwaitpkg -Wformat -Wformat-security -Werror=format-security -fstack-protector-strong -fPIC -D_FORTIFY_SOURCE=2 -MD -MT src/tbb/CMakeFiles/tbb.dir/misc.cpp.obj -MF src\tbb\CMakeFiles\tbb.dir\misc.cpp.obj.d -o src/tbb/CMakeFiles/tbb.dir/misc.cpp.obj -c C:/Users/pedro/.conan2/p/b/onetb0a0dbc966087a/b/src/src/tbb/misc.cpp
CLANG_~1: error: unsupported option '-fPIC' for target 'x86_64-pc-windows-msvc'
[13/45] Building CXX object src/tbb/CMakeFiles/tbb.dir/exception.cpp.obj
FAILED: src/tbb/CMakeFiles/tbb.dir/exception.cpp.obj
C:\PROGRA~1\LLVM\bin\CLANG_~1.EXE -D__TBB_BUILD -D__TBB_USE_ITT_NOTIFY -IC:/Users/pedro/.conan2/p/b/onetb0a0dbc966087a/b/src/src/tbb/../../include -m64 -stdlib=libc++ -O3 -DNDEBUG -std=c++23 -D_DLL -D_MT -Xclang --dependent-lib=msvcrt -Wall -Wextra -mrtm -mwaitpkg -Wformat -Wformat-security -Werror=format-security -fstack-protector-strong -fPIC -D_FORTIFY_SOURCE=2 -MD -MT src/tbb/CMakeFiles/tbb.dir/exception.cpp.obj -MF src\tbb\CMakeFiles\tbb.dir\exception.cpp.obj.d -o src/tbb/CMakeFiles/tbb.dir/exception.cpp.obj -c C:/Users/pedro/.conan2/p/b/onetb0a0dbc966087a/b/src/src/tbb/exception.cpp
CLANG_~1: error: unsupported option '-fPIC' for target 'x86_64-pc-windows-msvc'
[14/45] Building CXX object src/tbb/CMakeFiles/tbb.dir/private_server.cpp.obj
FAILED: src/tbb/CMakeFiles/tbb.dir/private_server.cpp.obj
C:\PROGRA~1\LLVM\bin\CLANG_~1.EXE -D__TBB_BUILD -D__TBB_USE_ITT_NOTIFY -IC:/Users/pedro/.conan2/p/b/onetb0a0dbc966087a/b/src/src/tbb/../../include -m64 -stdlib=libc++ -O3 -DNDEBUG -std=c++23 -D_DLL -D_MT -Xclang --dependent-lib=msvcrt -Wall -Wextra -mrtm -mwaitpkg -Wformat -Wformat-security -Werror=format-security -fstack-protector-strong -fPIC -D_FORTIFY_SOURCE=2 -MD -MT src/tbb/CMakeFiles/tbb.dir/private_server.cpp.obj -MF src\tbb\CMakeFiles\tbb.dir\private_server.cpp.obj.d -o src/tbb/CMakeFiles/tbb.dir/private_server.cpp.obj -c C:/Users/pedro/.conan2/p/b/onetb0a0dbc966087a/b/src/src/tbb/private_server.cpp
CLANG_~1: error: unsupported option '-fPIC' for target 'x86_64-pc-windows-msvc'
[15/45] Building CXX object src/tbb/CMakeFiles/tbb.dir/market.cpp.obj
FAILED: src/tbb/CMakeFiles/tbb.dir/market.cpp.obj
C:\PROGRA~1\LLVM\bin\CLANG_~1.EXE -D__TBB_BUILD -D__TBB_USE_ITT_NOTIFY -IC:/Users/pedro/.conan2/p/b/onetb0a0dbc966087a/b/src/src/tbb/../../include -m64 -stdlib=libc++ -O3 -DNDEBUG -std=c++23 -D_DLL -D_MT -Xclang --dependent-lib=msvcrt -Wall -Wextra -mrtm -mwaitpkg -Wformat -Wformat-security -Werror=format-security -fstack-protector-strong -fPIC -D_FORTIFY_SOURCE=2 -MD -MT src/tbb/CMakeFiles/tbb.dir/market.cpp.obj -MF src\tbb\CMakeFiles\tbb.dir\market.cpp.obj.d -o src/tbb/CMakeFiles/tbb.dir/market.cpp.obj -c C:/Users/pedro/.conan2/p/b/onetb0a0dbc966087a/b/src/src/tbb/market.cpp
CLANG_~1: error: unsupported option '-fPIC' for target 'x86_64-pc-windows-msvc'
[16/45] Building CXX object src/tbb/CMakeFiles/tbb.dir/arena.cpp.obj
FAILED: src/tbb/CMakeFiles/tbb.dir/arena.cpp.obj
C:\PROGRA~1\LLVM\bin\CLANG_~1.EXE -D__TBB_BUILD -D__TBB_USE_ITT_NOTIFY -IC:/Users/pedro/.conan2/p/b/onetb0a0dbc966087a/b/src/src/tbb/../../include -m64 -stdlib=libc++ -O3 -DNDEBUG -std=c++23 -D_DLL -D_MT -Xclang --dependent-lib=msvcrt -Wall -Wextra -mrtm -mwaitpkg -Wformat -Wformat-security -Werror=format-security -fstack-protector-strong -fPIC -D_FORTIFY_SOURCE=2 -MD -MT src/tbb/CMakeFiles/tbb.dir/arena.cpp.obj -MF src\tbb\CMakeFiles\tbb.dir\arena.cpp.obj.d -o src/tbb/CMakeFiles/tbb.dir/arena.cpp.obj -c C:/Users/pedro/.conan2/p/b/onetb0a0dbc966087a/b/src/src/tbb/arena.cpp
CLANG_~1: error: unsupported option '-fPIC' for target 'x86_64-pc-windows-msvc'
[17/45] Building CXX object src/tbb/CMakeFiles/tbb.dir/rtm_mutex.cpp.obj
FAILED: src/tbb/CMakeFiles/tbb.dir/rtm_mutex.cpp.obj
C:\PROGRA~1\LLVM\bin\CLANG_~1.EXE -D__TBB_BUILD -D__TBB_USE_ITT_NOTIFY -IC:/Users/pedro/.conan2/p/b/onetb0a0dbc966087a/b/src/src/tbb/../../include -m64 -stdlib=libc++ -O3 -DNDEBUG -std=c++23 -D_DLL -D_MT -Xclang --dependent-lib=msvcrt -Wall -Wextra -mrtm -mwaitpkg -Wformat -Wformat-security -Werror=format-security -fstack-protector-strong -fPIC -D_FORTIFY_SOURCE=2 -MD -MT src/tbb/CMakeFiles/tbb.dir/rtm_mutex.cpp.obj -MF src\tbb\CMakeFiles\tbb.dir\rtm_mutex.cpp.obj.d -o src/tbb/CMakeFiles/tbb.dir/rtm_mutex.cpp.obj -c C:/Users/pedro/.conan2/p/b/onetb0a0dbc966087a/b/src/src/tbb/rtm_mutex.cpp
CLANG_~1: error: unsupported option '-fPIC' for target 'x86_64-pc-windows-msvc'
[18/45] Building CXX object src/tbb/CMakeFiles/tbb.dir/profiling.cpp.obj
FAILED: src/tbb/CMakeFiles/tbb.dir/profiling.cpp.obj
C:\PROGRA~1\LLVM\bin\CLANG_~1.EXE -D__TBB_BUILD -D__TBB_USE_ITT_NOTIFY -IC:/Users/pedro/.conan2/p/b/onetb0a0dbc966087a/b/src/src/tbb/../../include -m64 -stdlib=libc++ -O3 -DNDEBUG -std=c++23 -D_DLL -D_MT -Xclang --dependent-lib=msvcrt -Wall -Wextra -mrtm -mwaitpkg -Wformat -Wformat-security -Werror=format-security -fstack-protector-strong -fPIC -D_FORTIFY_SOURCE=2 -MD -MT src/tbb/CMakeFiles/tbb.dir/profiling.cpp.obj -MF src\tbb\CMakeFiles\tbb.dir\profiling.cpp.obj.d -o src/tbb/CMakeFiles/tbb.dir/profiling.cpp.obj -c C:/Users/pedro/.conan2/p/b/onetb0a0dbc966087a/b/src/src/tbb/profiling.cpp
CLANG_~1: error: unsupported option '-fPIC' for target 'x86_64-pc-windows-msvc'
[19/45] Building CXX object src/tbb/CMakeFiles/tbb.dir/main.cpp.obj
FAILED: src/tbb/CMakeFiles/tbb.dir/main.cpp.obj
C:\PROGRA~1\LLVM\bin\CLANG_~1.EXE -D__TBB_BUILD -D__TBB_USE_ITT_NOTIFY -IC:/Users/pedro/.conan2/p/b/onetb0a0dbc966087a/b/src/src/tbb/../../include -m64 -stdlib=libc++ -O3 -DNDEBUG -std=c++23 -D_DLL -D_MT -Xclang --dependent-lib=msvcrt -Wall -Wextra -mrtm -mwaitpkg -Wformat -Wformat-security -Werror=format-security -fstack-protector-strong -fPIC -D_FORTIFY_SOURCE=2 -MD -MT src/tbb/CMakeFiles/tbb.dir/main.cpp.obj -MF src\tbb\CMakeFiles\tbb.dir\main.cpp.obj.d -o src/tbb/CMakeFiles/tbb.dir/main.cpp.obj -c C:/Users/pedro/.conan2/p/b/onetb0a0dbc966087a/b/src/src/tbb/main.cpp
CLANG_~1: error: unsupported option '-fPIC' for target 'x86_64-pc-windows-msvc'
[20/45] Building CXX object src/tbb/CMakeFiles/tbb.dir/governor.cpp.obj
FAILED: src/tbb/CMakeFiles/tbb.dir/governor.cpp.obj
C:\PROGRA~1\LLVM\bin\CLANG_~1.EXE -D__TBB_BUILD -D__TBB_USE_ITT_NOTIFY -IC:/Users/pedro/.conan2/p/b/onetb0a0dbc966087a/b/src/src/tbb/../../include -m64 -stdlib=libc++ -O3 -DNDEBUG -std=c++23 -D_DLL -D_MT -Xclang --dependent-lib=msvcrt -Wall -Wextra -mrtm -mwaitpkg -Wformat -Wformat-security -Werror=format-security -fstack-protector-strong -fPIC -D_FORTIFY_SOURCE=2 -MD -MT src/tbb/CMakeFiles/tbb.dir/governor.cpp.obj -MF src\tbb\CMakeFiles\tbb.dir\governor.cpp.obj.d -o src/tbb/CMakeFiles/tbb.dir/governor.cpp.obj -c C:/Users/pedro/.conan2/p/b/onetb0a0dbc966087a/b/src/src/tbb/governor.cpp
CLANG_~1: error: unsupported option '-fPIC' for target 'x86_64-pc-windows-msvc'
[21/45] Building CXX object src/tbb/CMakeFiles/tbb.dir/rtm_rw_mutex.cpp.obj
FAILED: src/tbb/CMakeFiles/tbb.dir/rtm_rw_mutex.cpp.obj
C:\PROGRA~1\LLVM\bin\CLANG_~1.EXE -D__TBB_BUILD -D__TBB_USE_ITT_NOTIFY -IC:/Users/pedro/.conan2/p/b/onetb0a0dbc966087a/b/src/src/tbb/../../include -m64 -stdlib=libc++ -O3 -DNDEBUG -std=c++23 -D_DLL -D_MT -Xclang --dependent-lib=msvcrt -Wall -Wextra -mrtm -mwaitpkg -Wformat -Wformat-security -Werror=format-security -fstack-protector-strong -fPIC -D_FORTIFY_SOURCE=2 -MD -MT src/tbb/CMakeFiles/tbb.dir/rtm_rw_mutex.cpp.obj -MF src\tbb\CMakeFiles\tbb.dir\rtm_rw_mutex.cpp.obj.d -o src/tbb/CMakeFiles/tbb.dir/rtm_rw_mutex.cpp.obj -c C:/Users/pedro/.conan2/p/b/onetb0a0dbc966087a/b/src/src/tbb/rtm_rw_mutex.cpp
CLANG_~1: error: unsupported option '-fPIC' for target 'x86_64-pc-windows-msvc'
[22/45] Building CXX object src/tbb/CMakeFiles/tbb.dir/semaphore.cpp.obj
FAILED: src/tbb/CMakeFiles/tbb.dir/semaphore.cpp.obj
C:\PROGRA~1\LLVM\bin\CLANG_~1.EXE -D__TBB_BUILD -D__TBB_USE_ITT_NOTIFY -IC:/Users/pedro/.conan2/p/b/onetb0a0dbc966087a/b/src/src/tbb/../../include -m64 -stdlib=libc++ -O3 -DNDEBUG -std=c++23 -D_DLL -D_MT -Xclang --dependent-lib=msvcrt -Wall -Wextra -mrtm -mwaitpkg -Wformat -Wformat-security -Werror=format-security -fstack-protector-strong -fPIC -D_FORTIFY_SOURCE=2 -MD -MT src/tbb/CMakeFiles/tbb.dir/semaphore.cpp.obj -MF src\tbb\CMakeFiles\tbb.dir\semaphore.cpp.obj.d -o src/tbb/CMakeFiles/tbb.dir/semaphore.cpp.obj -c C:/Users/pedro/.conan2/p/b/onetb0a0dbc966087a/b/src/src/tbb/semaphore.cpp
CLANG_~1: error: unsupported option '-fPIC' for target 'x86_64-pc-windows-msvc'
[23/45] Building CXX object src/tbb/CMakeFiles/tbb.dir/small_object_pool.cpp.obj
FAILED: src/tbb/CMakeFiles/tbb.dir/small_object_pool.cpp.obj
C:\PROGRA~1\LLVM\bin\CLANG_~1.EXE -D__TBB_BUILD -D__TBB_USE_ITT_NOTIFY -IC:/Users/pedro/.conan2/p/b/onetb0a0dbc966087a/b/src/src/tbb/../../include -m64 -stdlib=libc++ -O3 -DNDEBUG -std=c++23 -D_DLL -D_MT -Xclang --dependent-lib=msvcrt -Wall -Wextra -mrtm -mwaitpkg -Wformat -Wformat-security -Werror=format-security -fstack-protector-strong -fPIC -D_FORTIFY_SOURCE=2 -MD -MT src/tbb/CMakeFiles/tbb.dir/small_object_pool.cpp.obj -MF src\tbb\CMakeFiles\tbb.dir\small_object_pool.cpp.obj.d -o src/tbb/CMakeFiles/tbb.dir/small_object_pool.cpp.obj -c C:/Users/pedro/.conan2/p/b/onetb0a0dbc966087a/b/src/src/tbb/small_object_pool.cpp
CLANG_~1: error: unsupported option '-fPIC' for target 'x86_64-pc-windows-msvc'
[24/45] Building CXX object src/tbb/CMakeFiles/tbb.dir/task.cpp.obj
FAILED: src/tbb/CMakeFiles/tbb.dir/task.cpp.obj
C:\PROGRA~1\LLVM\bin\CLANG_~1.EXE -D__TBB_BUILD -D__TBB_USE_ITT_NOTIFY -IC:/Users/pedro/.conan2/p/b/onetb0a0dbc966087a/b/src/src/tbb/../../include -m64 -stdlib=libc++ -O3 -DNDEBUG -std=c++23 -D_DLL -D_MT -Xclang --dependent-lib=msvcrt -Wall -Wextra -mrtm -mwaitpkg -Wformat -Wformat-security -Werror=format-security -fstack-protector-strong -fPIC -D_FORTIFY_SOURCE=2 -MD -MT src/tbb/CMakeFiles/tbb.dir/task.cpp.obj -MF src\tbb\CMakeFiles\tbb.dir\task.cpp.obj.d -o src/tbb/CMakeFiles/tbb.dir/task.cpp.obj -c C:/Users/pedro/.conan2/p/b/onetb0a0dbc966087a/b/src/src/tbb/task.cpp
CLANG_~1: error: unsupported option '-fPIC' for target 'x86_64-pc-windows-msvc'
ninja: build stopped: subcommand failed.

onetbb/2021.10.0: ERROR:
Package '87d6a8714d755a1dc18af20094f0b661afc4fd01' build failed
onetbb/2021.10.0: WARN: Build folder C:\Users\pedro\.conan2\p\b\onetb0a0dbc966087a\b\build\Release
*********************************************************
Recipe 'onetbb/2021.10.0' cannot build its binary
It is possible that this recipe is not Conan 2.0 ready
If the recipe comes from ConanCenter, report it at https://github.com/conan-io/conan-center-index/issues
If it is your recipe, check if it is updated to 2.0
*********************************************************

ERROR: onetbb/2021.10.0: Error in build() method, line 137
        cmake.build()
        ConanException: Error 1 while executing

To be clear, I'm not using WSL or clang-cl. I just want to build my project using clang++, on Windows. This should allow me to use the same compiler regardless of whether I'm using Windows or Linux.

A search on the interenet reveals that -fPIC might not be a valid flag on Windows, but then why would onetbb try to build itself with that flag?

I thought such a small project would be easy to build thanks to Conan, but it appears I'm going down some obscure rabbithole. I really appreciate your help on this. I'll also update the title in case others have similar difficulties in the future.

Thank you.

@pgrossomoreira pgrossomoreira changed the title [question] How to require ninja in conanfile.txt [question] How to build onetbb with clang++ on Windows? Nov 23, 2023
@SpaceIm
Copy link
Contributor

SpaceIm commented Nov 23, 2023

A search on the interenet reveals that -fPIC might not be a valid flag on Windows, but then why would onetbb try to build itself with that flag?

No idea why, but they inject fPIC irrespective of OS if clang, which is bad: https://github.com/oneapi-src/oneTBB/blob/v2021.10.0/cmake/compilers/Clang.cmake#L53-L54

@pgrossomoreira
Copy link
Author

Thanks for the quick response! It appears that there's an ongoing pull request to fix this: uxlfoundation/oneTBB#1269

I will await its resolution and hopefully everything will work afterwards.

Thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants