mold icon indicating copy to clipboard operation
mold copied to clipboard

ninja error "FindFirstFileExA" during build on windows with vs2022

Open leonidgorbachev opened this issue 1 year ago • 1 comments
trafficstars

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.

leonidgorbachev avatar May 15 '24 14:05 leonidgorbachev

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?

rui314 avatar May 20 '24 03:05 rui314