rust-openssl / rust-openssl/rust-openssl

perl issue when building on windows

Open
#2,149 4 comments 9 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
1.6k
Forks
841
Avg merge
6h 51m
Merged PRs (30d)
4

Description

Hi, we are trying to build a Rust project having indirect dependencies to openssl-sys.
When building on Microsoft Windows Server 2022 (github runner), we get the following perl error:

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

Caused by:
  process didn't exit successfully: `D:\a\nym-vpn-client\nym-vpn-client\nym-vpn-desktop\src-tauri\target\release\build\openssl-sys-510aba73a2dc2d15\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
  openssl-src: Enable the assembly language routines in building OpenSSL.
  running "perl" "./Configure" "--prefix=D:/a/nym-vpn-client/nym-vpn-client/nym-vpn-desktop/src-tauri/target/release/build/openssl-sys-e3460947fbbdac1d/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" "VC-WIN64A"

  --- stderr
Error:   Can't locate Locale/Maketext/Simple.pm in @INC (you may need to install the Locale::Maketext::Simple module) (@INC contains: /d/a/nym-vpn-client/nym-vpn-client/nym-vpn-desktop/src-tauri/target/release/build/openssl-sys-e3460947fbbdac1d/out/openssl-build/build/src/util/perl D \a\nym-vpn-client\nym-vpn-client\local\lib\perl5;D \a\nym-vpn-client\nym-vpn-client\local\lib\perl5\MSWin32-x64-multi-thread;D \a\_actions\shogo82148\actions-setup-perl\v1\scripts\lib /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/nym-vpn-client/nym-vpn-client/nym-vpn-desktop/src-tauri/target/release/build/openssl-sys-e3460947fbbdac1d/out/openssl-build/build/src/external/perl/Text-Template-1.56/lib) at /usr/share/perl5/core_perl/Params/Check.pm line 6.
Error:   BEGIN failed--compilation aborted at /usr/share/perl5/core_perl/Params/Check.pm line 6.
Error:   Compilation failed in require at /usr/share/perl5/core_perl/IPC/Cmd.pm line 59.
Error:   BEGIN failed--compilation aborted at /usr/share/perl5/core_perl/IPC/Cmd.pm line 59.
Error:   Compilation failed in require at /d/a/nym-vpn-client/nym-vpn-client/nym-vpn-desktop/src-tauri/target/release/build/openssl-sys-e3460947fbbdac1d/out/openssl-build/build/src/util/perl/OpenSSL/config.pm line 19.
Error:   BEGIN failed--compilation aborted at /d/a/nym-vpn-client/nym-vpn-client/nym-vpn-desktop/src-tauri/target/release/build/openssl-sys-e3460947fbbdac1d/out/openssl-build/build/src/util/perl/OpenSSL/config.pm line 19.
Error:   Compilation failed in require at ./Configure line 23.
Error:   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.2.1+3.2.0\src\lib.rs:611:9:

I tried to setup Perl in the workflow before rust build

perl-version: '5.38'
distribution: strawberry

But it does not fix the issue.
Any help would be appreciated.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the Windows workflow's Perl setup and the openssl-sys/openssl-src build output, especially Configure and the reported Perl module paths. Reproduce the Windows Server 2022 build and determine why Locale/Maketext/Simple.pm is unavailable. Done means the Rust project builds successfully on that runner without the Perl error.

Written by the indexing model from the issue text.

Assessment

Tech stack
perl, rust
Domain
build-system, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.