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

Linux madv #3159

Merged
merged 2 commits into from Apr 22, 2023
Merged

Linux madv #3159

merged 2 commits into from Apr 22, 2023

Conversation

tatref
Copy link
Contributor

@tatref tatref commented Mar 20, 2023

This is a followup of #2818

@rustbot
Copy link
Collaborator

rustbot commented Mar 20, 2023

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @JohnTitor (or someone else) soon.

Please see the contribution instructions for more information. Namely, in order to ensure the minimum review times lag, PR authors and assigned reviewers should ensure that the review label (S-waiting-on-review and S-waiting-on-author) stays updated, invoking these commands when appropriate:

  • @rustbot author: the review is finished, PR author should check the comments and take action accordingly
  • @rustbot review: the author is ready for a review, this PR will be queued again in the reviewer's queue

@JohnTitor
Copy link
Member

CI failed, could you check?

@tatref
Copy link
Contributor Author

tatref commented Mar 23, 2023

Sorry, but I'm not sure how to fix this.
I can't find any folder under semver related to Docker

Am I missing something?

@tatref
Copy link
Contributor Author

tatref commented Mar 25, 2023

Error message:

warning: /checkout/target/i686-unknown-linux-gnu/debug/build/libc-test-a07c148a50447aab/out/main.c:10614:70: error: 'MADV_DONTNEED_LOCKED' undeclared here (not in a function); did you mean 'MADV_DONTNEED'?
warning: 10614 |             static const int __test_const_MADV_DONTNEED_LOCKED_val = MADV_DONTNEED_LOCKED;
warning:       |                                                                      ^~~~~~~~~~~~~~~~~~~~
warning:       |                                                                      MADV_DONTNEED

Seems like MADV_DONTNEED_LOCKED was added in Linux 5.18. If the host image is the same as the container (Ubuntu 22.04), then it comes with Linux 5.15, so the error is expected.

I added it to libc-test/build.rs under cfg.skip_const.
@JohnTitor is this correct?

@tatref tatref force-pushed the linux-madv branch 2 times, most recently from e9cdce7 to 6cceb04 Compare March 28, 2023 21:23
@JohnTitor
Copy link
Member

Yeah, right. Thank you!

@JohnTitor
Copy link
Member

@bors r+

@bors
Copy link
Contributor

bors commented Mar 29, 2023

📌 Commit 6cceb04 has been approved by JohnTitor

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented Mar 29, 2023

⌛ Testing commit 6cceb04 with merge aca7a38...

bors added a commit that referenced this pull request Mar 29, 2023
Linux madv

This is a followup of #2818
@bors
Copy link
Contributor

bors commented Mar 29, 2023

💔 Test failed - checks-actions

@tatref
Copy link
Contributor Author

tatref commented Mar 29, 2023

Not sure why CI worked, but bors failed on musl.
I excluded a few more items for musl

@JohnTitor
Copy link
Member

Note that CI on PR doesn't run all the jobs but bors does the full test.
@bors r+

@bors
Copy link
Contributor

bors commented Apr 1, 2023

📌 Commit 7d93bb0 has been approved by JohnTitor

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented Apr 1, 2023

⌛ Testing commit 7d93bb0 with merge 05ef4ab...

bors added a commit that referenced this pull request Apr 1, 2023
Linux madv

This is a followup of #2818
@bors
Copy link
Contributor

bors commented Apr 1, 2023

💔 Test failed - checks-cirrus-freebsd-14

@bors
Copy link
Contributor

bors commented Apr 18, 2023

⌛ Testing commit d95bde7 with merge d707bd7...

bors added a commit that referenced this pull request Apr 18, 2023
Linux madv

This is a followup of #2818
@JohnTitor
Copy link
Member

Failed on i686-android:

  cargo:warning=/checkout/target/i686-linux-android/debug/build/libc-test-72b8e71d699a7371/out/main.c:10631:70: error: use of undeclared identifier 'MADV_DONTNEED_LOCKED'
  cargo:warning=            static const int __test_const_MADV_DONTNEED_LOCKED_val = MADV_DONTNEED_LOCKED;
  cargo:warning=                                                                     ^
  cargo:warning=1 error generated.

Seems this one isn't ignored on test_android.

@bors
Copy link
Contributor

bors commented Apr 18, 2023

💔 Test failed - checks-actions

@tatref
Copy link
Contributor Author

tatref commented Apr 21, 2023

Hopefully the last fix... I should really setup some CI server to run the checks myself!

@JohnTitor
Copy link
Member

Let's see if CI is happy, @bors r+

@bors
Copy link
Contributor

bors commented Apr 22, 2023

📌 Commit 4858568 has been approved by JohnTitor

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented Apr 22, 2023

⌛ Testing commit 4858568 with merge 6a6e535...

bors added a commit that referenced this pull request Apr 22, 2023
Linux madv

This is a followup of #2818
@bors
Copy link
Contributor

bors commented Apr 22, 2023

💔 Test failed - checks-actions

libc-test/build.rs Outdated Show resolved Hide resolved
@JohnTitor
Copy link
Member

@bors r+

@bors
Copy link
Contributor

bors commented Apr 22, 2023

📌 Commit f3e1417 has been approved by JohnTitor

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented Apr 22, 2023

⌛ Testing commit f3e1417 with merge 2de3ab9...

@bors
Copy link
Contributor

bors commented Apr 22, 2023

☀️ Test successful - checks-actions, checks-cirrus-freebsd-12, checks-cirrus-freebsd-13, checks-cirrus-freebsd-14
Approved by: JohnTitor
Pushing 2de3ab9 to master...

@bors bors merged commit 2de3ab9 into rust-lang:master Apr 22, 2023
8 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants