Skip to content
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

rustup install warnings #90369

Closed
trollkarlen opened this issue Oct 28, 2021 · 2 comments
Closed

rustup install warnings #90369

trollkarlen opened this issue Oct 28, 2021 · 2 comments

Comments

@trollkarlen
Copy link

When running in k8s using gitlab ci flow using docker in docker(dind) for building a container, I get the following issue when using the rustup installer.

/usr/bin/head: error reading '/proc/self/exe': Bad file descriptor
/usr/bin/head: failed to close '/proc/self/exe': Bad file descriptor
rustup: unknown platform bitness
main: line 358: [: : integer expression expected

Looks like /proc/self/exe does not exist or cant be read this leads to issues in this statement:

if [ "${_ostype}" = unknown-linux-gnu ] && [ "${_bitness}" -eq 32 ]; then

Looks like an alternative way of getting the bitsize would be nice, or atleast a check for that this files exist and are readable and that _bitness is not "".

@hkratz
Copy link
Contributor

hkratz commented Oct 28, 2021

This seems to be related to rust-lang/rustup#2700. As the issue only concerns rustup it should be moved to the rustup repo.

@trollkarlen
Copy link
Author

trollkarlen commented Oct 28, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants