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
tbb static not supported #3850
Comments
OSX - vs2013 ? |
@voskrese your problem is not (only) the static like below, but this #3771, the (manual fix) is in there. |
@degski static port assembly and should not collect, judging by the message https://github.com/Microsoft/vcpkg/blob/master/ports/tbb/portfile.cmake
then, the 2013 msvc project implies VC 2013, without the normal conversion of the project, the assembly is not always successful
для OSX the project is completely different
and by the way, you use the latest toolchain 14.14, I had problems with it, try 14.12 |
#@voskrese My senses tell me that the problem is the same on windows, linux and osx. I did some more checking on the web, there seem to be some people (in 2009) that got it to work (but we don't' know what "work" means). You can use the same approach that I took to solve issue #3771 and open up the .sln file and change the settings from /MD and /MDd to /MT and /MTd. Then start the build again. Iff tbb(code) doesn't object, it will work. With vcpkg alone (out-of-the-box), it's not gonna work, the message is clear "Warning: Static building not supported yet. Building dynamic.", and the devs are not saying that gratuitously or to just make you have a bad afternoon. There is (must be) a good reason and it has got to do with singleton states. tbb is an open source library, I'm sure there is demand for static tbb (I'm one of them). If it was possible, it would exist, because someone would have contributed a patch to make this happen. Linking into both static and dynamic libraries to all intents and purposes is not supported on common platforms and needs to be scrutinized closely. There was a discussion on the Boost mailing list just recently discussing this issue extensively and with great expertise, it comes down to, yes it's possible, but there is a shopping list of caveats. So don't go up that road. |
@voskrese It looks like you put some Russian through google translate. I can gauge to some extent what you're trying to say, but it's really quite hard to understand, properly, what you mean. So, iff what I'm saying is besides the point, there's not much I can say, other than what I already said. |
тулчайн - toolchain - toolset |
@voskrese You see, I didn't even do that [mis-interpretation] on purpose (I tried to google it). But, the answer is yes, I do use the latest tool-chain for my platform. |
@degski I saw this on the log file, so I recommended to reduce it to 14.12 or even 14.10, but actually it's up to you, win-dev, fix the port and it will all be compiled as you want. all in source files |
After doing a
However, in trying to consume it I get CMake errors:
Here's my current CMakeLIsts.txt And here's a gist of the CMakeOutput.log |
This is fixed in the
Hopefully these will be merged into master soon! |
Package: tbb:x64-osx
Vcpkg version: 0.0.113-unknownhash
┌─[adam][hapkido][±][master ✓][~/vcpkg]
└─▪ ./vcpkg install tbb
The following packages will be built and installed:
tbb[core]:x64-osx
Starting package 1/1: tbb:x64-osx
Building package tbb[core]:x64-osx...
-- Warning: Static building not supported yet. Building dynamic.
-- Downloading https://github.com/01org/tbb/archive/2018_U5.tar.gz...
-- Extracting source /Users/adam/vcpkg/downloads/01org-tbb-2018_U5.tar.gz
-- Using source at /Users/adam/vcpkg/buildtrees/tbb/src/2018_U5-94342757ca
-- Building /Users/adam/vcpkg/buildtrees/tbb/src/2018_U5-94342757ca/build/vs2013/makefile.sln for Release
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:56 (message):
Command failed: msbuild;/Users/adam/vcpkg/buildtrees/tbb/src/2018_U5-94342757ca/build/vs2013/makefile.sln;/p:Configuration=Release;/t:Rebuild;/p:Platform=x64;/p:PlatformToolset=external;/p:VCPkgLocalAppDataDisabled=true;/p:UseIntelMKL=No;/p:WindowsTargetPlatformVersion=;/m
Working Directory: /Users/adam/vcpkg/buildtrees/tbb/x64-osx-rel
See logs for more information:
Call Stack (most recent call first):
scripts/cmake/vcpkg_build_msbuild.cmake:119 (vcpkg_execute_required_process)
ports/tbb/portfile.cmake:25 (vcpkg_build_msbuild)
scripts/ports.cmake:71 (include)
Error: Building package tbb:x64-osx failed with: BUILD_FAILED
Please ensure you're using the latest portfiles with
.\vcpkg update
, thensubmit an issue at https://github.com/Microsoft/vcpkg/issues including:
Package: tbb:x64-osx
Vcpkg version: 0.0.113-unknownhash
Additionally, attach any relevant sections from the log files above.
The text was updated successfully, but these errors were encountered: