-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
target tuples for solaris not quite right #40531
Comments
An interesting discrepancy here is that our target and the LLVM target currently don't match. I'm not sure whether we can/should change anything here for backwards compatibility reasons, though an alias seems fine.
|
Hi, can I take this issue up? Can someone give a hint on how to fix this? I am a rust beginner, interested in compilers. This would be my first contribution. |
@Guruhegde: as far as I can tell, you should just be able to add a new line under: rust/src/tools/build-manifest/src/main.rs Line 120 in 597f432
containing "x86_64-pc-solaris", , and then add a new line under:rust/src/librustc_target/spec/mod.rs Line 432 in 597f432
containing: // `x86_64-pc-solaris` is an alias for `x86_64_sun_solaris` for backwards compatibility reasons.
// (See https://github.com/rust-lang/rust/issues/40531.)
("x86_64-pc-solaris", x86_64_sun_solaris), (Sorry for the delay: I only just saw your message.) |
@rustbot claim |
Add an alias for x86_64-sun-solaris target tuple Closes rust-lang#40531 r? @varkor
I wonder how it's supposed to work? Only x86_64-sun-solaris continues work for me:
This change make it harder for Mozilla Firefox to decide which target to use... |
I think we may have to introduce some changes in |
Closing as a duplicate of #68214. |
There are actually two different generally expected encodings of the host tuple and they're subtly different than what some might expect.
For example, 'x86_64-sun-solaris' should probably be x86_64-pc-solaris. The reason for that is that the encoding schemes are actually:
https://github.com/gcc-mirror/gcc/blob/master/config.sub
So while 'sparcv9-sun-solaris' is correct because Sun is the (historical) manufacturer of sparc CPUs, 'x86_64-sun-solaris' is not, because the MANUFACTURER here is the manufacturer of the CPU not the operating system. There are special cases for this, for example 'x86_64-apple-darwin', even though Apple doesn't make x86_64 CPUs, but following gcc/clang conventions leads us to x86_64-pc-solaris.
This issue has been assigned to @lzutao via this comment.
The text was updated successfully, but these errors were encountered: