servo: macOS ld considers libscript-*.rlib to be invalid
Cannot build Servo with latest master (2a594821ba) on macOS 10.14.6
(This is my first time to see this kind of compilation error 🤔 I’ve tried to run ./mach clean but it didn’t help 😕)
Check the error message in this gist 👈
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 25 (24 by maintainers)
Commits related to this issue
- Properly use the darwin archive format on Apple targets See https://github.com/servo/servo/issues/25550. — committed to Dylan-DPC-zz/rust by nox 7 years ago
- Rollup merge of #69089 - nox:sym64-crash, r=eddyb Properly use the darwin archive format on Apple targets See https://github.com/servo/servo/issues/25550. — committed to Dylan-DPC-zz/rust by Dylan-DPC 7 years ago
- Auto merge of #25739 - servo:rustup, r=paulrouget Upgrade to rustc 1.43.0-nightly (5d04ce67f 2020-02-13) ~This Nightly doesn’t have rustfmt, so merging this PR is blocked on https://github.com/rust-... — committed to servo/servo by deleted user 7 years ago
- Auto merge of #25739 - servo:rustup, r=paulrouget Upgrade to rustc 1.43.0-nightly (5d04ce67f 2020-02-13) ~This Nightly doesn’t have rustfmt, so merging this PR is blocked on https://github.com/rust-... — committed to servo/servo by deleted user 7 years ago
- Auto merge of #25739 - servo:rustup, r=paulrouget Upgrade to rustc 1.43.0-nightly (5d04ce67f 2020-02-13) ~This Nightly doesn’t have rustfmt, so merging this PR is blocked on https://github.com/rust-... — committed to servo/servo by deleted user 7 years ago
- Auto merge of #25739 - servo:rustup, r=paulrouget Upgrade to rustc 1.43.0-nightly (5d04ce67f 2020-02-13) ~This Nightly doesn’t have rustfmt, so merging this PR is blocked on https://github.com/rust-... — committed to servo/servo by deleted user 7 years ago
- Auto merge of #25739 - servo:rustup, r=paulrouget Upgrade to rustc 1.43.0-nightly (5d04ce67f 2020-02-13) ~This Nightly doesn’t have rustfmt, so merging this PR is blocked on https://github.com/rust-... — committed to servo/servo by deleted user 7 years ago
- Auto merge of #25739 - servo:rustup, r=paulrouget Upgrade to rustc 1.43.0-nightly (5d04ce67f 2020-02-13) ~This Nightly doesn’t have rustfmt, so merging this PR is blocked on https://github.com/rust-... — committed to servo/servo by deleted user 7 years ago
0650fc3199 compiles. Add this patch triggers the link issue. It needs to be 3 enum fields:
Size change:
I’ll make a patch today then, thanks.
That patch seems reasonable to me, although I agree with @eddyb that we should probably match clang. I suspect that
darwinwas added after we implemented all the archive stuff in rustc, andclangprobably uses thedarwinkind to LLVM as well.This appears to be mac-specific. I’m on 10.14.6 as well and haven’t observed this problem for reasons that are unclear to me.
Release build works without any errors