NiwakaDev edited issue #6021:
I could build this project by running
cargo build
. However, I tried to runcargo test --all
, and then Tests fails.Error detail:
usernamenoMacBook-Air:wasmtime username$ cargo test --all Compiling pqcrypto-kyber v0.7.5 The following warnings were emitted during compilation: warning: error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: can't open file: /Users/username/.../wasmtime/target/debug/build/pqcrypto-kyber-7062f84a0c97c841/out/libkyber512-90s_aarch64.a (No such file or directory) warning: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ar: internal ranlib command failed error: failed to run custom build command for `pqcrypto-kyber v0.7.5` Caused by: process didn't exit successfully: `/Users/username/.../wasmtime/target/debug/build/pqcrypto-kyber-05c83ad2aa29476a/build-script-build` (exit status: 1) --- stdout TARGET = Some("aarch64-apple-darwin") OPT_LEVEL = Some("0") HOST = Some("aarch64-apple-darwin") CC_aarch64-apple-darwin = None CC_aarch64_apple_darwin = None HOST_CC = None CC = None CFLAGS_aarch64-apple-darwin = None CFLAGS_aarch64_apple_darwin = None HOST_CFLAGS = None CFLAGS = None CRATE_CC_NO_DEFAULTS = None DEBUG = Some("true") CARGO_CFG_TARGET_FEATURE = Some("aes,crc,dit,dotprod,dpb,dpb2,fcma,fhm,flagm,fp16,frintts,jsconv,lor,lse,neon,paca,pacg,pan,pmuv3,ras,rcpc,rcpc2,rdm,sb,sha2,sha3,ssbs,vh") running: "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-arch" "arm64" "-I" "/Users/username/.cargo/registry/src/github.com-1ecc6299db9ec823/pqcrypto-internals-0.2.4/include" "-I" "pqclean/common" "-I" "pqclean/crypto_kem/kyber512/clean" "-Wall" "-Wextra" "-o" "/Users/username/Desktop/\xe8\x87\xaa\xe5\xad\xa6\xe7\x94\xa8pdf\xe7\xbd\xae\xe3\x81\x8d\xe5\xa0\xb4/wasmtime/target/debug/build/pqcrypto-kyber-7062f84a0c97c841/out/pqclean/crypto_kem/kyber512/clean/ntt.o" "-c" "pqclean/crypto_kem/kyber512/clean/ntt.c" running: "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-arch" "arm64" "-I" "/Users/username/.cargo/registry/src/github.com-1ecc6299db9ec823/pqcrypto-internals-0.2.4/include" "-I" "pqclean/common" "-I" "pqclean/crypto_kem/kyber512/clean" "-Wall" "-Wextra" "-o" "/Users/username/Desktop/\xe8\x87\xaa\xe5\xad\xa6\xe7\x94\xa8pdf\xe7\xbd\xae\xe3\x81\x8d\xe5\xa0\xb4/wasmtime/target/debug/build/pqcrypto-kyber-7062f84a0c97c841/out/pqclean/crypto_kem/kyber512/clean/cbd.o" "-c" "pqclean/crypto_kem/kyber512/clean/cbd.c" running: "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-arch" "arm64" "-I" "/Users/username/.cargo/registry/src/github.com-1ecc6299db9ec823/pqcrypto-internals-0.2.4/include" "-I" "pqclean/common" "-I" "pqclean/crypto_kem/kyber512/clean" "-Wall" "-Wextra" "-o" "/Users/username/Desktop/\xe8\x87\xaa\xe5\xad\xa6\xe7\x94\xa8pdf\xe7\xbd\xae\xe3\x81\x8d\xe5\xa0\xb4/wasmtime/target/debug/build/pqcrypto-kyber-7062f84a0c97c841/out/pqclean/crypto_kem/kyber512/clean/poly.o" "-c" "pqclean/crypto_kem/kyber512/clean/poly.c" running: "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-arch" "arm64" "-I" "/Users/username/.cargo/registry/src/github.com-1ecc6299db9ec823/pqcrypto-internals-0.2.4/include" "-I" "pqclean/common" "-I" "pqclean/crypto_kem/kyber512/clean" "-Wall" "-Wextra" "-o" "/Users/username/Desktop/\xe8\x87\xaa\xe5\xad\xa6\xe7\x94\xa8pdf\xe7\xbd\xae\xe3\x81\x8d\xe5\xa0\xb4/wasmtime/target/debug/build/pqcrypto-kyber-7062f84a0c97c841/out/pqclean/crypto_kem/kyber512/clean/symmetric-shake.o" "-c" "pqclean/crypto_kem/kyber512/clean/symmetric-shake.c" running: "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-arch" "arm64" "-I" "/Users/username/.cargo/registry/src/github.com-1ecc6299db9ec823/pqcrypto-internals-0.2.4/include" "-I" "pqclean/common" "-I" "pqclean/crypto_kem/kyber512/clean" "-Wall" "-Wextra" "-o" "/Users/username/Desktop/\xe8\x87\xaa\xe5\xad\xa6\xe7\x94\xa8pdf\xe7\xbd\xae\xe3\x81\x8d\xe5\xa0\xb4/wasmtime/target/debug/build/pqcrypto-kyber-7062f84a0c97c841/out/pqclean/crypto_kem/kyber512/clean/kem.o" "-c" "pqclean/crypto_kem/kyber512/clean/kem.c" running: "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-arch" "arm64" "-I" "/Users/username/.cargo/registry/src/github.com-1ecc6299db9ec823/pqcrypto-internals-0.2.4/include" "-I" "pqclean/common" "-I" "pqclean/crypto_kem/kyber512/clean" "-Wall" "-Wextra" "-o" "/Users/username/Desktop/\xe8\x87\xaa\xe5\xad\xa6\xe7\x94\xa8pdf\xe7\xbd\xae\xe3\x81\x8d\xe5\xa0\xb4/wasmtime/target/debug/build/pqcrypto-kyber-7062f84a0c97c841/out/pqclean/crypto_kem/kyber512/clean/reduce.o" "-c" "pqclean/crypto_kem/kyber512/clean/reduce.c" running: "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-arch" "arm64" "-I" "/Users/username/.cargo/registry/src/github.com-1ecc6299db9ec823/pqcrypto-internals-0.2.4/include" "-I" "pqclean/common" "-I" "pqclean/crypto_kem/kyber512/clean" "-Wall" "-Wextra" "-o" "/Users/username/Desktop/\xe8\x87\xaa\xe5\xad\xa6\xe7\x94\xa8pdf\xe7\xbd\xae\xe3\x81\x8d\xe5\xa0\xb4/wasmtime/target/debug/build/pqcrypto-kyber-7062f84a0c97c841/out/pqclean/crypto_kem/kyber512/clean/polyvec.o" "-c" "pqclean/crypto_kem/kyber512/clean/polyvec.c" running: "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-arch" "arm64" "-I" "/Users/username/.cargo/registry/src/github.com-1ecc6299db9ec823/pqcrypto-internals-0.2.4/include" "-I" "pqclean/common" "-I" "pqclean/crypto_kem/kyber512/clean" "-Wall" "-Wextra" "-o" "/Users/username/Desktop/\xe8\x87\xaa\xe5\xad\xa6\xe7\x94\xa8pdf\xe7\xbd\xae\xe3\x81\x8d\xe5\xa0\xb4/wasmtime/target/debug/build/pqcrypto-kyber-7062f84a0c97c841/out/pqclean/crypto_kem/kyber512/clean/indcpa.o" "-c" "pqclean/crypto_kem/kyber512/clean/indcpa.c" exit status: 0 running: "cc" "-O0" "-ffunction-
Hardware Environment:
Apple M1
Operating System:
OS: MacOS Ventura (version 13.0)
Build tools:
cc version:
Apple clang version 14.0.0 (clang-1400.0.29.202) Target: arm64-apple-darwin22.1.0 Thread model: posix InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
cargo version: 1.66.0
NiwakaDev edited issue #6021:
I could build this project by running
cargo build
. However, I tried to runcargo test --all
, and then Tests fail.Error detail:
usernamenoMacBook-Air:wasmtime username$ cargo test --all Compiling pqcrypto-kyber v0.7.5 The following warnings were emitted during compilation: warning: error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: can't open file: /Users/username/.../wasmtime/target/debug/build/pqcrypto-kyber-7062f84a0c97c841/out/libkyber512-90s_aarch64.a (No such file or directory) warning: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ar: internal ranlib command failed error: failed to run custom build command for `pqcrypto-kyber v0.7.5` Caused by: process didn't exit successfully: `/Users/username/.../wasmtime/target/debug/build/pqcrypto-kyber-05c83ad2aa29476a/build-script-build` (exit status: 1) --- stdout TARGET = Some("aarch64-apple-darwin") OPT_LEVEL = Some("0") HOST = Some("aarch64-apple-darwin") CC_aarch64-apple-darwin = None CC_aarch64_apple_darwin = None HOST_CC = None CC = None CFLAGS_aarch64-apple-darwin = None CFLAGS_aarch64_apple_darwin = None HOST_CFLAGS = None CFLAGS = None CRATE_CC_NO_DEFAULTS = None DEBUG = Some("true") CARGO_CFG_TARGET_FEATURE = Some("aes,crc,dit,dotprod,dpb,dpb2,fcma,fhm,flagm,fp16,frintts,jsconv,lor,lse,neon,paca,pacg,pan,pmuv3,ras,rcpc,rcpc2,rdm,sb,sha2,sha3,ssbs,vh") running: "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-arch" "arm64" "-I" "/Users/username/.cargo/registry/src/github.com-1ecc6299db9ec823/pqcrypto-internals-0.2.4/include" "-I" "pqclean/common" "-I" "pqclean/crypto_kem/kyber512/clean" "-Wall" "-Wextra" "-o" "/Users/username/Desktop/\xe8\x87\xaa\xe5\xad\xa6\xe7\x94\xa8pdf\xe7\xbd\xae\xe3\x81\x8d\xe5\xa0\xb4/wasmtime/target/debug/build/pqcrypto-kyber-7062f84a0c97c841/out/pqclean/crypto_kem/kyber512/clean/ntt.o" "-c" "pqclean/crypto_kem/kyber512/clean/ntt.c" running: "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-arch" "arm64" "-I" "/Users/username/.cargo/registry/src/github.com-1ecc6299db9ec823/pqcrypto-internals-0.2.4/include" "-I" "pqclean/common" "-I" "pqclean/crypto_kem/kyber512/clean" "-Wall" "-Wextra" "-o" "/Users/username/Desktop/\xe8\x87\xaa\xe5\xad\xa6\xe7\x94\xa8pdf\xe7\xbd\xae\xe3\x81\x8d\xe5\xa0\xb4/wasmtime/target/debug/build/pqcrypto-kyber-7062f84a0c97c841/out/pqclean/crypto_kem/kyber512/clean/cbd.o" "-c" "pqclean/crypto_kem/kyber512/clean/cbd.c" running: "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-arch" "arm64" "-I" "/Users/username/.cargo/registry/src/github.com-1ecc6299db9ec823/pqcrypto-internals-0.2.4/include" "-I" "pqclean/common" "-I" "pqclean/crypto_kem/kyber512/clean" "-Wall" "-Wextra" "-o" "/Users/username/Desktop/\xe8\x87\xaa\xe5\xad\xa6\xe7\x94\xa8pdf\xe7\xbd\xae\xe3\x81\x8d\xe5\xa0\xb4/wasmtime/target/debug/build/pqcrypto-kyber-7062f84a0c97c841/out/pqclean/crypto_kem/kyber512/clean/poly.o" "-c" "pqclean/crypto_kem/kyber512/clean/poly.c" running: "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-arch" "arm64" "-I" "/Users/username/.cargo/registry/src/github.com-1ecc6299db9ec823/pqcrypto-internals-0.2.4/include" "-I" "pqclean/common" "-I" "pqclean/crypto_kem/kyber512/clean" "-Wall" "-Wextra" "-o" "/Users/username/Desktop/\xe8\x87\xaa\xe5\xad\xa6\xe7\x94\xa8pdf\xe7\xbd\xae\xe3\x81\x8d\xe5\xa0\xb4/wasmtime/target/debug/build/pqcrypto-kyber-7062f84a0c97c841/out/pqclean/crypto_kem/kyber512/clean/symmetric-shake.o" "-c" "pqclean/crypto_kem/kyber512/clean/symmetric-shake.c" running: "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-arch" "arm64" "-I" "/Users/username/.cargo/registry/src/github.com-1ecc6299db9ec823/pqcrypto-internals-0.2.4/include" "-I" "pqclean/common" "-I" "pqclean/crypto_kem/kyber512/clean" "-Wall" "-Wextra" "-o" "/Users/username/Desktop/\xe8\x87\xaa\xe5\xad\xa6\xe7\x94\xa8pdf\xe7\xbd\xae\xe3\x81\x8d\xe5\xa0\xb4/wasmtime/target/debug/build/pqcrypto-kyber-7062f84a0c97c841/out/pqclean/crypto_kem/kyber512/clean/kem.o" "-c" "pqclean/crypto_kem/kyber512/clean/kem.c" running: "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-arch" "arm64" "-I" "/Users/username/.cargo/registry/src/github.com-1ecc6299db9ec823/pqcrypto-internals-0.2.4/include" "-I" "pqclean/common" "-I" "pqclean/crypto_kem/kyber512/clean" "-Wall" "-Wextra" "-o" "/Users/username/Desktop/\xe8\x87\xaa\xe5\xad\xa6\xe7\x94\xa8pdf\xe7\xbd\xae\xe3\x81\x8d\xe5\xa0\xb4/wasmtime/target/debug/build/pqcrypto-kyber-7062f84a0c97c841/out/pqclean/crypto_kem/kyber512/clean/reduce.o" "-c" "pqclean/crypto_kem/kyber512/clean/reduce.c" running: "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-arch" "arm64" "-I" "/Users/username/.cargo/registry/src/github.com-1ecc6299db9ec823/pqcrypto-internals-0.2.4/include" "-I" "pqclean/common" "-I" "pqclean/crypto_kem/kyber512/clean" "-Wall" "-Wextra" "-o" "/Users/username/Desktop/\xe8\x87\xaa\xe5\xad\xa6\xe7\x94\xa8pdf\xe7\xbd\xae\xe3\x81\x8d\xe5\xa0\xb4/wasmtime/target/debug/build/pqcrypto-kyber-7062f84a0c97c841/out/pqclean/crypto_kem/kyber512/clean/polyvec.o" "-c" "pqclean/crypto_kem/kyber512/clean/polyvec.c" running: "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-arch" "arm64" "-I" "/Users/username/.cargo/registry/src/github.com-1ecc6299db9ec823/pqcrypto-internals-0.2.4/include" "-I" "pqclean/common" "-I" "pqclean/crypto_kem/kyber512/clean" "-Wall" "-Wextra" "-o" "/Users/username/Desktop/\xe8\x87\xaa\xe5\xad\xa6\xe7\x94\xa8pdf\xe7\xbd\xae\xe3\x81\x8d\xe5\xa0\xb4/wasmtime/target/debug/build/pqcrypto-kyber-7062f84a0c97c841/out/pqclean/crypto_kem/kyber512/clean/indcpa.o" "-c" "pqclean/crypto_kem/kyber512/clean/indcpa.c" exit status: 0 running: "cc" "-O0" "-ffunction-
Hardware Environment:
Apple M1
Operating System:
OS: MacOS Ventura (version 13.0)
Build tools:
cc version:
Apple clang version 14.0.0 (clang-1400.0.29.202) Target: arm64-apple-darwin22.1.0 Thread model: posix InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
cargo version: 1.66.0
NiwakaDev commented on issue #6021:
Thanks for your quick reply!!
This error is about the pqcrypto-kyber package failing to build on your system. That is a dependency of wasmtime, but it is not part of the wasmtime project.
I see. By the way, the above error detail is just snippet. Maybe, the below error detail might be related to this issue.
TARGET = Some("aarch64-apple-darwin") HOST = Some("aarch64-apple-darwin") AR_aarch64-apple-darwin = None AR_aarch64_apple_darwin = None HOST_AR = None AR = None running: "ar" "s" "/Users/.../wasmtime/target/debug/build/pqcrypto-kyber-7062f84a0c97c841/out/libkyber512-90s_aarch64.a" cargo:warning=error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: can't open file: /Users/.../wasmtime/target/debug/build/pqcrypto-kyber-7062f84a0c97c841/out/libkyber512-90s_aarch64.a (No such file or directory) cargo:warning=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ar: internal ranlib command failed
This error says that "There is not libkyber512-90s_aarch64.a in the project.". However, the others exist, like so:
<img width="355" alt="スクリーンショット 2023-03-15 22 37 06" src="https://user-images.githubusercontent.com/61189782/225325206-b7db633d-ae4a-48c7-a94c-9b4a0e6b443a.png">
NiwakaDev edited a comment on issue #6021:
Thanks for your quick reply!!
This error is about the pqcrypto-kyber package failing to build on your system. That is a dependency of wasmtime, but it is not part of the wasmtime project.
I see. By the way, the above error detail is just snippet. Maybe, the below error detail might be related to this issue.
TARGET = Some("aarch64-apple-darwin") HOST = Some("aarch64-apple-darwin") AR_aarch64-apple-darwin = None AR_aarch64_apple_darwin = None HOST_AR = None AR = None running: "ar" "s" "/Users/.../wasmtime/target/debug/build/pqcrypto-kyber-7062f84a0c97c841/out/libkyber512-90s_aarch64.a" cargo:warning=error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: can't open file: /Users/.../wasmtime/target/debug/build/pqcrypto-kyber-7062f84a0c97c841/out/libkyber512-90s_aarch64.a (No such file or directory) cargo:warning=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ar: internal ranlib command failed
This error says that "There is not libkyber512-90s_aarch64.a in the project.". However, the others exist, like so:
<img width="355" alt="スクリーンショット 2023-03-15 22 37 06" src="https://user-images.githubusercontent.com/61189782/225325206-b7db633d-ae4a-48c7-a94c-9b4a0e6b443a.png">
I don't know why
libkyber512-90s_aarch64.a
doesn't get created.
NiwakaDev edited a comment on issue #6021:
Thanks for your quick reply!!
This error is about the pqcrypto-kyber package failing to build on your system. That is a dependency of wasmtime, but it is not part of the wasmtime project.
I see. By the way, the above error detail is just snippet. Maybe, the below error detail might be related to this issue.
TARGET = Some("aarch64-apple-darwin") HOST = Some("aarch64-apple-darwin") AR_aarch64-apple-darwin = None AR_aarch64_apple_darwin = None HOST_AR = None AR = None running: "ar" "s" "/Users/.../wasmtime/target/debug/build/pqcrypto-kyber-7062f84a0c97c841/out/libkyber512-90s_aarch64.a" cargo:warning=error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: can't open file: /Users/.../wasmtime/target/debug/build/pqcrypto-kyber-7062f84a0c97c841/out/libkyber512-90s_aarch64.a (No such file or directory) cargo:warning=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ar: internal ranlib command failed
This error says that "There is not libkyber512-90s_aarch64.a in the project.". However, the others exist, like so:
<img width="355" alt="スクリーンショット 2023-03-15 22 37 06" src="https://user-images.githubusercontent.com/61189782/225325206-b7db633d-ae4a-48c7-a94c-9b4a0e6b443a.png">
I don't know why
libkyber512-90s_aarch64.a
doesn't get created such aslibkyber512_aarch64.a
,libkyber512-90s_clean.a
.
NiwakaDev edited a comment on issue #6021:
Thanks for your quick reply!!
This error is about the pqcrypto-kyber package failing to build on your system. That is a dependency of wasmtime, but it is not part of the wasmtime project.
I see. By the way, the above error detail is just snippet. Maybe, the below error detail might be related to this issue.
TARGET = Some("aarch64-apple-darwin") HOST = Some("aarch64-apple-darwin") AR_aarch64-apple-darwin = None AR_aarch64_apple_darwin = None HOST_AR = None AR = None running: "ar" "s" "/Users/.../wasmtime/target/debug/build/pqcrypto-kyber-7062f84a0c97c841/out/libkyber512-90s_aarch64.a" cargo:warning=error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: can't open file: /Users/.../wasmtime/target/debug/build/pqcrypto-kyber-7062f84a0c97c841/out/libkyber512-90s_aarch64.a (No such file or directory) cargo:warning=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ar: internal ranlib command failed
This error says that there is not
libkyber512-90s_aarch64.a
in the project. However, the others exist, like so:<img width="355" alt="スクリーンショット 2023-03-15 22 37 06" src="https://user-images.githubusercontent.com/61189782/225325206-b7db633d-ae4a-48c7-a94c-9b4a0e6b443a.png">
I don't know why
libkyber512-90s_aarch64.a
doesn't get created such aslibkyber512_aarch64.a
,libkyber512-90s_clean.a
.
NiwakaDev commented on issue #6021:
Do I need to change something like
Cargo.toml
?
alexcrichton commented on issue #6021:
It's known that
cargo test --all
doesn't work on non-x86_64 due to this crate. If you'd like to test everything I'd recommend the./ci/run-tests.sh
script which is what CI does.
NiwakaDev commented on issue #6021:
It's known that cargo test --all doesn't work on non-x86_64 due to this crate. If you'd like to test everything I'd recommend the ./ci/run-tests.sh script which is what CI does.
Thanks!!
NiwakaDev closed issue #6021:
I could build this project by running
cargo build
. However, I tried to runcargo test --all
, and then Tests fail.Error detail:
usernamenoMacBook-Air:wasmtime username$ cargo test --all Compiling pqcrypto-kyber v0.7.5 The following warnings were emitted during compilation: warning: error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: can't open file: /Users/username/.../wasmtime/target/debug/build/pqcrypto-kyber-7062f84a0c97c841/out/libkyber512-90s_aarch64.a (No such file or directory) warning: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ar: internal ranlib command failed error: failed to run custom build command for `pqcrypto-kyber v0.7.5` Caused by: process didn't exit successfully: `/Users/username/.../wasmtime/target/debug/build/pqcrypto-kyber-05c83ad2aa29476a/build-script-build` (exit status: 1) --- stdout TARGET = Some("aarch64-apple-darwin") OPT_LEVEL = Some("0") HOST = Some("aarch64-apple-darwin") CC_aarch64-apple-darwin = None CC_aarch64_apple_darwin = None HOST_CC = None CC = None CFLAGS_aarch64-apple-darwin = None CFLAGS_aarch64_apple_darwin = None HOST_CFLAGS = None CFLAGS = None CRATE_CC_NO_DEFAULTS = None DEBUG = Some("true") CARGO_CFG_TARGET_FEATURE = Some("aes,crc,dit,dotprod,dpb,dpb2,fcma,fhm,flagm,fp16,frintts,jsconv,lor,lse,neon,paca,pacg,pan,pmuv3,ras,rcpc,rcpc2,rdm,sb,sha2,sha3,ssbs,vh") running: "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-arch" "arm64" "-I" "/Users/username/.cargo/registry/src/github.com-1ecc6299db9ec823/pqcrypto-internals-0.2.4/include" "-I" "pqclean/common" "-I" "pqclean/crypto_kem/kyber512/clean" "-Wall" "-Wextra" "-o" "/Users/username/Desktop/\xe8\x87\xaa\xe5\xad\xa6\xe7\x94\xa8pdf\xe7\xbd\xae\xe3\x81\x8d\xe5\xa0\xb4/wasmtime/target/debug/build/pqcrypto-kyber-7062f84a0c97c841/out/pqclean/crypto_kem/kyber512/clean/ntt.o" "-c" "pqclean/crypto_kem/kyber512/clean/ntt.c" running: "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-arch" "arm64" "-I" "/Users/username/.cargo/registry/src/github.com-1ecc6299db9ec823/pqcrypto-internals-0.2.4/include" "-I" "pqclean/common" "-I" "pqclean/crypto_kem/kyber512/clean" "-Wall" "-Wextra" "-o" "/Users/username/Desktop/\xe8\x87\xaa\xe5\xad\xa6\xe7\x94\xa8pdf\xe7\xbd\xae\xe3\x81\x8d\xe5\xa0\xb4/wasmtime/target/debug/build/pqcrypto-kyber-7062f84a0c97c841/out/pqclean/crypto_kem/kyber512/clean/cbd.o" "-c" "pqclean/crypto_kem/kyber512/clean/cbd.c" running: "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-arch" "arm64" "-I" "/Users/username/.cargo/registry/src/github.com-1ecc6299db9ec823/pqcrypto-internals-0.2.4/include" "-I" "pqclean/common" "-I" "pqclean/crypto_kem/kyber512/clean" "-Wall" "-Wextra" "-o" "/Users/username/Desktop/\xe8\x87\xaa\xe5\xad\xa6\xe7\x94\xa8pdf\xe7\xbd\xae\xe3\x81\x8d\xe5\xa0\xb4/wasmtime/target/debug/build/pqcrypto-kyber-7062f84a0c97c841/out/pqclean/crypto_kem/kyber512/clean/poly.o" "-c" "pqclean/crypto_kem/kyber512/clean/poly.c" running: "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-arch" "arm64" "-I" "/Users/username/.cargo/registry/src/github.com-1ecc6299db9ec823/pqcrypto-internals-0.2.4/include" "-I" "pqclean/common" "-I" "pqclean/crypto_kem/kyber512/clean" "-Wall" "-Wextra" "-o" "/Users/username/Desktop/\xe8\x87\xaa\xe5\xad\xa6\xe7\x94\xa8pdf\xe7\xbd\xae\xe3\x81\x8d\xe5\xa0\xb4/wasmtime/target/debug/build/pqcrypto-kyber-7062f84a0c97c841/out/pqclean/crypto_kem/kyber512/clean/symmetric-shake.o" "-c" "pqclean/crypto_kem/kyber512/clean/symmetric-shake.c" running: "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-arch" "arm64" "-I" "/Users/username/.cargo/registry/src/github.com-1ecc6299db9ec823/pqcrypto-internals-0.2.4/include" "-I" "pqclean/common" "-I" "pqclean/crypto_kem/kyber512/clean" "-Wall" "-Wextra" "-o" "/Users/username/Desktop/\xe8\x87\xaa\xe5\xad\xa6\xe7\x94\xa8pdf\xe7\xbd\xae\xe3\x81\x8d\xe5\xa0\xb4/wasmtime/target/debug/build/pqcrypto-kyber-7062f84a0c97c841/out/pqclean/crypto_kem/kyber512/clean/kem.o" "-c" "pqclean/crypto_kem/kyber512/clean/kem.c" running: "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-arch" "arm64" "-I" "/Users/username/.cargo/registry/src/github.com-1ecc6299db9ec823/pqcrypto-internals-0.2.4/include" "-I" "pqclean/common" "-I" "pqclean/crypto_kem/kyber512/clean" "-Wall" "-Wextra" "-o" "/Users/username/Desktop/\xe8\x87\xaa\xe5\xad\xa6\xe7\x94\xa8pdf\xe7\xbd\xae\xe3\x81\x8d\xe5\xa0\xb4/wasmtime/target/debug/build/pqcrypto-kyber-7062f84a0c97c841/out/pqclean/crypto_kem/kyber512/clean/reduce.o" "-c" "pqclean/crypto_kem/kyber512/clean/reduce.c" running: "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-arch" "arm64" "-I" "/Users/username/.cargo/registry/src/github.com-1ecc6299db9ec823/pqcrypto-internals-0.2.4/include" "-I" "pqclean/common" "-I" "pqclean/crypto_kem/kyber512/clean" "-Wall" "-Wextra" "-o" "/Users/username/Desktop/\xe8\x87\xaa\xe5\xad\xa6\xe7\x94\xa8pdf\xe7\xbd\xae\xe3\x81\x8d\xe5\xa0\xb4/wasmtime/target/debug/build/pqcrypto-kyber-7062f84a0c97c841/out/pqclean/crypto_kem/kyber512/clean/polyvec.o" "-c" "pqclean/crypto_kem/kyber512/clean/polyvec.c" running: "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-arch" "arm64" "-I" "/Users/username/.cargo/registry/src/github.com-1ecc6299db9ec823/pqcrypto-internals-0.2.4/include" "-I" "pqclean/common" "-I" "pqclean/crypto_kem/kyber512/clean" "-Wall" "-Wextra" "-o" "/Users/username/Desktop/\xe8\x87\xaa\xe5\xad\xa6\xe7\x94\xa8pdf\xe7\xbd\xae\xe3\x81\x8d\xe5\xa0\xb4/wasmtime/target/debug/build/pqcrypto-kyber-7062f84a0c97c841/out/pqclean/crypto_kem/kyber512/clean/indcpa.o" "-c" "pqclean/crypto_kem/kyber512/clean/indcpa.c" exit status: 0 running: "cc" "-O0" "-ffunction-
Hardware Environment:
Apple M1
Operating System:
OS: MacOS Ventura (version 13.0)
Build tools:
cc version:
Apple clang version 14.0.0 (clang-1400.0.29.202) Target: arm64-apple-darwin22.1.0 Thread model: posix InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
cargo version: 1.66.0
NiwakaDev edited a comment on issue #6021:
It's known that cargo test --all doesn't work on non-x86_64 due to this crate. If you'd like to test everything I'd recommend the ./ci/run-tests.sh script which is what CI does.
Thanks!! Tests passed!!
Last updated: Dec 23 2024 at 12:05 UTC