-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
base: master
Are you sure you want to change the base?
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. |
The job Click to see the possible cause of the failure (guessed by this bot)
|
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). |
|
||
## Testing | ||
|
||
The Rust test suite can be run natively. It can also be run from the ports tree |
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.
maybe "the FreeBSD ports tree"
#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 |
No description provided.