Open justsmth opened 1 day ago
I've dug into this some more. The failure only occurs when using the prebuilt NASM objects. This type of build invokes a batch script to retrieve the prebuilt objects. However, I think the build fails just before the script gets executed.
Here's the command and some output:
% AWS_LC_SYS_PREBUILT_NASM=1 cargo build --target x86_64-pc-windows-gnu
...
Copying platform assembly files from C:/Users/Administrator/tmp/has some spaces/aws-lc-rs/aws-lc-sys/aws-lc/generated-src/win-x86_64/crypto/ to C:/Users/Administrator/tmp/has some spaces/aws-lc-rs/target/x86_64-pc-windows-gnu/debug/build/aws-lc-sys-3bcdfcf12c78d2e3/out/build/aws-lc/crypto
'C:\Users\Administrator\tmp\has' is not recognized as an internal or external command,
operable program or batch file.
make[2]: *** [aws-lc/crypto/fipsmodule/CMakeFiles/fipsmodule.dir/build.make:117: aws-lc/crypto/fipsmodule/CMakeFiles/fipsmodule.dir/aesni-gcm-avx512.asm.obj] Error 1
make[2]: *** Waiting for unfinished jobs....
...
Unless I'm reading this wrong, Make is choking on line 117 of build.make
(the last line listed below):
aws-lc/crypto/fipsmodule/CMakeFiles/fipsmodule.dir/aesni-gcm-avx512.asm.obj: aws-lc/crypto/fipsmodule/aesni-gcm-avx512.asm
@$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green --progress-dir="/C/Users/Administrator/tmp/has some spaces/aws-lc-rs/target/x86_64-pc-windows-gnu/debug/build/aws-lc-sys-3bcdfcf12c78d2e3/out/build/CMakeFiles" --progress-num=$(CMAKE_PROGRESS_4) "Building ASM_NASM object aws-lc/crypto/fipsmodule/CMakeFiles/fipsmodule.dir/aesni-gcm-avx512.asm.obj"
cd "/C/Users/Administrator/tmp/has some spaces/aws-lc-rs/target/x86_64-pc-windows-gnu/debug/build/aws-lc-sys-3bcdfcf12c78d2e3/out/build/aws-lc/crypto/fipsmodule" && "/C/Users/Administrator/tmp/has some spaces/aws-lc-rs/aws-lc-sys/builder/prebuilt-nasm.bat" $(ASM_NASM_DEFINES) $(ASM_NASM_INCLUDES) $(ASM_NASM_FLAGS) -f win64 -o CMakeFiles/fipsmodule.dir/aesni-gcm-avx512.asm.obj "/C/Users/Administrator/tmp/has some spaces/aws-lc-rs/target/x86_64-pc-windows-gnu/debug/build/aws-lc-sys-3bcdfcf12c78d2e3/out/build/aws-lc/crypto/fipsmodule/aesni-gcm-avx512.asm"
Problem:
When using the prebuilt NASM binaries and the path contains spaces, builds targeting
x86_64-pc-windows-gnu
fail.Reported by @s-mayrh here.
Relevant details
AWS-LC for Rust versions or commit: aws-lc-sys@0.23.0
System information:
Build log: