-
Notifications
You must be signed in to change notification settings - Fork 13.3k
linkat() not available in the system headers of Solaris 10 #105007
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
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @joshtriplett (or someone else) soon. Please see the contribution instructions for more information. |
Hey! It looks like you've submitted a new PR for the library teams! If this PR contains changes to any Examples of
|
library/std/src/sys/unix/fs.rs
Outdated
@@ -1423,7 +1423,7 @@ pub fn link(original: &Path, link: &Path) -> io::Result<()> { | |||
run_path_with_cstr(original, |original| { | |||
run_path_with_cstr(link, |link| { | |||
cfg_if::cfg_if! { | |||
if #[cfg(any(target_os = "vxworks", target_os = "redox", target_os = "android", target_os = "espidf", target_os = "horizon"))] { | |||
if #[cfg(any(target_os = "vxworks", target_os = "redox", target_os = "android", target_os = "espidf", target_os = "horizon", target_os = "solaris"))] { |
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.
Can you add a comment below why solaris is included here too?
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.
Right, I have added the reason in the comment.
Does Solaris 11 or any other version have |
See question in previous comment. @rustbot author |
I haven't a Solaris 11 server. So, I cannot tell if linkat() is available in the system headers of Solaris 11. |
If we haven't received any reports related to the |
…0, available in version 11)
From Oracle documentation, I've changed the commit to check the presence of |
The concerns have been addressed and this looks good to me, so... @bors r+ |
☀️ Test successful - checks-actions |
Finished benchmarking commit (edcbb29): comparison URL. Overall result: no relevant changes - no action needed@rustbot label: -perf-regression Instruction countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)This benchmark run did not return any relevant results for this metric. CyclesThis benchmark run did not return any relevant results for this metric. |
I've installed rustup on x86_64-unknown-linux-gnu and would like to use the target sparcv9-sun-solaris. For this, I have built a gcc from the source code for cross-compiling to sparcv9-sun-solaris2.10 with system headers of Solaris 10.
With the following hello word example:
main.rs:
I had a compilation error:
linkat() is not available in the system headers of Solaris 10. The hello word example works fine when I build/use rust with this PR change.