-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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
[Docker] Building vcpkg.exe failed suddenly in Windows Server Core 2019. #14883
Comments
Can you run the following command manually and provide the failure log?
Thanks. |
@JackBoosY Hey, it builds fine on my personal Windows 10 Home machine -> gist:vcpkg_2020_12_02.log But I have full Visual Studio 2019 with everything installed. I need to be able to build vcpkg on a CI system, and the mentioned minimal docker image above used to build fine until very recently. Unfortunately, I can't seem to be able to run Docker (Windows based) on my personal machine, so my Docker interaction has been by trying things directly with the CI system. The command that I need to work with can be just
Maybe the minimal requirements for the |
I think I found the Dockerfile I build upon, it uses I understand the Readme says : Visual Studio 2015 Update 3 or greater with the English language pack; but I really wanted to use vcpkg in a CI environment on Windows Docker, is there anything I can add to fill current visual studio requirements for vcpkg? My cpp project needs to keep compatibility with Windows 7 and forward. I tried to add
On the dockerfile, but this requires the machine to restart, breaking the Dockerfile build process. I tried to instead add
But this didn't work either, because it can't find the full VS installation. Is there a package for vs2019 that is safe to use in a Dockerfile build? I found this online but it's old and doesn't work - and was closed as not priority! |
cc @BillyONeal |
Sorry, turns out it's a change of components on the base Docker image on my CI provider. This is the minimum I needed to build vcpkg:
It takes an hour to build this Docker but after it can be used to build |
More details are here: cirruslabs/docker-images-windows#16 Sorry for the confusion. |
It looks like the actual cause was that installing the build tools failed and thus there was no bug? Can you confirm @ericoporto ? |
Yes, it was what I concluded in the end. I still left the Dockerfile in the comments in case someone find themselves working with cpp in the Note: there wasn't any error on any command line anywhere before but the vcpkg. |
Sorry, after a long investigation I do believe something changed with vcpkg bootstrapping. I am pretty sure I didn't needed everything from Is there any chance it used to work with standalone CMake and now requires |
I think it's more likely that how VS factored their components changed, since we haven't changed anything about bootstrap but our CI has been broken by VS changing their component structures before.
Bootstrap does not use cmake at all, it uses https://github.com/microsoft/vcpkg/blob/master/toolsrc/windows-bootstrap/vcpkg.vcxproj |
Thanks! I am following the guide here: https://docs.microsoft.com/en-us/visualstudio/install/build-tools-container?view=vs-2019 And trying to figure out the exact minimal things to be able to figure out why it broke I checked the details of the previous image and I was using a container with some workloads installed (including recommended but not optional), but the image was fairly old - around an year maybe, maybe even a bit more? Recently the image dropped from the cache and the new Docker container even though theoretically didn't change VS install wise (other things changed like mingw and msys2) , vcpkg stopped building. The reason I am investigating is because relying only on Workloads my container that successfully bootstraps vcpkg right now is a bit too big, leading to timeouts on my CI. Thanks for directing me to the proper vcxproj since this will make things a lot easier to me! |
Building vcpkg.exe is not a problem now, with latest source, it will downlaod the latest release version of vcpkg on windows, we don't need build it again. Please reopen this issue if I misunderstand someting here. |
I am having similar issues with running vcpkg on the latest windows server core 20H2 docker image. |
@DevsAnon, please creat a new issue to track the failures. |
Describe the bug
Error when building vcpkg current master f8baf48
Environment
To Reproduce
My Dockerfile:
This gives me the following error
Expected behavior
I expected vcpkg to build fine, it was building fine at least yesterday.
Additional context
This build is running in Cirrus CI
The text was updated successfully, but these errors were encountered: