Rustup: Segfault on Linux 4.4.9 armv6l

Created on 11 May 2016  路  18Comments  路  Source: rust-lang/rustup

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.

Most helpful comment

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)

All 18 comments

GitHub refuses to let me upload a zip file (suggesting I try a zip file instead...), so here's the dumped core. I had to upload it as a zip file with the txt extension.

Thank you for the report and the dump.

I've having a similar if not the same issue on Arch Linux Arm with Raspberry Pi Model 2 B (armv7l).

$ curl https://sh.rustup.rs -sSf | sh             
info: downloading installer
sh: line 225:   342 Segmentation fault      (core dumped) "$@"
rustup: command failed: /tmp/tmp.dVnwFS3Xew/rustup-init

Perhaps this is related to missing NEON instructions. There was a PR today to install the armv6 toolchain if armv7 _without_ NEON is detected.

I just tried running running rustup-init.sh from master a few minutes ago, and got pretty much the same error:

$ ./rustup-init.sh
info: downloading installer
./rustup-init.sh: line 238: 12686 Segmentation fault      (core dumped) "$@"
rustup: command failed: /tmp/tmp.ybqeQhziBv/rustup-init

Thanks for checking @flounders.

https://github.com/rust-lang-nursery/rustup.rs/pull/651 This PR updates the build machine toolchain from something ancient to the current stable compiler. Might fix things.

Both arm and armv7 nightlies segfault on my Rpi2. I don't think this is related to rustup.

also have the same problem as op

Linux rpi3 4.4.17-2-ARCH #1 SMP Tue Aug 16 19:17:53 MDT 2016 armv7l GNU/Linux

Compiling from source also produces an unusable rustc. Errors are identical to rust-lang/rust#33928

Works fine on Jessie Lite btw, just tested out of curiosity. Is everyone here using Arch Linux?

I am using Arch Arm. I haven't been able to test anything recently as I just moved and don't have internet at my place, currently at work.

I was on Arch Arm, but my SD card has died so I'm unable to test until I get a replacement.

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)

Works fine on Jessie Lite btw, just tested out of curiosity. Is everyone here using Arch Linux?

Linux alarmpi 4.4.17-2-ARCH #1 Tue Aug 16 19:37:06 MDT 2016 armv6l GNU/Linux

same problem here, the patchelf workaround works though.

Same for me, patchelf fixed it for me too.
Linux pie 4.4.23-1-ARCH #1 SMP Fri Sep 30 19:06:51 MDT 2016 armv7l GNU/Linux

Sorry for not testing this sooner. I tried what the ghost user suggested on Aug 22, and it works for me as well.

Linux alarmpi 4.4.39-1-ARCH #1 SMP Sun Dec 18 18:25:13 MST 2016 armv7l GNU/Linux

Is this still an issue?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kornelski picture kornelski  路  3Comments

matthiaskrgr picture matthiaskrgr  路  3Comments

Stargateur picture Stargateur  路  3Comments

lilred picture lilred  路  3Comments

TomasHubelbauer picture TomasHubelbauer  路  3Comments