Skip to content
New issue

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

By clicking “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? Sign in to your account

Can't build release binaries for windows due to openssl error #7

Open
adzialocha opened this issue Nov 16, 2023 · 2 comments
Open

Can't build release binaries for windows due to openssl error #7

adzialocha opened this issue Nov 16, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@adzialocha
Copy link
Member

adzialocha commented Nov 16, 2023

    Compiling half v1.8.2
   Compiling portable-atomic v1.4.3
   Compiling static_assertions v0.3.4
   Compiling thiserror v1.0.48
   Compiling log v0.4.20
   Compiling ciborium-io v0.2.1
   Compiling varu64 v0.6.2
error: failed to run custom build command for `openssl-sys v0.9.95`

Caused by:
  process didn't exit successfully: `D:\a\send-to-node\send-to-node\target\release\build\openssl-sys-90bd803ee0db77be\build-script-main` (exit code: 101)
  --- stdout
  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 "perl" "./Configure" "--prefix=D:\\a\\send-to-node\\send-to-node\\target\\x86_64-pc-windows-msvc\\release\\build\\openssl-sys-34aca5dcfdff680b\\out\\openssl-build\\install" "--openssldir=SYS$MANAGER:[OPENSSL]" "no-dso" "no-shared" "no-ssl3" "no-tests" "no-comp" "no-zlib" "no-zlib-dynamic" "--libdir=lib" "no-md2" "no-rc5" "no-weak-ssl-ciphers" "no-camellia" "no-idea" "no-seed" "no-capieng" "no-asm" "VC-WIN64A"

  --- stderr
  Can't locate Locale/Maketext/Simple.pm in @INC (you may need to install the Locale::Maketext::Simple module) (@INC contains: /d/a/send-to-node/send-to-node/target/x86_64-pc-windows-msvc/release/build/openssl-sys-34aca5dcfdff680b/out/openssl-build/build/src/util/perl /usr/lib/perl5/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl /d/a/send-to-node/send-to-node/target/x86_64-pc-windows-msvc/release/build/openssl-sys-34aca5dcfdff680b/out/openssl-build/build/src/external/perl/Text-Template-1.56/lib) at /usr/share/perl5/core_perl/Params/Check.pm line 6.
  BEGIN failed--compilation aborted at /usr/share/perl5/core_perl/Params/Check.pm line 6.
  Compilation failed in require at /usr/share/perl5/core_perl/IPC/Cmd.pm line 59.
  BEGIN failed--compilation aborted at /usr/share/perl5/core_perl/IPC/Cmd.pm line 59.
  Compilation failed in require at /d/a/send-to-node/send-to-node/target/x86_64-pc-windows-msvc/release/build/openssl-sys-34aca5dcfdff680b/out/openssl-build/build/src/util/perl/OpenSSL/config.pm line 19.
  BEGIN failed--compilation aborted at /d/a/send-to-node/send-to-node/target/x86_64-pc-windows-msvc/release/build/openssl-sys-34aca5dcfdff680b/out/openssl-build/build/src/util/perl/OpenSSL/config.pm line 19.
  Compilation failed in require at ./Configure line 23.
  BEGIN failed--compilation aborted at ./Configure line 23.
  thread 'main' panicked at C:\Users\runneradmin\.cargo\registry\src\index.crates.io-6f17d22bba15001f\openssl-src-300.1.6+3.1.4\src\lib.rs:585:9:



  Error configuring OpenSSL build:
      Command: "perl" "./Configure" "--prefix=D:\\a\\send-to-node\\send-to-node\\target\\x86_64-pc-windows-msvc\\release\\build\\openssl-sys-34aca5dcfdff680b\\out\\openssl-build\\install" "--openssldir=SYS$MANAGER:[OPENSSL]" "no-dso" "no-shared" "no-ssl3" "no-tests" "no-comp" "no-zlib" "no-zlib-dynamic" "--libdir=lib" "no-md2" "no-rc5" "no-weak-ssl-ciphers" "no-camellia" "no-idea" "no-seed" "no-capieng" "no-asm" "VC-WIN64A"
      Exit status: exit code: 2


      
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
Error: Process completed with exit code 101.
@adzialocha adzialocha added the bug Something isn't working label Nov 16, 2023
@adzialocha adzialocha changed the title Can't build release binaries due to openssl error Can't build release binaries for windows due to openssl error Nov 17, 2023
@adzialocha
Copy link
Member Author

Related issue: taiki-e/upload-rust-binary-action#47

@adzialocha
Copy link
Member Author

I've added openssl with vendored feature to at least make it work for all other platforms (as they also failed before): https://github.com/p2panda/send-to-node/blob/main/Cargo.toml#L42-L45

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant