servo/servo

"mach bootstrap" fails with “could not compile crossbeam-epoch (etc.) and “ld: library 'System' not found“

Opened this issue · 3 comments

Describe the bug:
When running ./mach bootstrap in my macOS Sonoma 14.5 Beta (23F5049f) environment, it fails with “could not compile crossbeam-epoch (etc.) and “ld: library 'System' not found“ errors.

To Reproduce:
Run ./mach bootstrap.

Platform:
macOS Sonoma 14.5 Beta (23F5049f). The only thing I can think of that’s unusual in my environment compared to “normal” people is that my environment is set up for building WebKit — with some additional stuff in my path for that.

Having upstream clang in my path broke servo bootstrap for me (specifically the python library "pillow" failed to compile). I had to use Apple Clang (by removing the path override) to make it work.

I “fixed” this in my environment by doing this:

SDKROOT=$(xcrun --sdk macosx --show-sdk-path) ./mach bootstrap

…which I discovered at https://discourse.cmake.org/t/new-macos-and-xcode-update-incompatible-with-cmake/9876/9

So, this issue isn’t actually blocking me, and I’d be fine with it being closed — I just figured I should take the time to report it, on the off chance that somebody other than me might run into the same problem later (and find this answer/fix).

Having upstream clang in my path broke servo bootstrap for me (specifically the python library "pillow" failed to compile). I had to use Apple Clang (by removing the path override) to make it work.

Thanks, I see — I’ll try messing around with that later

Update: Actually what I see right now is:

$ which clang
/Library/Developer/CommandLineTools/usr/bin/clang