-
Notifications
You must be signed in to change notification settings - Fork 6.1k
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
[boost-stacktrace] fail to build with release triplet: "No libraries were produced." #38642
Comments
The title states "with debug-only triplet", but the post says "VCPKG_BUILD_TYPE=release". The log shows both types are built. The triplet has an unusual combination: dynamic linrary linkage, static CRT linkage. Is this intentional? The toolchain customizes cmake root path settings. Maybe this has undesired side effects
Check logs from buildtrees/boost-stacktrace. FTR boost-stacktrace:x64-mingw-dynamic builds successfully, on a linux host. |
Also means older boost version |
Sorry for the confusion about build types. Now it's definitely equals to "release" and builds for release (checked in the log). I also modified the cmake file of my toolchain and triplet. My triplet (sg-x64-mingw-dynamic-release.cmake):
My toolchain (mingw.cmake):
I also indicate a preset for the build, which I did not indicate earlier:
Now I get the following errors (it seems like the package is being built in the wrong C++ standard location):
I also attach the vcpkg install log:
Sorry for the possibly stupid questions, I'm still new to cross-compiling projects |
It is pullling wrong headers, indeed. Maybe it is better to make yourself familiar with cross-compiling and mingw in more usual setups? |
I updated vcpkg, but the cause of the error seems to remain the same. I can’t use the standard x64-mingw-dynamic triplet because spdlog will not be build, which apparently requires the posix multithreading model (it doesn’t find std::thread, std::mutex, etc.), and when using the x64-mingw-dynamic triplet, it seems that a toolchain with a win32 model is used. My triplet, toolchain and CMakePresets remain unchanged. install-x64-mingw-dynamic-dbg-out.log:
vcpkg install:
|
The mingw triplets don't enforce a particular multithreading model. It is up to your mingw installation. |
Sorry, but this does not solve my problem with llvm-mingw and the reason for the error remains unclear. You're just advising me to use the standard x64-mingw-dynamic. Or did I misunderstand you? |
There is still |
Operating system
Host: Linux. Target: MinGW x86_64
Compiler
llvm-mingw
Steps to reproduce the behavior
Target triplet:
Using toolchaing:
Vcpkg version: 2024-02-07-8a83681f921b10d86ae626fd833c253f4f8c355b
Build type: release
Failure logs
Additional context
Hi, I know this is a duplicate of #35500, but in this case my VCPKG_BUILD_TYPE=release. What should I do?
The text was updated successfully, but these errors were encountered: