-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
[openssl] build failure #41796
Comments
Maybe you can start with showing your changes without opening a PR. openssl triggers a lot of CI. At the moment it is not even clear if you used the toolchain correctly. (You must use vcpkg's toolchain file. You can chainload other toolchain file.) |
Sure. I got build errors about not being able to find
Parallel build did not work so I added the
For the release build the pdb file was not generated so I added
I got lots of errors about missing headers, linking errors and missing
Finding the used SDK based on the RC compiler chosen and setting the include environment variable:
Setting the lib environment variable based on the paths found above and the architecture:
Setting
Let me know what you think. |
First: Why do you deal with Second: Think twice which flags actually belong to the CMake toolchain and which need to go to the portfile. Basically we want to inject the flags from the CMake toolchain into the openssl build. Again, openssl's proprietary configure/make is a barrier here. What must be avoided is adding flags to individual ports which are actually a shortcoming of the CMake toolchain. OTOH using another toolchain for MSVC might show more general issues with assumptions which are hardcoded into some vcpkg scripts. However, openssl might not be the best port to find out. Third: There is a known and frequent issue with the openssl port: ATM it doesn't like the MSVC tools being in paths with spaces (such as |
Thanks for you feedback. First: Second: As far as I am aware Third: That is an interesting question. Right now I would not know how to solve this without either using |
vcpkg/scripts/cmake/vcpkg_build_nmake.cmake Lines 86 to 90 in e60236e
|
|
Operating system
Windows 10
Compiler
MSVC
Steps to reproduce the behavior
Install openssl in manifest mode using the toolchain from https://github.com/MarkSchofield/WindowsToolchain/tree/main
Failure logs
In the process of getting the build to work I encountered many errors:
Additional context
Since many of the errors I encountered are also mentioned in bug reports, would it make sense to do a pull request with the changes I made to port.cake to get things to work?
The text was updated successfully, but these errors were encountered: