Open shenjackyuanjie opened 1 day ago
to be notice, this is different with #225 , which is a linker error this is an cmake error
Thanks for reporting and for differentiating it from #225.
It's very hard to see what the actual error is, within the cmake
invocation.
Further, is it correct to assume that the previous version, 1.1.16 worked?
Further, is it correct to assume that the previous version, 1.1.16 worked?
I'm testing it
hmmmm the issue appeared when i'm installing gitoxide-0.39.0 but I don't know how to replace the dependency
Interesting!
You could try to downgrade cargo update --precise 1.1.16 -p libz-ng-sys@1.1.20
- it will probably work then as the previous release didn't have that problem.
yes, downgrading to 1.1.16 works
After looking at the changes between https://github.com/rust-lang/libz-sys/compare/1.1.16-zng...1.1.20-zng it once again became clear that the cause of the issue certainly is upstream. I can't see how the changes here should affect cmake
that way.
I have notice some thing
compare256_c.c
D:\APPS\rust\cargo\registry\src\rsproxy.cn-0dccff568467c15b\libz-ng-sys-1.1.20\src\zlib-ng\zbuild.h(1,1): error C2220: 以下警告被视为错误 [V:\githubs\tmp-path\gitoxide\target\release\build\libz-ng-sys-20cfbbbe2e3f522b\out\build\zlib.vcxproj]
(编译源文件“D:/APPS/rust/cargo/registry/src/rsproxy.cn-0dccff568467c15b/libz-ng-sys-1.1.20/src/zlib-ng/arch/generic/compare256_c.c”)
D:\APPS\rust\cargo\registry\src\rsproxy.cn-0dccff568467c15b\libz-ng-sys-1.1.20\src\zlib-ng\zbuild.h(1,1): warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失 [V:\githubs\tmp-path\gitoxide\target\release\build\libz-ng-sys-20cfbbbe2e3f522b\out\build\zlib.vcxproj]
(编译源文件“D:/APPS/rust/cargo/registry/src/rsproxy.cn-0dccff568467c15b/libz-ng-sys-1.1.20/src/zlib-ng/arch/generic/compare256_c.c”)
C2220: 以下警告被视为错误
C2220: The following warnings are considered errors
is this some kind of -Wall
?
and the warning is actually just encoding warnings
is this some kind of -Wall ?
It seems like so, maybe you are using the wrong encoding/locale for the source file?
Not familiar with these encoding stuff but I think it's best to save everything as utf-8
it is actually a warning that you have saved your file in utf-8, but the local encodings are gbk