Skip to content
This repository was archived by the owner on Mar 12, 2026. It is now read-only.
This repository was archived by the owner on Mar 12, 2026. It is now read-only.

Target x86_64-pc-windows-gnu error: could not compile crunchy (lib) due to 1 previous error #126

@serene-kitfisto-8899

Description

@serene-kitfisto-8899

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 :

  1. Install x86_64-pc-windows-gnu with rustup : rustup target add x86_64-pc-windows-gnu.
  2. Install the GNU C compiler for MinGW-w64 : (ex: Using the gcc-mingw-w64-x86-64-win32 Debian package) .
  3. Checkout the cosmian cli with all the submodules : git clone --recursive https://github.com/Cosmian/cli
  4. Build for x86_64-pc-windows-gnu target with cargo : cargo b --target x86_64-pc-windows-gnu

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions