Skip to content
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

`./mach check` fails on Fedora 26: src/task_info.c:10:10: fatal error: mach/mach_init.h: No such file or directory #19635

Closed
jonleighton opened this issue Dec 23, 2017 · 6 comments

Comments

@jonleighton
Copy link
Contributor

@jonleighton jonleighton commented Dec 23, 2017

As of e2f534f I can no longer run ./mach check on Fedora 26. Here is the output of `./mach check -v'. The error is:

running: "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-m64" "-o" "/home/turnip/Code/servo/target/debug/build/task_info-5b509507e8510095/out/src/task_info.o" "-c" "src/task_info.c"
cargo:warning=src/task_info.c:10:10: fatal error: mach/mach_init.h: No such file or directory
cargo:warning= #include <mach/mach_init.h>
cargo:warning=          ^~~~~~~~~~~~~~~~~~
cargo:warning=compilation terminated.

It comes from the support/rust-task_info crate, but I think what has happened is that before e2f534f, task_info wasn't being built (it doesn't show up in the output of ./mach check -v on the preceding commit). The change in e2f534f seems to have made it so that ./mach check does now try to build task_info, and so the failure is now showing up.

It appears that the code in the task_info crate is targeted at OS X, which would be why it won't build for me. I've tried to do a bit of figuring out about why ./mach check is now trying to build it when it previously didn't, but I haven't got very far.

./mach build seems to work fine, so this just affects the check command.

cc @asajeffrey

@jonleighton
Copy link
Contributor Author

@jonleighton jonleighton commented Dec 23, 2017

Aha, we should only be use-ing the task_info crate on macos anyway:

#[cfg(target_os = "macos")]
use task_info::task_basic_info::{virtual_size, resident_size};

So it seems like the conditional compilation attribute is not working properly on this earlier version of rustc.

@jonleighton
Copy link
Contributor Author

@jonleighton jonleighton commented Dec 23, 2017

I tried to find a Rust commit/issue relating to this, but failed

@SimonSapin
Copy link
Member

@SimonSapin SimonSapin commented Dec 23, 2017

This likely regressed in #19574 , which downgraded the compiler to work around a compiler bug but unfotunately downgraded Cargo at the same time. We can upgrade again when we find a proper fix for #19519.

In the meantime, try ./mach check -p servo.

@SimonSapin SimonSapin mentioned this issue Dec 23, 2017
4 of 4 tasks complete
@asajeffrey
Copy link
Member

@asajeffrey asajeffrey commented Dec 23, 2017

Oh great. AFAICT there is currently no rustc version which can build servo successfully. We either hit this bug or #19519, sigh.

@jonleighton
Copy link
Contributor Author

@jonleighton jonleighton commented Dec 23, 2017

Note that it only affects ./mach check, not ./mach build, so the status quo isn't a total disaster

@SimonSapin
Copy link
Member

@SimonSapin SimonSapin commented Dec 23, 2017

I just checked, ./mach check -p servo works.

bors-servo added a commit that referenced this issue Jan 5, 2018
[Do not merge] Upgrade to rustc 1.24.0-nightly (0a3761e63 2018-01-03)

Do not merge (yet), as this might bring #19519 back.

Fixes #19635
Fixes #19637

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/19683)
<!-- Reviewable:end -->
bors-servo added a commit that referenced this issue Jan 9, 2018
[Do not merge] Upgrade to rustc 1.24.0-nightly (0a3761e63 2018-01-03)

Do not merge (yet), as this might bring #19519 back.

Fixes #19635
Fixes #19637

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/19683)
<!-- Reviewable:end -->
bors-servo added a commit that referenced this issue Jan 9, 2018
[Do not merge] Upgrade to rustc 1.24.0-nightly (0a3761e63 2018-01-03)

Do not merge (yet), as this might bring #19519 back.

Fixes #19635
Fixes #19637

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/19683)
<!-- Reviewable:end -->
bors-servo added a commit that referenced this issue Jan 9, 2018
[Do not merge] Upgrade to rustc 1.24.0-nightly (0a3761e63 2018-01-03)

Do not merge (yet), as this might bring #19519 back.

Fixes #19635
Fixes #19637

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/19683)
<!-- Reviewable:end -->
bors-servo added a commit that referenced this issue Jan 10, 2018
Upgrade to rustc 1.24.0-nightly (0a3761e63 2018-01-03)

Fixes #19635
Fixes #19637
Fixes #19735
Fixes #19519

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/19683)
<!-- Reviewable:end -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.