pantsbuild / pants

The Pants Build System
https://www.pantsbuild.org
Apache License 2.0
3.29k stars 628 forks source link

Unable to run ./scie-pants-macos-aarch64 from a clean macOS install on Apple Silicon #20327

Closed charlietsai closed 8 months ago

charlietsai commented 9 months ago

Describe the bug On a clean install of macOS Ventura 13.6.2, either download ./scie-pants-macos-aarch64 or install via get-pants.sh, then running ./scie-pants-macos-aarch64 or pants, we get:

dyld[69639]: Library not loaded: /opt/homebrew/opt/xz/lib/liblzma.5.dylib
  Referenced from: <2077079D-7541-3421-8EEB-DB3F2CC8F35C> /Users/ctsai/.local/bin/pants
  Reason: tried: '/opt/homebrew/opt/xz/lib/liblzma.5.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/opt/xz/lib/liblzma.5.dylib' (no such file), '/opt/homebrew/opt/xz/lib/liblzma.5.dylib' (no such file)
[1]    69639 abort      pants

It looks like xz is a required dependency but it's not mentioned.

Installing via brew resolves this:

/opt/homebrew/bin/brew install xz

Given scie-pants is supposed to be standalone, I would have expected to be able to use it directly without having to install something else. brew doesn't seem like a hard requirement? It looks like most people don't encounter this issue because xz is pulled in by other packages often installed via brew.

Pants version Following the install instructions from v2.18

OS macOS Ventura 13.6.2,

Additional info N/A

jsirois commented 9 months ago

The issue was in scie-jump: https://github.com/a-scie/jump/issues/172

I fixed and published at https://github.com/a-scie/jump/releases/tag/v0.13.3

A scie-pants maintainer just needs to bump: https://github.com/pantsbuild/scie-pants/blob/76911604586dab64cc226c5891504be607b506da/package/scie-pants.toml#L14-L15

A then release.

benjyw commented 9 months ago

scie-pants release at https://github.com/pantsbuild/scie-pants/pull/339

jsirois commented 8 months ago

Closed by https://github.com/pantsbuild/scie-pants/pull/339