Open avently opened 2 years ago
For reproducing you can build your lib using project cross: cross build --release --target x86_64-pc-windows-gnu
Same problem with other targets. This situation actually stops from using boring-sys as well as libraries that depends on it. I would really appretiate if you find a time for making more main targets supported like linux arm64 (+arm), windows (+arm64). Because the one possible lib that gives enough functionality is BoringSSL.
This is logs for aarch64-unknown-linux-musl target:
tons of lines like:
/cargo/registry/src/github.com-1ecc6299db9ec823/boring-sys-2.0.0/deps/boringssl/src/crypto/hrss/asm/poly_rq_mul.S:8448: Error: unknown mnemonic `vmovdqu' -- `vmovdqu 968(%rdi)
,%ymm11'
/cargo/registry/src/github.com-1ecc6299db9ec823/boring-sys-2.0.0/deps/boringssl/src/crypto/hrss/asm/poly_rq_mul.S:8449: Error: unknown mnemonic `vpaddw' -- `vpaddw 2496(%rsp),
%ymm11,%ymm11'
/cargo/registry/src/github.com-1ecc6299db9ec823/boring-sys-2.0.0/deps/boringssl/src/crypto/hrss/asm/poly_rq_mul.S:8450: Error: unknown mnemonic `vpand' -- `vpand mask_mod8192(
%rip),%ymm11,%ymm11'
/cargo/registry/src/github.com-1ecc6299db9ec823/boring-sys-2.0.0/deps/boringssl/src/crypto/hrss/asm/poly_rq_mul.S:8451: Error: unknown mnemonic `vmovdqu' -- `vmovdqu %ymm11,96
8(%rdi)'
/cargo/registry/src/github.com-1ecc6299db9ec823/boring-sys-2.0.0/deps/boringssl/src/crypto/hrss/asm/poly_rq_mul.S:8452: Error: unknown mnemonic `vmovdqu' -- `vmovdqu 1320(%rdi
),%ymm11'
/cargo/registry/src/github.com-1ecc6299db9ec823/boring-sys-2.0.0/deps/boringssl/src/crypto/hrss/asm/poly_rq_mul.S:8453: Error: unknown mnemonic `vpaddw' -- `vpaddw 2752(%rsp),
%ymm11,%ymm11'
/cargo/registry/src/github.com-1ecc6299db9ec823/boring-sys-2.0.0/deps/boringssl/src/crypto/hrss/asm/poly_rq_mul.S:8454: Error: unknown mnemonic `vpand' -- `vpand mask_mod8192(
%rip),%ymm11,%ymm11'
/cargo/registry/src/github.com-1ecc6299db9ec823/boring-sys-2.0.0/deps/boringssl/src/crypto/hrss/asm/poly_rq_mul.S:8455: Error: unknown mnemonic `vmovdqu' -- `vmovdqu %ymm11,13
20(%rdi)'
/cargo/registry/src/github.com-1ecc6299db9ec823/boring-sys-2.0.0/deps/boringssl/src/crypto/hrss/asm/poly_rq_mul.S:8456: Error: operand 1 must be an integer register -- `mov %r
8,%rsp'
/cargo/registry/src/github.com-1ecc6299db9ec823/boring-sys-2.0.0/deps/boringssl/src/crypto/hrss/asm/poly_rq_mul.S:8457: Error: unknown mnemonic `pop' -- `pop %r12'
/cargo/registry/src/github.com-1ecc6299db9ec823/boring-sys-2.0.0/deps/boringssl/src/crypto/hrss/asm/poly_rq_mul.S:8458: Error: bad register expression
/cargo/registry/src/github.com-1ecc6299db9ec823/boring-sys-2.0.0/deps/boringssl/src/crypto/hrss/asm/poly_rq_mul.S:8459: Error: unknown mnemonic `pop' -- `pop %rbp'
/cargo/registry/src/github.com-1ecc6299db9ec823/boring-sys-2.0.0/deps/boringssl/src/crypto/hrss/asm/poly_rq_mul.S:8460: Error: bad register expression
/cargo/registry/src/github.com-1ecc6299db9ec823/boring-sys-2.0.0/deps/boringssl/src/crypto/hrss/asm/poly_rq_mul.S:8461: Error: bad register expression
make[3]: *** [CMakeFiles/crypto.dir/src/crypto/hrss/asm/poly_rq_mul.S.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [CMakeFiles/crypto.dir/all] Error 2
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/bssl.dir/rule] Error 2
make: *** [bssl] Error 2
thread 'main' panicked at '
command did not execute successfully, got: exit status: 2
Hello. Trying to build an app with
boring-sys
for Windows usingx86_64-pc-windows-gnu
target from Manjaro (based on Archlinux). I have mingw packages installed (mingw-w64-gcc, mingw-w64-binutils, mingw-w64-crt, mingw-w64-headers, mingw-w64-winpthreads). Tried with rust stable (rustc 1.60.0) and nightly. Result is the same.I don't know what I can do here from my side in order to successfully build the app. Could you please suggest my next steps?
Attaching CMakeOutput.log as well:
CMakeOutput.log
Line 65 of CMakeList (from the error above) this one: