Skip to content
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

ninja error "FindFirstFileExA" during build on windows with vs2022 #1260

Open
leonidgorbachev opened this issue May 15, 2024 · 1 comment
Open

Comments

@leonidgorbachev
Copy link

I did nothing special to reproduce this on new clean machine:

  • have VS2022 professional
  • have clang 18.1
  • Clone https://github.com/rui314/mold/
  • run "C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Auxiliary\Build\vcvars64.bat" && cmake.exe -G "Ninja" -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=clang-cl.exe -DCMAKE_CXX_COMPILER=clang-cl.exe -DCMAKE_INSTALL_PREFIX=C:\GenesysCloud\tmp\mold-release C:\GenesysCloud\tmp\mold && ninja && ninja install"

the result of ninja is:
[467/467] Linking CXX executable mold.exe
ninja: error: FindFirstFileExA(Note: including file: C:/Program Files (x86)/Windows Kits/10/include/10.0.22621.0/shared): The filename, directory name, or volume label syntax is incorrect.

Folder "C:/Program Files (x86)/Windows Kits/10/include/10.0.22621.0/shared" exists and the content of folder seems to be correct.

@rui314
Copy link
Owner

rui314 commented May 20, 2024

I don't have a Windows machine. The only harness ensuring mold can be built on Windows is our GitHub buildbot. Did you have any idea why it failed in your configuration?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants