New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build failure: task_info on fedora 25: missing header mach/mach_init.h #19286
Comments
This is very surprising, since that crate is macOS-only and all uses are gated with appropriate cfg attributes. |
rustc -vV prints this:
|
|
|
https://dxr.mozilla.org/servo/source/components/profile/Cargo.toml#27 is the only place that should be making use of that crate, so I'm not really sure what to suggest! |
Do you have a |
There is .servobuild.example from the repo but it is unmodified. |
I managed to get around the task_info failure like this diff --git a/components/profile/Cargo.toml b/components/profile/Cargo.toml
index 6923b05..220dc93 100644
--- a/components/profile/Cargo.toml
+++ b/components/profile/Cargo.toml
@@ -23,9 +23,6 @@ serde_json = "1.0"
servo_config = {path = "../config"}
time = "0.1.12"
-[target.'cfg(target_os = "macos")'.dependencies]
-task_info = {path = "../../support/rust-task_info"}
-
[target.'cfg(target_os = "linux")'.dependencies]
regex = "0.2"
however there still were other crates not building |
That doesn't really make sense, it seems your cargo is trying to build with a "macos" target, otherwise that patch wouldn't have made a difference. |
Which also explains why is it failing to include mach headers, which are OSX only. |
Yes, it seems it detects as macos in that case. I adding some other dependency for macos to some different crate and built that for testing, however the dependency was not pulled in then, so I have no idea what is going on with servo here. :/ |
Also happens to me on Ubuntu 17.10.
|
Can confirm @Bravo555's case, also happens on Ubuntu 17.10. EDIT: Silly me. I actually tried running |
Oh, that is fascinating! |
Hm, for the record, I get task_info failures with both
|
|
This is fedora 25, I installed all the required dependencies listed in the readme and there seems to be no package providing mach/mach_init.h.
The text was updated successfully, but these errors were encountered: