NiwakaDev opened issue #6021:
I could build this project by running
cargo build
. However, I try 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 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
pchickey commented on issue #6021:
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.
Last updated: Dec 23 2024 at 12:05 UTC