-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Add platform docs for FreeBSD. #129220
Add platform docs for FreeBSD. #129220
Conversation
r? @JohnTitor rustbot has assigned @JohnTitor. Use |
cc @tgross35 . Also, perhaps @MikaelUrankar would like to sign up as a second target maintainer? |
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the platform support docs, please note that FreeBSD's ports patches i686-unknown-freebsd in a way that introduces incorrect compilations, thus people must use the upstream toolchain instead of a FreeBSD-built toolchain for building for i686-unknown-freebsd without introducing incorrect compilations.
Unless this changes, of course.
Ideally (since FreeBSD wants to support pre-SSE2 CPUs), instead of FreeBSD ports patching the |
Also, as far as I can tell, the |
Yes, you can put me as a 2nd target maintainer. |
@workingjubilee @beetrees the decision to build lang/rust without SSE support was made in 2017, before any of the linked LLVM issues. I'll start a discussion about revisiting it. I'll inquire about the ELFv1/ELFv2 issue too. |
This comment has been minimized.
This comment has been minimized.
I am not entirely sure they do? I have been informed contrariwise, i.e. that FreeBSD is only interested in Pentium 4 or later equivalents. Naturally, that might have been decided many years after the 2017 decision! Of course, if two targets settles the matter for FreeBSD, that is fine by me, and if a documentation change is preferred, that is also fine by me. I do not mean to be obstructive, I merely want the matter to be clear for everyone involved. |
I was inferring "since FreeBSD wants to support pre-SSE2 CPUs" from the FreeBSD i386 platform page, which states "FreeBSD/i386 should support any CPU compatible with the Intel Pentium Pro / Pentium II (i686) or better" (it's quite possible that the platform page is out of date though). It's worth noting that the FreeBSD 14.1 release notes state that 32-bit x86 platform support will be dropped from FreeBSD 15 onwards, while support for running 32-bit binaries on 64-bit x86 will remain for at least FreeBSD 15 and 16. Given that all 64-bit x86 CPUs support SSE2, there will definitely be no need for non-SSE2 CPU support after FreeBSD 14 reaches EOL (currently expected to be in November 2028). |
#120869 appears relevant to this PR as it bumps the minimum supported FreeBSD version. |
☔ The latest upstream changes (presumably #120869) made this pull request unmergeable. Please resolve the merge conflicts. |
Just FYI, you'll need to add the link to SUMMARY.md. Also, I'd suggest fixing the target definitions in |
@ehuss I would rather not deliberately introduce miscompilations into existing tier 2 targets that currently have none, whether or not |
@workingjubilee Sorry, I'm not following. Are you asking that the change requested above be resolved? I'm not the author, so I wouldn't be the one making that change. As the reviewer, I won't merge until it is resolved. Or maybe you intended to tag one of the other commenters here? Sorry, I'm confused. 😕 |
@ehuss I am saying that the resolution can include Unless that is what you meant, in which case it was just unclear to me, apologies. |
A change is underway to reenable SSE on i386 by default: https://reviews.freebsd.org/D47227 |
@rustbot author |
@asomers any updates on this? thanks |
I expect to merge that change, reenabling SSE2 on i386, by EoD on Saturday. |
079fe19
to
03c6091
Compare
Is the SSE note accurate since the push 3 weeks ago? If not, I think it would be okay to drop that section for now and merge the rest of the docs so we at least have something. |
Yes, the SSE note is accurate. I committed that change on 9-Nov. https://reviews.freebsd.org/R11:b039f2e46b15c1ff5cbaf41e642993d982294da3 |
ac162d6
to
fe6356f
Compare
Some changes occurred in src/doc/rustc/src/platform-support cc @Noratrieb |
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs an entry in SUMMARY.md and a squash, but with freebsd/freebsd-ports@b039f2e I don't think there is anything that this would be waiting on.
☔ The latest upstream changes (presumably #134296) made this pull request unmergeable. Please resolve the merge conflicts. |
@asomers could you rebase and squash? I'll merge this, if any small changes are needed they can come as a followup. |
32adb3e
to
12b54b1
Compare
done |
@bors r+ rollup |
Rollup of 4 pull requests Successful merges: - rust-lang#129220 (Add platform docs for FreeBSD.) - rust-lang#134659 (test-infra: improve compiletest and run-make-support symlink handling) - rust-lang#134668 (Make sure we don't lose default struct value when formatting struct) - rust-lang#134672 (Revert stabilization of the `#[coverage(..)]` attribute) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of rust-lang#129220 - asomers:target-maintainer, r=tgross35 Add platform docs for FreeBSD.
No description provided.