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

ci update freebsd version proposal, freebsd 12 being eol #120869

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

devnexen
Copy link
Contributor

@devnexen devnexen commented Feb 10, 2024

raising to the lowest still active supported freebsd version.
From 13.1 (already eol too), freebsd introduces a cpu affinity layer
with linux. It also introduces a api compatible copy_file_range which
can be used like its linux's counterpart.
The former is essential to build #120589, therefore breaks the backward
compatibility with the previous FreeBSD releases.

Blocked on #130465

@rustbot
Copy link
Collaborator

rustbot commented Feb 10, 2024

r? @Mark-Simulacrum

rustbot has assigned @Mark-Simulacrum.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rustbot rustbot added A-testsuite Area: The testsuite used to check the correctness of rustc S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-infra Relevant to the infrastructure team, which will review and decide on the PR/issue. labels Feb 10, 2024
@Noratrieb
Copy link
Member

Does this mean that the minimum supported version is raised? Or is freebsd backwards-compatible so that builds against a new version still run on the old versiom? (A thing that's, for example, not true for linux glibc).
Can you edit the description to describe the impact of this change this way?

@Mark-Simulacrum Mark-Simulacrum added the relnotes Marks issues that should be documented in the release notes of the next release. label Feb 11, 2024
@Mark-Simulacrum
Copy link
Member

@rustbot author

Please update the PR description with details that @Nilstrieb asked for. It would probably also be a good idea to reflect in the platform support page (https://github.com/rust-lang/rust/blob/master/src/doc/rustc/src/platform-support.md) the target details if this does raise the minimum, so that users have something to reference for future Rust versions.

@rustbot rustbot added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Feb 11, 2024
@devnexen
Copy link
Contributor Author

@rustbot review

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Feb 11, 2024
@Noratrieb
Copy link
Member

What is the current minimum freebsd version supported by rustc? The platform support doc page doesn't document this.

@devnexen
Copy link
Contributor Author

I would say freebsd 12.

@Noratrieb
Copy link
Member

Thank you for adding it! Not in this PR, but it would be nice if you could add a new target documentation page in platform-support in src/doc/rustc for freebsd, adding yourself as the target maintainer (if you're interested) :).

I just looked it up, the last FreeBSD bump was #97944. It didn't include a blog post (which we do for bumps of more popular targets), so that seems fine. It superseded #89083 which contains more information.

Looks like we use FreeBSD artifacts on our CI mirror, so @Mark-Simulacrum (or someone else with permissions) will have to upload them first before this can be merged.

@Mark-Simulacrum
Copy link
Member

I've put the artifacts in our mirror (2024-02-18-freebsd-13.2-i386-base.txz and 2024-02-18-freebsd-13.2-amd64-base.txz). Please update the download file to match those, and then we can move ahead.

@Mark-Simulacrum Mark-Simulacrum added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Feb 18, 2024
@devnexen devnexen force-pushed the update_fbsd_ci branch 2 times, most recently from c7285bd to 42d5b87 Compare February 18, 2024 17:44
@devnexen
Copy link
Contributor Author

@rustbot review

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Feb 19, 2024
@Mark-Simulacrum
Copy link
Member

@bors r+ rollup=iffy

@bors
Copy link
Contributor

bors commented Feb 24, 2024

📌 Commit 42d5b87 has been approved by Mark-Simulacrum

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented Feb 24, 2024

🌲 The tree is currently closed for pull requests below priority 50. This pull request will be tested once the tree is reopened.

@bors bors removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Feb 24, 2024
@devnexen
Copy link
Contributor Author

ping :) any luck ? unfortunately, it blocks further freebsd updates.

@bors
Copy link
Contributor

bors commented Apr 20, 2024

☔ The latest upstream changes (presumably #121712) made this pull request unmergeable. Please resolve the merge conflicts.

@bors
Copy link
Contributor

bors commented May 2, 2024

☔ The latest upstream changes (presumably #124404) made this pull request unmergeable. Please resolve the merge conflicts.

@RalfJung
Copy link
Member

RalfJung commented May 5, 2024

ping :) any luck ? unfortunately, it blocks further freebsd updates.

I interpret this as
@rustbot ready
(you can also do this yourself in the future)

That said, above you were asked to add some background and explanation to the PR description, which apparently has not happened yet.

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels May 5, 2024
@Mark-Simulacrum
Copy link
Member

I see the clang version used for freebsd is identified as clang 6 which is suspicious :-) kind of old..

I don't know where that clang version is coming from. In general our dist builders often use older toolchains installed from e.g. Ubuntu LTS versions, if we need to build our own copy of clang that should generally be fine to add (see e.g. https://github.com/rust-lang/rust/blob/master/src/ci/docker/host-x86_64/dist-x86_64-linux/build-clang.sh).

That said, above you were asked to add some background and explanation to the PR description, which apparently has not happened yet.

Yeah, this would still be good to do.

@rustbot author

I don't think this is ready for another round of CI (unless I missed something), so setting back to waiting on author. I easily miss pings so would recommend setting to waiting-on-review as Ralf did if you need reviewer attention.

@rustbot rustbot added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels May 5, 2024
@devnexen
Copy link
Contributor Author

devnexen commented May 6, 2024

I see the clang version used for freebsd is identified as clang 6 which is suspicious :-) kind of old..

I don't know where that clang version is coming from. In general our dist builders often use older toolchains installed from e.g. Ubuntu LTS versions, if we need to build our own copy of clang that should generally be fine to add (see e.g. https://github.com/rust-lang/rust/blob/master/src/ci/docker/host-x86_64/dist-x86_64-linux/build-clang.sh).

Sure but problem is, llvm would not compile with clang 6 ?

That said, above you were asked to add some background and explanation to the PR description, which apparently has not happened yet.

Yeah, this would still be good to do.

I ve done it.

@rustbot
Copy link
Collaborator

rustbot commented Jul 27, 2024

Some changes occurred in src/tools/cargo

cc @ehuss

@rust-log-analyzer

This comment has been minimized.

@bors
Copy link
Contributor

bors commented Aug 1, 2024

☔ The latest upstream changes (presumably #128461) made this pull request unmergeable. Please resolve the merge conflicts.

@alex-semenyuk
Copy link
Member

@devnexen
Ping from triage. Are this waiting something beside solving merge conflicts?

@devnexen
Copy link
Contributor Author

yes the build for freebsd need to be updated.

@alex-semenyuk
Copy link
Member

@devnexen thanks, where we can track it update?

@alex-semenyuk alex-semenyuk added S-blocked Status: Marked as blocked ❌ on something else such as an RFC or other implementation work. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Sep 17, 2024
@devnexen
Copy link
Contributor Author

It might be best to create an issue because it s complicated, it s using docker to build freebsd binaries with an old toolchain. Ideally, something like cirrus would be more ideal.

@devnexen
Copy link
Contributor Author

Issue opened here.

raising to the lowest still active supported freebsd version.
From 13.1 (already eol too), freebsd introduces a cpu affinity layer
with linux. It also introduces a api compatible copy_file_range which
can be used like its linux's counterpart.
The former is essential to build rust-lang#120589, therefore breaks the backward
compatibility with the previous FreeBSD releases.
@devnexen
Copy link
Contributor Author

@Mark-Simulacrum would it be possible to give another try ? since I ve updated the Docker container version, it should come with a newer clang version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-testsuite Area: The testsuite used to check the correctness of rustc relnotes Marks issues that should be documented in the release notes of the next release. S-blocked Status: Marked as blocked ❌ on something else such as an RFC or other implementation work. T-infra Relevant to the infrastructure team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants