sfackler / rust-openssl

OpenSSL bindings for Rust
1.38k stars 742 forks source link

Cross compile from Linux to Windows using vendored feature fails due to incompatible perl version #2308

Open blacktemplar opened 1 day ago

blacktemplar commented 1 day ago

I am trying to cross compile a project depending on openssl with the vendored feature. My host machine is running Linux and I have perl installed, but when I run cargo build --release --target=x86_64-pc-windows-msvc I get the following error:

******************************************************************************
  This perl implementation doesn't produce Windows like paths (with backward
  slash directory separators).  Please use an implementation that matches your
  building platform.

  This Perl version: 5.40.0 for x86_64-linux-thread-multi
  ******************************************************************************
  thread 'main' panicked at /home/user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/openssl-src-300.3.2+3.3.2/src/lib.rs:633:9:

I was surprised that I didn't find any discussions/issues about this and that there is nothing mentioned in the docs. How can I fix this, does this mean cross compilation does not really work for the vendored feature? Or do I need a different perl?