The docs (<https://www.pantsbuild.org/2.21/docs/co...
# development
w
The docs (https://www.pantsbuild.org/2.21/docs/contributions/development/setting-up-pants#step-2-bootstrap-the-rust-engine) say that building pants on pants requires clang, but after installing clang (on ubuntu22 in wsl)
Copy code
ERROR: unable to execute 'gcc'. Please verify that your compiler is installed, in your
       $PATH and functional.
cc
points to clang, so I guess we're specifically looking for
gcc
- after I installed
build-essential
(aka gcc and friends) - compilation kicked off finally. Should the docs be updated? Or would it have been good enough to alias `gcc`'s tooling to
clang
? I'm running that on a slower machine - so fiddling around is ... tedious...
I was also going to ask if anyone was using alternative linkers for some of those sweet sweet speedups, but it looks like as of last week Rust is using
rust-lld
on nightly? I haven't experienced it yet though https://blog.rust-lang.org/2024/05/17/enabling-rust-lld-on-linux.html
Though looks like rust is "just" vendoring lld 🤷
b
I thought we got rid of the clang dependency
IIRC we only needed it to compile some sdist. I think it's somewhere in slack history
w
Yeah, just in the docs - was gonna PR if it was truly not needed (but like, historically, every new computer/VM I have always has clang - so 🤷 ) GCC still appears to be needed - but I might figure that out when I build some more VMs