-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Unable to build repo on latest VS dogfood #49646
Comments
Tagging subscribers to this area: @hoyosjs Issue DetailsI've just sync'd to the latest in main and cleaned my repo ( When I try to build (
and then an error of the form:
that kills the build.
|
This is break in the internal VS dogfood. I have opened https://dev.azure.com/devdiv/DevDiv/_workitems/edit/1292565/ on it. In the meantime, you can workaround it by using |
Thanks, @jkotas. |
This error is fixed in the latest VS build. However, there is a new set of errors that I am fixing in #49799 |
@jkotas, I'm on the latest VS build that's offered to me (31118.392.main) and I'm sync'd to main, but I'm now unable to build, even with -ninja. What version of VS do you have? With -ninja, I hit linking errors on ildasm:
|
FWIW, @stephentoub, I just ran into your original problem, tried to solve it by upgrading VS/tooling to the latest (which was also 31118.392.main), and after finding this issue found that building with |
I just tried on 31118.392.main as well. I do not see the |
Without ninja, I get:
Is that the warning-as-error you're referring to? With ninja, I get the aforementioned This is after doing: |
Yes, that's the error that I am referring to. It is actually non-surprissible hard error and I have not found yet what needs to be changed to make it go away.
I have tried again with ninja and it works fine for me. (I have done I suspect that it may be a build race condition that only repros with ninja. @jkoritzinsky Could you please help to troubleshoot it? |
Yeah, I'd tried and had no luck.
Not at my machine right now, but I've been doing: |
This error can be worked around by passing |
I have opened https://dev.azure.com/devdiv/DevDiv/_workitems/edit/1295929/ on the LNK1268 error. It looks like a recently introduced bug in VC++ msbuild targets or tasks. |
No dice. I did:
and I got:
with earlier details like:
No idea how my system differs from yours. |
I tried installing the latest VS2019 release (16.9.2) hoping that would unblock me, but even when running in its dev prompt, I get the same failures. Presumably the build is finding something newer on my box and using it. |
I was able to build successfully on another machine with /p:NoPgoOptimize=true, so... 🤷♂️ |
I have managed to hit the LNK2011 errors a few times on my machine too. It looks like an intermittent error. I have asked about diagnosing it on the email thread with the C++ compiler team. |
@stephentoub Could you please check cmake version being used for the success and failure cases? I believe that the LNK2011 errors are caused by a bug in some older cmake versions (e.g. 3.16.0-rc1), and upgrading to the latest cmake makes them go away. |
That did it! I had cmake 3.16-rc2. I updated to the latest release build (3.19.7), and with your merged workaround last night, I can now successfully build ( Thank you! (Worth updating https://github.com/dotnet/runtime/blob/main/docs/workflow/requirements/windows-requirements.md#cmake ?) |
I've just sync'd to the latest in main and cleaned my repo (
git clean -xdf
). I have VS Version 16.10.0 Preview 2.0 [31115.18.main] installed.When I try to build (
.\build.cmd clr+libs -rc release
), I get ~400 warnings of the form:and then an error of the form:
that kills the build.
The text was updated successfully, but these errors were encountered: