pants icon indicating copy to clipboard operation
pants copied to clipboard

Unable to build Pants in nix-shell on OS X

Open kvudata opened this issue 1 year ago • 2 comments

Describe the bug I'm following the instructions at https://www.pantsbuild.org/2.21/docs/contributions/development/setting-up-pants, and when I run pants after nix-shell it fails with

...
  = note: ld: library not found for -liconv
          clang-11: error: linker command failed with exit code 1 (use -v to see invocation)
          

error: could not compile `ring` (build script) due to 1 previous error
warning: build failed, waiting for other jobs to finish...

Pants version Checked out main as of caa340570525ac6342800f20008c680c80f02ad0.

OS MacOS (M1 running Sonoma 14.6.1)

Additional info

kvudata avatar Sep 12 '24 10:09 kvudata

I don't use Pants or macOS or nix-shell and I found this with about 2 minutes search effort: https://discourse.nixos.org/t/nix-shell-rust-hello-world-ld-linkage-issue/17381

jsirois avatar Sep 12 '24 17:09 jsirois

Thanks for the find! I had looked in Pants slack and found people who came across this ended up just installing from source so I figured worth tracking as an issue. Hoping to test the above sometime this week, and if it works, then may suggest some edits to the docs

kvudata avatar Sep 23 '24 14:09 kvudata