-
Notifications
You must be signed in to change notification settings - Fork 892
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
Old build of rustup-init for netbsd fails to find current executable #1594
Comments
I was going to open new issue about old I did not see the error (on NetBSD 9.99.10), but $ rustup self update
info: checking for self-updates
info: downloading self-update
info: rustup updated successfully to 1.11.0 Is there any point I can check? |
NetBSD is not currently supported as a rustup release platform at all. If you can come up with a PR which adds support to our build matrix then we can carry it for unsupported use by intrepid players such as yourself. |
@kinnison @alexcrichton I'm sorry for bothering you. I thought NetBSD was supported. So NetBSD became unsupported at some point? Or it has never been supported officially? Thank you. |
I think it was never properly supported, but at one point we managed to do a build. I guess we need to either clean up README to not mislead people into thinking it's releasable; or, more usefully, we need to sort out a fresh builder for it. If you fancy having a go at updating our |
Thank you for the reply!! I am trying to setup Travis CI build for NetBSD target (based on I am afraid it is beyond my knowledge. I will continue to investigate it though. |
$ rustup self update
info: checking for self-updates
info: downloading self-update
info: rustup updated successfully to 1.19.0
$ rustup --version
rustup 1.19.0 (2af131cf9 2019-09-08) @lambda Please try it if possible. |
If this is no good for @lambda then this can be re-opened. For now, I'm going to close it. |
If I run the recommended install instructions on NetBSD 8, I get an error complaining about not being able to find the current working directory (there are also some problems with escape characters on my terminal, but let's not worry about those right now):
Checking the version, I find we're running an old build of
rustup-init
:Checking the code, this error can actually occur not just because of an error in locating the working directory, but also in locating the current executable; this should probably be fixed to provide a better error message:
If we
ktruss
therustup-init
process, we see that the__getcwd
called bycurret_dir
succeeds, it's actually thecurrent_exe
call that's failing:In
libstd
1.24.0, thenetbsd
platform was changed to prefer using asysctl
call rather than reading from/proc/curproc/exe
, which is less reliable; rust-lang/rust@ccef9696:However, based on the ktruss results it looks like
rustup-init
was build with a toolchain prior to this fix.There are a couple of things that would help to address this issue:
rustup-init
for NetBSD again; I haven't been able to figure out exactly what pieces of the CI setup would need to be changed for this, but I suspect a new build with a new Rust toolchain would fix this issue.ktruss
during the debugging processrustup-init.sh
could instead pass in the path to the current executable, since it knows where it downloaded it to and is executing it from.I'm not sure if the third point is worth doing if the other two are addressed, but it would probably be the most robust solution.
The text was updated successfully, but these errors were encountered: