Build fails while installig Rust
albertskog opened this issue · 1 comments
Hi! Trying to run this example on a OrangePi Zero (armv7
) but can't get past the stage where it installs Rust;
# Install Rust
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain 1.37.0 -y
Here is the full log output of a fresh build. Interesting part is right at the end, looks like memory allocation fails while installing rustc:
balena-rust-hello-world git:(master) balena push 192.168.188.48 -s .
[Info] Starting build on device 192.168.188.48
[Info] Creating default composition with source: .
[Build] [main] Step 1/25 : FROM balenalib/orange-pi-zero-debian as base
[Build] [main] ---> ff5f85082156
[Build] [main] Step 2/25 : ENV DEBIAN_FRONTEND=noninteractive
[Build] [main] ---> Running in 69bc14ee4bde
[Build] [main] Removing intermediate container 69bc14ee4bde
[Build] [main] ---> fa3a382aa2db
[Build] [main] Step 3/25 : FROM base as rust
[Build] [main] ---> fa3a382aa2db
[Build] [main] Step 4/25 : RUN apt-get -q update && apt-get install -yq --no-install-recommends build-essential curl file
[Build] [main] ---> Running in 3b920ab4815e
[Build] [main] Get:1 http://deb.debian.org/debian buster InRelease [122 kB]
[Build] [main] Get:2 http://security.debian.org/debian-security buster/updates InRelease [65.4 kB]
[Build] [main] Get:3 http://deb.debian.org/debian buster-updates InRelease [49.3 kB]
[Build] [main] Get:4 http://security.debian.org/debian-security buster/updates/main armhf Packages [184 kB]
[Build] [main] Get:5 http://deb.debian.org/debian buster/main armhf Packages [7699 kB]
[Build] [main] Get:6 http://deb.debian.org/debian buster-updates/main armhf Packages [7356 B]
[Build] [main] Fetched 8126 kB in 37s (222 kB/s)
[Build] Reading package lists...
[Build] [main] Reading package lists...
[Build] [main] Building dependency tree...
[Build] [main]
[Build] Reading state information...
[Build] [main] curl is already the newest version (7.64.0-4+deb10u1).
[Build] The following package was automatically installed and is no longer required:
[Build] [main] libidn11
[Build] Use 'apt autoremove' to remove it.
[Build] [main] The following additional packages will be installed:
[Build] [main] binutils binutils-arm-linux-gnueabihf binutils-common bzip2 cpp cpp-8
[Build] [main] dpkg-dev g++ g++-8 gcc gcc-8 libasan5 libatomic1 libbinutils libc-dev-bin
[Build] [main] libc6-dev libcc1-0 libdpkg-perl libgcc-8-dev libgomp1 libisl19 libmagic-mgc
[Build] [main] libmagic1 libmpc3 libmpfr6 libstdc++-8-dev libubsan1 linux-libc-dev make
[Build] [main] patch xz-utils
[Build] [main] Suggested packages:
[Build] binutils-doc bzip2-doc cpp-doc gcc-8-locales debian-keyring gcc-8-doc
[Build] libstdc++6-8-dbg gcc-multilib manpages-dev autoconf automake libtool flex
[Build] bison gdb gcc-doc libgcc1-dbg libgomp1-dbg libitm1-dbg libatomic1-dbg
[Build] libasan5-dbg liblsan0-dbg libtsan0-dbg libubsan1-dbg libmpx2-dbg
[Build] libquadmath0-dbg glibc-doc sensible-utils git bzr libstdc++-8-doc make-doc
[Build] ed diffutils-doc
[Build] Recommended packages:
[Build] fakeroot libalgorithm-merge-perl manpages manpages-dev
[Build] libfile-fcntllock-perl liblocale-gettext-perl
[Build] [main] The following NEW packages will be installed:
[Build] [main] binutils binutils-arm-linux-gnueabihf binutils-common build-essential bzip2
[Build] [main] cpp cpp-8 dpkg-dev file g++ g++-8 gcc gcc-8 libasan5 libatomic1 libbinutils
[Build] [main] libc-dev-bin libc6-dev libcc1-0 libdpkg-perl libgcc-8-dev libgomp1 libisl19
[Build] [main] libmagic-mgc libmagic1 libmpc3 libmpfr6 libstdc++-8-dev libubsan1
[Build] [main] linux-libc-dev make patch xz-utils
[Build] [main] 0 upgraded, 33 newly installed, 0 to remove and 0 not upgraded.
[Build] Need to get 38.0 MB of archives.
[Build] After this operation, 126 MB of additional disk space will be used.
[Build] Get:1 http://deb.debian.org/debian buster/main armhf bzip2 armhf 1.0.6-9.2~deb10u1 [46.7 kB]
[Build] [main] Get:2 http://deb.debian.org/debian buster/main armhf libmagic-mgc armhf 1:5.35-4+deb10u1 [242 kB]
[Build] [main] Get:3 http://deb.debian.org/debian buster/main armhf libmagic1 armhf 1:5.35-4+deb10u1 [110 kB]
[Build] [main] Get:4 http://deb.debian.org/debian buster/main armhf file armhf 1:5.35-4+deb10u1 [65.5 kB]
[Build] [main] Get:5 http://deb.debian.org/debian buster/main armhf xz-utils armhf 5.2.4-1 [181 kB]
[Build] [main] Get:6 http://deb.debian.org/debian buster/main armhf binutils-common armhf 2.31.1-16 [2073 kB]
[Build] [main] Get:7 http://deb.debian.org/debian buster/main armhf libbinutils armhf 2.31.1-16 [302 kB]
[Build] [main] Get:8 http://deb.debian.org/debian buster/main armhf binutils-arm-linux-gnueabihf armhf 2.31.1-16 [2101 kB]
[Build] [main] Get:9 http://deb.debian.org/debian buster/main armhf binutils armhf 2.31.1-16 [56.7 kB]
[Build] [main] Get:10 http://deb.debian.org/debian buster/main armhf libc-dev-bin armhf 2.28-10 [267 kB]
[Build] [main] Get:11 http://deb.debian.org/debian buster/main armhf linux-libc-dev armhf 4.19.98-1 [1297 kB]
[Build] [main] Get:12 http://deb.debian.org/debian buster/main armhf libc6-dev armhf 2.28-10 [2149 kB]
[Build] [main] Get:13 http://deb.debian.org/debian buster/main armhf libisl19 armhf 0.20-2 [455 kB]
[Build] [main] Get:14 http://deb.debian.org/debian buster/main armhf libmpfr6 armhf 4.0.2-1 [731 kB]
[Build] [main] Get:15 http://deb.debian.org/debian buster/main armhf libmpc3 armhf 1.1.0-1 [33.8 kB]
[Build] [main] Get:16 http://deb.debian.org/debian buster/main armhf cpp-8 armhf 8.3.0-6 [6790 kB]
[Build] [main] Get:17 http://deb.debian.org/debian buster/main armhf cpp armhf 4:8.3.0-1 [19.4 kB]
[Build] [main] Get:18 http://deb.debian.org/debian buster/main armhf libcc1-0 armhf 8.3.0-6 [38.9 kB]
[Build] [main] Get:19 http://deb.debian.org/debian buster/main armhf libgomp1 armhf 8.3.0-6 [64.8 kB]
[Build] [main] Get:20 http://deb.debian.org/debian buster/main armhf libatomic1 armhf 8.3.0-6 [6740 B]
[Build] [main] Get:21 http://deb.debian.org/debian buster/main armhf libasan5 armhf 8.3.0-6 [336 kB]
[Build] [main] Get:22 http://deb.debian.org/debian buster/main armhf libubsan1 armhf 8.3.0-6 [103 kB]
[Build] [main] Get:23 http://deb.debian.org/debian buster/main armhf libgcc-8-dev armhf 8.3.0-6 [612 kB]
[Build] [main] Get:24 http://deb.debian.org/debian buster/main armhf gcc-8 armhf 8.3.0-6 [7229 kB]
[Build] [main] Get:25 http://deb.debian.org/debian buster/main armhf gcc armhf 4:8.3.0-1 [5204 B]
[Build] [main] Get:26 http://deb.debian.org/debian buster/main armhf libstdc++-8-dev armhf 8.3.0-6 [1584 kB]
[Build] [main] Get:27 http://deb.debian.org/debian buster/main armhf g++-8 armhf 8.3.0-6 [7463 kB]
[Build] [main] Get:28 http://deb.debian.org/debian buster/main armhf g++ armhf 4:8.3.0-1 [1624 B]
[Build] [main] Get:29 http://deb.debian.org/debian buster/main armhf make armhf 4.2.1-1.2 [327 kB]
[Build] [main] Get:30 http://deb.debian.org/debian buster/main armhf libdpkg-perl all 1.19.7 [1414 kB]
[Build] [main] Get:31 http://deb.debian.org/debian buster/main armhf patch armhf 2.7.6-3+deb10u1 [123 kB]
[Build] [main] Get:32 http://deb.debian.org/debian buster/main armhf dpkg-dev all 1.19.7 [1773 kB]
[Build] [main] Get:33 http://deb.debian.org/debian buster/main armhf build-essential armhf 12.6 [7568 B]
[Build] [main] debconf: delaying package configuration, since apt-utils is not installed
[Build]
[Build] [main] Fetched 38.0 MB in 1min 9s (550 kB/s)
[Build] [main] Selecting previously unselected package bzip2.
[Build] (Reading database ...
(Reading database ... 25% database ... 5%
(Reading database ... 75% database ... 30%
[Build] [main] (Reading database ... 80%
[Build] [main] (Reading database ... 85%
[Build] [main] (Reading database ... 90%
[Build] [main] (Reading database ... 95%
(Reading database ... 9958 files and directories currently installed.)
[Build] [main] Preparing to unpack .../00-bzip2_1.0.6-9.2~deb10u1_armhf.deb ...
[Build] [main] Unpacking bzip2 (1.0.6-9.2~deb10u1) ...
[Build] [main] Selecting previously unselected package libmagic-mgc.
[Build] [main] Preparing to unpack .../01-libmagic-mgc_1%3a5.35-4+deb10u1_armhf.deb ...
[Build] [main] Unpacking libmagic-mgc (1:5.35-4+deb10u1) ...
[Build] [main] Selecting previously unselected package libmagic1:armhf.
[Build] [main] Preparing to unpack .../02-libmagic1_1%3a5.35-4+deb10u1_armhf.deb ...
[Build] [main] Unpacking libmagic1:armhf (1:5.35-4+deb10u1) ...
[Build] [main] Selecting previously unselected package file.
[Build] [main] Preparing to unpack .../03-file_1%3a5.35-4+deb10u1_armhf.deb ...
[Build] [main] Unpacking file (1:5.35-4+deb10u1) ...
[Build] [main] Selecting previously unselected package xz-utils.
[Build] [main] Preparing to unpack .../04-xz-utils_5.2.4-1_armhf.deb ...
[Build] [main] Unpacking xz-utils (5.2.4-1) ...
[Build] [main] Selecting previously unselected package binutils-common:armhf.
[Build] [main] Preparing to unpack .../05-binutils-common_2.31.1-16_armhf.deb ...
[Build] [main] Unpacking binutils-common:armhf (2.31.1-16) ...
[Build] [main] Selecting previously unselected package libbinutils:armhf.
[Build] [main] Preparing to unpack .../06-libbinutils_2.31.1-16_armhf.deb ...
[Build] [main] Unpacking libbinutils:armhf (2.31.1-16) ...
[Build] [main] Selecting previously unselected package binutils-arm-linux-gnueabihf.
[Build] [main] Preparing to unpack .../07-binutils-arm-linux-gnueabihf_2.31.1-16_armhf.deb ...
[Build] [main] Unpacking binutils-arm-linux-gnueabihf (2.31.1-16) ...
[Build] [main] Selecting previously unselected package binutils.
[Build] [main] Preparing to unpack .../08-binutils_2.31.1-16_armhf.deb ...
[Build] [main] Unpacking binutils (2.31.1-16) ...
[Build] [main] Selecting previously unselected package libc-dev-bin.
[Build] [main] Preparing to unpack .../09-libc-dev-bin_2.28-10_armhf.deb ...
[Build] [main] Unpacking libc-dev-bin (2.28-10) ...
[Build] [main] Selecting previously unselected package linux-libc-dev:armhf.
[Build] [main] Preparing to unpack .../10-linux-libc-dev_4.19.98-1_armhf.deb ...
[Build] [main] Unpacking linux-libc-dev:armhf (4.19.98-1) ...
[Build] [main] Selecting previously unselected package libc6-dev:armhf.
[Build] [main] Preparing to unpack .../11-libc6-dev_2.28-10_armhf.deb ...
[Build] [main] Unpacking libc6-dev:armhf (2.28-10) ...
[Build] [main] Selecting previously unselected package libisl19:armhf.
[Build] [main] Preparing to unpack .../12-libisl19_0.20-2_armhf.deb ...
[Build] [main] Unpacking libisl19:armhf (0.20-2) ...
[Build] [main] Selecting previously unselected package libmpfr6:armhf.
[Build] [main] Preparing to unpack .../13-libmpfr6_4.0.2-1_armhf.deb ...
[Build] [main] Unpacking libmpfr6:armhf (4.0.2-1) ...
[Build] [main] Selecting previously unselected package libmpc3:armhf.
[Build] [main] Preparing to unpack .../14-libmpc3_1.1.0-1_armhf.deb ...
[Build] [main] Unpacking libmpc3:armhf (1.1.0-1) ...
[Build] [main] Selecting previously unselected package cpp-8.
[Build] [main] Preparing to unpack .../15-cpp-8_8.3.0-6_armhf.deb ...
[Build] [main] Unpacking cpp-8 (8.3.0-6) ...
[Build] [main] Selecting previously unselected package cpp.
[Build] [main] Preparing to unpack .../16-cpp_4%3a8.3.0-1_armhf.deb ...
[Build] [main] Unpacking cpp (4:8.3.0-1) ...
[Build] [main] Selecting previously unselected package libcc1-0:armhf.
[Build] [main] Preparing to unpack .../17-libcc1-0_8.3.0-6_armhf.deb ...
[Build] [main] Unpacking libcc1-0:armhf (8.3.0-6) ...
[Build] [main] Selecting previously unselected package libgomp1:armhf.
[Build] [main] Preparing to unpack .../18-libgomp1_8.3.0-6_armhf.deb ...
[Build] [main] Unpacking libgomp1:armhf (8.3.0-6) ...
[Build] [main] Selecting previously unselected package libatomic1:armhf.
[Build] [main] Preparing to unpack .../19-libatomic1_8.3.0-6_armhf.deb ...
[Build] [main] Unpacking libatomic1:armhf (8.3.0-6) ...
[Build] [main] Selecting previously unselected package libasan5:armhf.
[Build] [main] Preparing to unpack .../20-libasan5_8.3.0-6_armhf.deb ...
[Build] [main] Unpacking libasan5:armhf (8.3.0-6) ...
[Build] [main] Selecting previously unselected package libubsan1:armhf.
[Build] [main] Preparing to unpack .../21-libubsan1_8.3.0-6_armhf.deb ...
[Build] [main] Unpacking libubsan1:armhf (8.3.0-6) ...
[Build] [main] Selecting previously unselected package libgcc-8-dev:armhf.
[Build] [main] Preparing to unpack .../22-libgcc-8-dev_8.3.0-6_armhf.deb ...
[Build] [main] Unpacking libgcc-8-dev:armhf (8.3.0-6) ...
[Build] [main] Selecting previously unselected package gcc-8.
[Build] [main] Preparing to unpack .../23-gcc-8_8.3.0-6_armhf.deb ...
[Build] [main] Unpacking gcc-8 (8.3.0-6) ...
[Build] [main] Selecting previously unselected package gcc.
[Build] [main] Preparing to unpack .../24-gcc_4%3a8.3.0-1_armhf.deb ...
[Build] [main] Unpacking gcc (4:8.3.0-1) ...
[Build] [main] Selecting previously unselected package libstdc++-8-dev:armhf.
[Build] Preparing to unpack .../25-libstdc++-8-dev_8.3.0-6_armhf.deb ...
[Build] [main] Unpacking libstdc++-8-dev:armhf (8.3.0-6) ...
[Build] [main] Selecting previously unselected package g++-8.
[Build] [main] Preparing to unpack .../26-g++-8_8.3.0-6_armhf.deb ...
[Build] [main] Unpacking g++-8 (8.3.0-6) ...
[Build] [main] Selecting previously unselected package g++.
[Build] [main] Preparing to unpack .../27-g++_4%3a8.3.0-1_armhf.deb ...
[Build] [main] Unpacking g++ (4:8.3.0-1) ...
[Build] [main] Selecting previously unselected package make.
[Build] [main] Preparing to unpack .../28-make_4.2.1-1.2_armhf.deb ...
[Build] [main] Unpacking make (4.2.1-1.2) ...
[Build] [main] Selecting previously unselected package libdpkg-perl.
[Build] [main] Preparing to unpack .../29-libdpkg-perl_1.19.7_all.deb ...
[Build] [main] Unpacking libdpkg-perl (1.19.7) ...
[Build] [main] Selecting previously unselected package patch.
[Build] [main] Preparing to unpack .../30-patch_2.7.6-3+deb10u1_armhf.deb ...
[Build] [main] Unpacking patch (2.7.6-3+deb10u1) ...
[Build] [main] Selecting previously unselected package dpkg-dev.
[Build] [main] Preparing to unpack .../31-dpkg-dev_1.19.7_all.deb ...
[Build] [main] Unpacking dpkg-dev (1.19.7) ...
[Build] [main] Selecting previously unselected package build-essential.
[Build] [main] Preparing to unpack .../32-build-essential_12.6_armhf.deb ...
[Build] [main] Unpacking build-essential (12.6) ...
[Build] [main] Setting up libmagic-mgc (1:5.35-4+deb10u1) ...
[Build] [main] Setting up binutils-common:armhf (2.31.1-16) ...
[Build] [main] Setting up libmagic1:armhf (1:5.35-4+deb10u1) ...
[Build] [main] Setting up linux-libc-dev:armhf (4.19.98-1) ...
[Build] [main] Setting up file (1:5.35-4+deb10u1) ...
[Build] [main] Setting up libgomp1:armhf (8.3.0-6) ...
[Build] [main] Setting up bzip2 (1.0.6-9.2~deb10u1) ...
[Build] [main] Setting up libasan5:armhf (8.3.0-6) ...
[Build] [main] Setting up make (4.2.1-1.2) ...
[Build] [main] Setting up libmpfr6:armhf (4.0.2-1) ...
[Build] [main] Setting up xz-utils (5.2.4-1) ...
[Build] [main] update-alternatives: using /usr/bin/xz to provide /usr/bin/lzma (lzma) in auto mode
[Build] [main] update-alternatives: warning: skip creation of /usr/share/man/man1/lzma.1.gz because associated file /usr/share/man/man1/xz.1.gz (of link group lzma) doesn't exist
[Build] [main] update-alternatives: warning: skip creation of /usr/share/man/man1/unlzma.1.gz because associated file /usr/share/man/man1/unxz.1.gz (of link group lzma) doesn't exist
[Build] [main] update-alternatives: warning: skip creation of /usr/share/man/man1/lzcat.1.gz because associated file /usr/share/man/man1/xzcat.1.gz (of link group lzma) doesn't exist
[Build] [main] update-alternatives: warning: skip creation of /usr/share/man/man1/lzmore.1.gz because associated file /usr/share/man/man1/xzmore.1.gz (of link group lzma) doesn't exist
[Build] [main] update-alternatives: warning: skip creation of /usr/share/man/man1/lzless.1.gz because associated file /usr/share/man/man1/xzless.1.gz (of link group lzma) doesn't exist
[Build] [main] update-alternatives: warning: skip creation of /usr/share/man/man1/lzdiff.1.gz because associated file /usr/share/man/man1/xzdiff.1.gz (of link group lzma) doesn't exist
[Build] [main] update-alternatives: warning: skip creation of /usr/share/man/man1/lzcmp.1.gz because associated file /usr/share/man/man1/xzcmp.1.gz (of link group lzma) doesn't exist
[Build] [main] update-alternatives: warning: skip creation of /usr/share/man/man1/lzgrep.1.gz because associated file /usr/share/man/man1/xzgrep.1.gz (of link group lzma) doesn't exist
[Build] [main] update-alternatives: warning: skip creation of /usr/share/man/man1/lzegrep.1.gz because associated file /usr/share/man/man1/xzegrep.1.gz (of link group lzma) doesn't exist
[Build] [main] update-alternatives: warning: skip creation of /usr/share/man/man1/lzfgrep.1.gz because associated file /usr/share/man/man1/xzfgrep.1.gz (of link group lzma) doesn't exist
[Build] [main] Setting up libmpc3:armhf (1.1.0-1) ...
[Build] [main] Setting up libatomic1:armhf (8.3.0-6) ...
[Build] [main] Setting up patch (2.7.6-3+deb10u1) ...
[Build] [main] Setting up libdpkg-perl (1.19.7) ...
[Build] [main] Setting up libubsan1:armhf (8.3.0-6) ...
[Build] [main] Setting up libisl19:armhf (0.20-2) ...
[Build] [main] Setting up libbinutils:armhf (2.31.1-16) ...
[Build] [main] Setting up cpp-8 (8.3.0-6) ...
[Build] [main] Setting up libc-dev-bin (2.28-10) ...
[Build] [main] Setting up binutils-arm-linux-gnueabihf (2.31.1-16) ...
[Build] [main] Setting up libcc1-0:armhf (8.3.0-6) ...
[Build] [main] Setting up binutils (2.31.1-16) ...
[Build] [main] Setting up dpkg-dev (1.19.7) ...
[Build] [main] Setting up libgcc-8-dev:armhf (8.3.0-6) ...
[Build] [main] Setting up cpp (4:8.3.0-1) ...
[Build] [main] Setting up libc6-dev:armhf (2.28-10) ...
[Build] [main] Setting up libstdc++-8-dev:armhf (8.3.0-6) ...
[Build] [main] Setting up gcc-8 (8.3.0-6) ...
[Build] [main] Setting up gcc (4:8.3.0-1) ...
[Build] [main] Setting up g++-8 (8.3.0-6) ...
[Build] [main] Setting up g++ (4:8.3.0-1) ...
[Build] [main] update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode
[Build] [main] Setting up build-essential (12.6) ...
[Build] [main] Processing triggers for libc-bin (2.28-10) ...
[Build] [main] Removing intermediate container 3b920ab4815e
[Build] [main] ---> 7286935a9296
[Build] [main] Step 5/25 : RUN c_rehash
[Build] [main] ---> Running in 3d732dffe9d8
[Build] [main] Doing /usr/lib/ssl/certs
[Build] [main] WARNING: Skipping duplicate certificate ca-certificates.crt
[Build]
[Build] [main] WARNING: Skipping duplicate certificate ca-certificates.crt
[Build]
[Build] [main] Removing intermediate container 3d732dffe9d8
[Build] [main] ---> 57824eaab8e3
[Build] [main] Step 6/25 : ENV PATH=/root/.cargo/bin:$PATH
[Build] [main] ---> Running in a49c7a4a9786
[Build] [main] Removing intermediate container a49c7a4a9786
[Build] [main] ---> fe36ae506b79
[Build] [main] Step 7/25 : RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain 1.37.0 -y
[Build] [main] ---> Running in 2c595cdb0b87
[Build] [main] info: downloading installer
[Build]
[Build] [main] info: profile set to 'default'
[Build] info: default host triple is armv7-unknown-linux-gnueabihf
[Build]
[Build] [main] info: syncing channel updates for '1.37.0-armv7-unknown-linux-gnueabihf'
[Build]
[Build] [main] info: latest update on 2019-08-15, rust version 1.37.0 (eae3437df 2019-08-13)
[Build]
[Build] [main] warning: Force-skipping unavailable component 'clippy-armv7-unknown-linux-gnueabihf'
[Build] warning: Force-skipping unavailable component 'rustfmt-armv7-unknown-linux-gnueabihf'
[Build]
[Build] [main] info: downloading component 'cargo'
[Build]
[Build] [main] info: downloading component 'rust-std'
[Build]
[Build] [main] info: downloading component 'rustc'
[Build]
[Build] [main] info: installing component 'cargo'
[Build]
[Build] [main] info:
[Build] [main] installing component 'rust-std'
[Build]
[Build] [main] info: installing component 'rustc'
[Build]
[Build] [main] memory allocation of 120046776 bytes failed
[Build] [main] Aborted (core dumped)
[Build]
[Build] [main] Removing intermediate container 2c595cdb0b87
Some services failed to build:
main: The command '/bin/sh -c curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain 1.37.0 -y' returned a non-zero code: 1
Additional information may be available by setting a DEBUG=1 environment
variable: "set DEBUG=1" on a Windows command prompt, or "export DEBUG=1"
on Linux or macOS.
If you need help, don't hesitate in contacting our support forums at
https://forums.balena.io
For bug reports or feature requests, have a look at the GitHub issues or
create a new one at: https://github.com/balena-io/balena-cli/issues/
I also tried changing the Rust version from 1.37.0 to 1.42.0 with more or less the same results.
Any ideas what might be wrong? I'm using a 32 GB SD so not sure why memory allocation would fail?
I have been digging around some more and it seems the issue is that the Orange Pi Zero's 512 MB RAM is simply not enough to install rustc
, even when limiting RAM usage to the minimum with export RUSTUP_UNPACK_RAM=200000000
. 😢
I'll have another try at getting cross compilation working instead..