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
Build fails on Windows when cxx.h
is already present in the targets
folder due to cache
#1085
Comments
Sigh — apparently I tried adding some logging to look at whether the paths involved exists. The path we are copying from = "C:\\Users\\runneradmin\\.cargo\\git\\checkouts\\cxx-be839b8f5bc98a2b\\1b1f78a\\include\\cxx.h"
from.exists() = true
to = "D:\\a\\simdjson-rust\\simdjson-rust\\target\\debug\\build\\simdjson-rust-73b1080797fedd25\\out\\cxxbridge\\include\\rust\\cxx.h"
to.exists() = false
parent = "D:\\a\\simdjson-rust\\simdjson-rust\\target\\debug\\build\\simdjson-rust-73b1080797fedd25\\out\\cxxbridge\\include\\rust"
parent.exists() = true
parent.is_dir() = true
cxxbridge error: Failed to copy `C:\Users\runneradmin\.cargo\git\checkouts\cxx-be839b8f5bc98a2b\1b1f78a\include\cxx.h` -> `D:\a\simdjson-rust\simdjson-rust\target\debug\build\simdjson-rust-73b1080797fedd25\out\cxxbridge\include\rust\cxx.h`
Caused by:
The filename, directory name, or volume label syntax is incorrect. (os error 123) |
Correction, in the above, the path: |
That fix makes it proceed slightly further but it still doesn't work because cxx-build is unable to get rid of the old dangling symlink, despite now knowing that it exists. On Windows |
Thanks for fixing this! |
On Windows, the build fails when a project is built with a cache and
cxx.h
is already present. It fails to copycxx.h
.https://github.com/SunDoge/simdjson-rust/runs/8049220520?check_suite_focus=true#step:6:71
SunDoge/simdjson-rust#16
The text was updated successfully, but these errors were encountered: