-
Notifications
You must be signed in to change notification settings - Fork 125
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
TensorStore does not compile with latest Visual Studio #110
Comments
Hi @dzenanz , just weighing in out of interest, I am a bit confused because it looks like the first error is here:
But VS22 seems to have built that executable earlier:
Could you confirm whether that file exists on your local machine? Does the error still throw when you try to build again? |
It also fails to build in
@tbirdso |
Incremental build built 15 more projects: Build: 15 succeeded, 173 failed, 1027 up-to-date, 6 skipped |
Second incremental build had the same result. But as the number of failed projects remains at 173, it means that repeated builds do no compile anything new. |
First error snippet:
What CMake generator are you using? We test with ninja, so maybe try that. |
I am using Is there some way to call that destructor from here: https://github.com/InsightSoftwareConsortium/ITKIOOMEZarrNGFF/blob/v0.1.7/src/itkOMEZarrNGFFImageIO.cxx#L811 |
Yeah, I'm just wondering if it builds there as an independent data point. |
That also fails:
|
A few reruns later:
It seems that |
As additional data point here, I am able to reproduce @dzenanz 's results with MSVC on Windows 11 when building from
|
There are also 173 projects failing to build with Visual Studio 2019 (16.11.29). |
Thanks for your additional tests. It is helpful to know that it fails also with ninja because that means we don't need to worry about debugging with the visual studio generator in particular. I suspect the issue may be related to the specific build of bash that you have in your path. Can you tell us what that is? We test with bash from git for windows. @tbirdso I think you are actually getting a separate error --- that bash is not found. I believe previously the build did not require bash on Windows but it is not required due to the changes in the protobuf build. We might be able to change the protobuf build to not require bash, which would simplify things on Windows. |
I don't remember installing a system-wide bash, so I don't know where |
I have Windows 11 22H2 (OS Build 22621.2215). |
I think the version of bash in your path is a launcher for bash running in Windows subsystem for Linux 2 (WSL2). As that is a separate virtual machine it isn't going to work. Can you try building with git bash (often at C:\Program Files\Git\bin\bash.exe) in your path? |
With git's bash in the path before WSL's, ninja configuration builds. |
I can confirm adding "C:\Program Files\Git\bin" to @dzenanz Let's plan to note |
OK, but git's |
Using CMake 3.25.3 and Python 3.9.13, I run into hundreds of errors in Debug mode on VS 2022 (v17.7.3). This is with current tip of master (e371f6e). Build log is attached:
Output-Build.txt
This did not happen with 2868eab - build was successful.
The text was updated successfully, but these errors were encountered: