cargo: OpenSSL-sys build failure / Cargo MAKEFLAGS not configurable

Problem

So we have an issue building OpenSSL-sys on Mac M1: https://github.com/sfackler/rust-openssl/issues/2179

Which is likely caused by this command:

running cd "/opt/actions-runner/_work/search/search/search/src-tauri/target/aarch64-apple-darwin/release/build/openssl-sys-8aca377df6729114/out/openssl-build/build/src" 
&& MAKEFLAGS="-j --jobserver-fds=7,13 --jobserver-auth=7,13" "make" "build_libs"

Namely that the “-j” flag for make is overloading the resources of the host.

And there doesn’t seem to be a way to override this MAKEFLAGS to workaround it.

Steps

No response

Possible Solution(s)

No response

Notes

No response

Version

cargo 1.75.0 (1d8b05cdd 2023-11-20)
release: 1.75.0
commit-hash: 1d8b05cdd1287c64467306cf3ca2c8ac60c11eb0
commit-date: 2023-11-20
host: aarch64-apple-darwin
libgit2: 1.7.1 (sys:0.18.1 vendored)
libcurl: 8.4.0 (sys:0.4.68+curl-8.4.0 system ssl:(SecureTransport) LibreSSL/3.3.6)
ssl: OpenSSL 1.1.1u  30 May 2023
os: Mac OS 14.2.1 [64-bit]

About this issue

  • Original URL
  • State: closed
  • Created 4 months ago
  • Comments: 15 (4 by maintainers)

Commits related to this issue

Most upvoted comments

@NobodyXu … ZStd is using 1.0.45. I will try upgrading to 1.0.86 and leaving parallel enabled.