rustup: Segfault on Linux 4.4.9 armv6l

The following segfaults on my Raspberry Pi:

~$ curl https://sh.rustup.rs -sSfo rustup.sh
~$ chmod +x ./rustup.sh
~$ ./rustup.sh
info: downloading installer
./rustup.sh: line 220:   575 Segmentation fault      (core dumped) "$@"
rustup: command failed: /tmp/tmp.PpNF2ChKzq/rustup-init

This worked until attempting to run rustup update today. Unfortunately, I don’t know the version of rustup that was being used previously.

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Reactions: 3
  • Comments: 18 (5 by maintainers)

Most upvoted comments

Here’s what eventually worked for me:

$ curl -sSf https://static.rust-lang.org/rustup.sh | sh -s -- --channel=nightly
$ sudo patchelf --add-needed /usr/lib/libpthread.so.0 $(which rustc)
$ sudo patchelf --add-needed /lib/ld-linux-armhf.so.3 $(which cargo)