-
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
rust target x86_64-pc-solaris doesn't work #68214
Comments
@varkor , I have crated new bug to truck the issue. Can you please elaborate what exactly needs to be done in |
@psumbera: I haven't got time to look into this just now, but I would have thought it wouldn't be too difficult to track down what's going on here. |
I have tried add symbolic link as follows:
But it doesn't help much:
It seems that libstd-560fc60f1e090eba.rlib expects just x86_64-sun-solaris. @varkor any idea? |
I did try having a look, but I think I'd need to actually start debugging to figure out where the issue arises. Though I would like to see this fixed, I don't have a lot of time at the moment, and I don't think it's an important issue, as you can use the alias instead. So I don't think I can dig into this myself. |
I looked into this and probably found out why this is happening. The above condition fails because while Similar code where and it cannot find the target to compile against. Changes from #61761 added the possibility to use I managed to fix this by changing
and then called this as soon as possible (in the |
@kulikjak: thanks for investigating! At the moment, this is the only alias, so I think that special casing it like this is fine. If it turned out that we wanted to add more in the future, we could think about revisiting the solution. I'd be happy to review your fix if you opened a pull request. |
One more question: would you be interested in PR, which makes While this is more of a firefox bug rather than a rust issue, I think that making |
@kulikjak: perhaps that would be a good idea, yes. Then the default target would match the LLVM target, which is what was probably intended from the start. Thanks! |
…,Mark-Simulacrum make x86_64-pc-solaris the default target for x86-64 Solaris This change makes `x86_64-pc-solaris` the default compilation target for x86-64 Solaris/Illumos (based on [this exchange](rust-lang#68214 (comment)) with `@varkor).` I tried several ways of doing this (leveraging the alias support added with rust-lang#61761 and improved/fixed with rust-lang#80073) and found out that cross-compilation to the new one is by far the simplest way of doing this. It can be achieved by adding the following arguments: `--build x86_64-sun-solaris --host x86_64-pc-solaris --target x86_64-pc-solaris` and enabling the cross compilation with `PKG_CONFIG_ALLOW_CROSS=1` environment variable. I also removed alias support altogether - `x86_64-pc-solaris` and `x86_64-sun-solaris` are now two separate targets. The problem with aliases is that even if rust internally knows that two are the same, other tools building with rust don't know that, resulting in build issues like the one with firefox mentioned [here](rust-lang#68214 (comment)). I think that once the dust settles and `x86_64-pc-solaris` becomes the default, `x86_64-sun-solaris` can be removed. If you agree with the above, I have two subsequent questions: 1. Is there a preferred way to display deprecation warnings when `x86_64-sun-solaris` is passed into the compiler as an argument? I am not sure whether target deprecation was done before. 2. Where would be the best way to document this change for those using rust on Solaris? Without the cross-compilation arguments (used once to build a new version), the build won't work. Should I add it into [RELEASES.md](https://github.com/rust-lang/rust/blob/master/RELEASES.md)? Thanks!
This was caused by:
#40531
And originally reported there too:
#40531 (comment)
The text was updated successfully, but these errors were encountered: