cross compilation (wsl2 to windows64) / blake3 v1.5.0 / bevy 0.12.0 #10396
-
Hello! Since the update of bevy to version 0.12.0 I am not capable of building my bevy project from ubuntu (in a wsl2), to windows using It appears it comes from the update of the He's the stack trace if you want to look at itCompiling blake3 v1.5.0
The following warnings were emitted during compilation:
warning: GNU compiler is not supported for this target
warning: GNU compiler is not supported for this target
warning: The C compiler "cc" does not support /arch:AVX512.
warning: GNU compiler is not supported for this target
error: failed to run custom build command for `blake3 v1.5.0`
Caused by:
process didn't exit successfully: `/home/fabienjuif/projects/game/target/debug/build/blake3-bbc8b9ddf3282f84/build-script-build` (exit status: 1)
--- stdout
cargo:rerun-if-env-changed=CARGO_FEATURE_PURE
cargo:rerun-if-env-changed=CARGO_FEATURE_NO_NEON
TARGET = Some("x86_64-pc-windows-msvc")
HOST = Some("x86_64-unknown-linux-gnu")
cargo:rerun-if-env-changed=CC_x86_64-pc-windows-msvc
CC_x86_64-pc-windows-msvc = None
cargo:rerun-if-env-changed=CC_x86_64_pc_windows_msvc
CC_x86_64_pc_windows_msvc = None
cargo:rerun-if-env-changed=TARGET_CC
TARGET_CC = None
cargo:rerun-if-env-changed=CC
CC = None
RUSTC_LINKER = Some("lld")
cargo:rerun-if-env-changed=CROSS_COMPILE
CROSS_COMPILE = None
cargo:warning=GNU compiler is not supported for this target
cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
CRATE_CC_NO_DEFAULTS = None
CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
cargo:rerun-if-env-changed=CFLAGS_x86_64-pc-windows-msvc
CFLAGS_x86_64-pc-windows-msvc = None
cargo:rerun-if-env-changed=CFLAGS_x86_64_pc_windows_msvc
CFLAGS_x86_64_pc_windows_msvc = None
cargo:rerun-if-env-changed=TARGET_CFLAGS
TARGET_CFLAGS = None
cargo:rerun-if-env-changed=CFLAGS
CFLAGS = None
OPT_LEVEL = Some("3")
cargo:rerun-if-env-changed=CC_x86_64-pc-windows-msvc
CC_x86_64-pc-windows-msvc = None
cargo:rerun-if-env-changed=CC_x86_64_pc_windows_msvc
CC_x86_64_pc_windows_msvc = None
cargo:rerun-if-env-changed=TARGET_CC
TARGET_CC = None
cargo:rerun-if-env-changed=CC
CC = None
RUSTC_LINKER = Some("lld")
cargo:rerun-if-env-changed=CROSS_COMPILE
CROSS_COMPILE = None
cargo:warning=GNU compiler is not supported for this target
cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
CRATE_CC_NO_DEFAULTS = None
DEBUG = Some("true")
CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
cargo:rerun-if-env-changed=CFLAGS_x86_64-pc-windows-msvc
CFLAGS_x86_64-pc-windows-msvc = None
cargo:rerun-if-env-changed=CFLAGS_x86_64_pc_windows_msvc
CFLAGS_x86_64_pc_windows_msvc = None
cargo:rerun-if-env-changed=TARGET_CFLAGS
TARGET_CFLAGS = None
cargo:rerun-if-env-changed=CFLAGS
CFLAGS = None
cargo:warning=The C compiler "cc" does not support /arch:AVX512.
cargo:rerun-if-env-changed=BLAKE3_CI
cargo:rerun-if-env-changed=CARGO_FEATURE_PREFER_INTRINSICS
cargo:rerun-if-env-changed=CARGO_FEATURE_PURE
cargo:rustc-cfg=blake3_sse2_ffi
cargo:rustc-cfg=blake3_sse41_ffi
cargo:rustc-cfg=blake3_avx2_ffi
TARGET = Some("x86_64-pc-windows-msvc")
OPT_LEVEL = Some("3")
HOST = Some("x86_64-unknown-linux-gnu")
cargo:rerun-if-env-changed=CC_x86_64-pc-windows-msvc
CC_x86_64-pc-windows-msvc = None
cargo:rerun-if-env-changed=CC_x86_64_pc_windows_msvc
CC_x86_64_pc_windows_msvc = None
cargo:rerun-if-env-changed=TARGET_CC
TARGET_CC = None
cargo:rerun-if-env-changed=CC
CC = None
RUSTC_LINKER = Some("lld")
cargo:rerun-if-env-changed=CROSS_COMPILE
CROSS_COMPILE = None
cargo:warning=GNU compiler is not supported for this target
cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
CRATE_CC_NO_DEFAULTS = None
DEBUG = Some("true")
CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
cargo:rerun-if-env-changed=CFLAGS_x86_64-pc-windows-msvc
CFLAGS_x86_64-pc-windows-msvc = None
cargo:rerun-if-env-changed=CFLAGS_x86_64_pc_windows_msvc
CFLAGS_x86_64_pc_windows_msvc = None
cargo:rerun-if-env-changed=TARGET_CFLAGS
TARGET_CFLAGS = None
cargo:rerun-if-env-changed=CFLAGS
CFLAGS = None
running: "ml64.exe" "-nologo" "-Zi" "-o" "/home/fabienjuif/projects/game/target/x86_64-pc-windows-msvc/debug/build/blake3-9b58ebbbf94df1e9/out/c/blake3_sse2_x86-64_windows_msvc.o" "-c" "c/blake3_sse2_x86-64_windows_msvc.asm"
--- stderr
error occurred: Failed to find tool. Is `ml64.exe` installed? I followed these steps to make the cross-building working: https://bevy-cheatbook.github.io/setup/cross/linux-windows.html#microsoft-windows-sdks I tried to add ml64.exe to my PATH, but then I have an issue while linking the dependency (because it mixes windows path with linux [wsl] paths I guess). Do you have an idea, someone in the same case than me maybe? Also maybe worth to note that I tried to update to a precise version without success: ➜ game git:(bevy0.12.0) ✗ cargo update -p blake3 --precise 1.4.1
Updating crates.io index
error: failed to select a version for the requirement `blake3 = "^1.5"`
candidate versions found which didn't match: 1.4.1
location searched: crates.io index
required by package `bevy_asset v0.12.0`
... which satisfies dependency `bevy_asset = "^0.12.0"` (locked to 0.12.0) of package `bevy_internal v0.12.0`
... which satisfies dependency `bevy_internal = "^0.12.0"` (locked to 0.12.0) of package `bevy v0.12.0`
... which satisfies dependency `bevy = "^0.12.0"` (locked to 0.12.0) of package `game v0.1.0 (/home/fabienjuif/projects/game)`
perhaps a crate was updated and forgotten to be re-vendored? Thank you to anybody with the courage to read this :D |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Seems to be a known issue with blake3 BLAKE3-team/BLAKE3#180 |
Beta Was this translation helpful? Give feedback.
-
Also, you should open an issue, to keep track of this problem. This was the PR which introduced |
Beta Was this translation helpful? Give feedback.
-
#10425 - Closing this discussion since somebody else created an issue |
Beta Was this translation helpful? Give feedback.
#10425 - Closing this discussion since somebody else created an issue