You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to build trunk on windows-gnu toolchain using the rustls feature flag. This added the aws-lc-sys crate which tries to test the C compiler via cmake, but fails because the argument -ffile-prefix-map is not properly quoted when there are backslashes and spaces in the path.
See the running: "cmake.exe" arguments below where the ffile-prefix-map argument is correctly quoted (except the space) but cmake seems to have removed the quotation when passed to cc.exe. I was about to report this to CMake, but their rules say
If you are having trouble building a specific third-party project
that uses CMake, ask for help in that project's forums first.
I made contradicting statements before during edits about what gets quoted correctly
I saw in the cmake.exe arguments that spaces are not backslash quoted while backslashes were, that got me confused. Nevertheless according to the errors neither spaces nor backslashes were correctly passed to cc.exe
I've started looking into this. From my initial testing, the issue appears to be (more generally) that the CMake build for AWS-LC doesn't tolerate spaces in the path of the source files. (I believe you're also correct that the compiler options also need to be quoted.) But I need to do some more digging to better understand what the best fix should be.
Thanks for letting us know about this! We hope to have a fix for this build issue soon.
Problem:
I tried to build
trunk
on windows-gnu toolchain using therustls
feature flag. This added theaws-lc-sys
crate which tries to test the C compiler viacmake
, but fails because the argument-ffile-prefix-map
is not properly quoted when there are backslashes and spaces in the path.See the
running: "cmake.exe"
arguments below where theffile-prefix-map
argument is correctly quoted (except the space) butcmake
seems to have removed the quotation when passed tocc.exe
. I was about to report this to CMake, but their rules sayRelevant details
AWS-LC for Rust versions or commit: [email protected]
System information:
Build log:
The text was updated successfully, but these errors were encountered: