-
Notifications
You must be signed in to change notification settings - Fork 0
Description
I would like to cross-compile the Cosmian cli for the x86_64-pc-windows-gnu target. And I get the fallowing error :
$ cargo b --target x86_64-pc-windows-gnu
Compiling crunchy v0.2.3
Compiling aws-lc-rs v1.15.1
Compiling windows-result v0.3.4
Compiling h2 v0.4.10
Compiling uuid v1.11.1
Compiling ed25519 v2.2.3
Compiling chacha20 v0.9.1
Compiling opentelemetry v0.29.1
error: couldn't read/home/test/cosmian/cli/target/x86_64-pc-windows-gnu/debug/build/crunchy-599d0bebdc95f4f2/out\lib.rs: No such file or directory (os error 2)
--> /home/test/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/crunchy-0.2.3/src/lib.rs:37:1
|
37 | include!(concat!(env!("OUT_DIR"), "\lib.rs"));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^error: could not compile
crunchy(lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
Reproduction :
- Install x86_64-pc-windows-gnu with rustup : rustup target add x86_64-pc-windows-gnu.
- Install the GNU C compiler for MinGW-w64 : (ex: Using the gcc-mingw-w64-x86-64-win32 Debian package) .
- Checkout the cosmian cli with all the submodules : git clone --recursive https://github.com/Cosmian/cli
- Build for x86_64-pc-windows-gnu target with cargo : cargo b --target x86_64-pc-windows-gnu