Skip to content

release x86_64-pc-windows-msvc with openssl dependency is failing #2

New issue

Have a question about this project? No Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “No Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? No Sign in to your account

Open
shandak opened this issue Apr 28, 2023 · 2 comments
Open

Comments

@shandak
Copy link

shandak commented Apr 28, 2023

Is there a way to cope with openssl? Build release ends with

  Configuring OpenSSL version 1.1.1t (0x1010114fL) for VC-WIN64A
  Using os-specific seed configuration

  --- stderr

  ******************************************************************************
  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.32.1 for x86_64-linux-gnu-thread-multi
  ******************************************************************************
  thread 'main' panicked at '


  Error configuring OpenSSL build:
sl-ciphers" "no-camellia" "no-idea" "no-seed" "no-engine" "no-asm" "VC-WIN64A"
      Exit status: exit status: 127

@Peco602
Copy link
Owner

Peco602 commented Apr 28, 2023

Can you provide some context to this error please?

@shandak
Copy link
Author

shandak commented Apr 28, 2023

I'm trying to use this Dockerfile with only one difference I built it from the latest docker.io/library/rust:1.69.0-slim-bullseye.
It's a famous issue when some projects have a dependency on openssl. This is the recipe that I added https://github.com/cross-rs/cross/wiki/Recipes#openssl

openssl = { version = "0.10", features = ["vendored"] }

and to the Dockefile

dpkg --add-architecture i386
apt-get update && apt-get install --assume-yes libssl-dev:i386

I'm trying to build Windows exe from linux OS.
The last log is:

 ....
error: failed to run custom build command for `openssl-sys v0.9.80`

Caused by:
  process didn't exit successfully: `/app/target/release/build/openssl-sys-18c84857cbf9c662/build-script-main` (exit status: 101)
  --- stdout
  cargo:rustc-cfg=const_fn
  cargo:rustc-cfg=openssl
  cargo:rerun-if-env-changed=X86_64_PC_WINDOWS_MSVC_OPENSSL_NO_VENDOR
  X86_64_PC_WINDOWS_MSVC_OPENSSL_NO_VENDOR unset
  cargo:rerun-if-env-changed=OPENSSL_NO_VENDOR
  OPENSSL_NO_VENDOR unset
  running cd "/app/target/x86_64-pc-windows-msvc/release/build/openssl-sys-9377103229a86659/out/openssl-build/build/src" && "perl" "./Configur
e" "--prefix=/app/target/x86_64-pc-windows-msvc/release/build/openssl-sys-9377103229a86659/out/openssl-build/install" "--openssldir=SYS$MANAGE
R:[OPENSSL]" "no-dso" "no-shared" "no-ssl3" "no-unit-test" "no-comp" "no-zlib" "no-zlib-dynamic" "no-md2" "no-rc5" "no-weak-ssl-ciphers" "no-camellia" "no-idea" "no-seed" "no-engine" "no-asm" "VC-WIN64A"
  Configuring OpenSSL version 1.1.1t (0x1010114fL) for VC-WIN64A
  Using os-specific seed configuration

  --- stderr

  ******************************************************************************
  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.32.1 for x86_64-linux-gnu-thread-multi
  ******************************************************************************
  thread 'main' panicked at '


  Error configuring OpenSSL build:
      Command: cd "/app/target/x86_64-pc-windows-msvc/release/build/openssl-sys-9377103229a86659/out/openssl-build/build/src" && "perl" "./Con
figure" "--prefix=/app/target/x86_64-pc-windows-msvc/release/build/openssl-sys-9377103229a86659/out/openssl-build/install" "--openssldir=SYS$M
ANAGER:[OPENSSL]" "no-dso" "no-shared" "no-ssl3" "no-unit-test" "no-comp" "no-zlib" "no-zlib-dynamic" "no-md2" "no-rc5" "no-weak-ssl-ciphers" "no-camellia" "no-idea" "no-seed" "no-engine" "no-asm" "VC-WIN64A"
      Exit status: exit status: 127


      ', /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/openssl-src-111.25.0+1.1.1t/src/lib.rs:499:13
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...

command similar to in example:
docker run --rm -v $PWD/test-project:/app -w /app vshandak/rust-universal-compiler:latest cargo build --target x86_64-pc-windows-msvc --release

The same Dockerfile was handled successfully build for x86_64-apple-darwin btw

No Sign up for free to join this conversation on GitHub. Already have an account? No Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants