-
Notifications
You must be signed in to change notification settings - Fork 13.3k
compiletest: make check-stage1
(or at least check-stage1-cfail
) no longer works on clean build dir
#17883
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
Comments
Also, |
make check-stage1
(or at least check-stage1-cfail
) no longer works on clean build dirmake check-stage1
(or at least check-stage1-cfail
) no longer works on clean build dir
@alexcrichton I know there is well-founded opposition to gating a PR on |
(sigh; the issue may be isolated to the snapshot compiler ... my attempts to reproduce with |
So at this point its probably not feasible to fix the issue as described here, since I am pretty sure it is isolated to a problem in the snapshot compiler. But we can and should still try to increase the coverage of bors to handle at least building |
At least building (but compiletest is fast to build) |
In case anyone is curious, the problem also occurs on Linux. I would be curious to know if taking a new snapshot would fix this. I'm not exactly sure how best to test that theory; my attempts to use |
It does indeed seem like if I first do This is evidence for my original hypothesis that something has gone wrong in our make dependencies. (odd that i could not reproduce the problem via another |
(PR #17940 only fixes the build issue; it does not attempt to add |
(PR #17940 also does not actually fix the problem I mentioned in comment: #17883 (comment) . That can be resolved separately; but I will revise the PR comment to not say that it "fixes" this issue.) |
…=huonw compiletest needs to link to native crate, or at least the `rt` library. (I tried using a dependency on `rustrt` instead, and that did not resolve the problem. But this does.) Partially addresses #17883
(I edited the PR description but forgot that github closes issues based on the original commit message.) I have a follow-on patch that resolves this in more fundamental ways, e.g. by both fixing the |
… rustc. ---- To reproduce issue on commit ba24610 it does not suffice to add just `check-build-compiletest` to `check-secondary`; one must also ensure that `check-build-compiletest` precedes the satisification of the `check` rule. Otherwise hidden dependencies of `compiletest` would end up getting satisfied when make builds `rustc` at each stage in order to eventually run `check-stage2`. So to handle that I moved `check-secondary` before `check` in the `check-all` rule that bors uses, and for good measure, I also put `check-build-compiltest` at the front of the `check-secondary` rule's dependencies. My understanding is that running `check-secondary` should be relatively cheap, and thus such a reordering will not hurt bors. ---- Fix rust-lang#17883.
When trying to do
rustc
development on the stage1 compiler, I've been hitting a link error.I suspect something has gone wrong in our make dependencies because I think the problem goes away if you first do a full build before doing
check-stage1-cfail
(I think, though I have not double-checked that scenario from scratch in a clean build dir yet).The text was updated successfully, but these errors were encountered: