From nobody Mon Jun 28 07:25:33 2021 X-Original-To: freebsd-arm@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 0856F11DE9BA for ; Mon, 28 Jun 2021 07:25:51 +0000 (UTC) (envelope-from amurphy@gsoft.com.au) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.freebsd.org (Postfix) with ESMTP id 4GCzfk3RGMz4XJm for ; Mon, 28 Jun 2021 07:25:49 +0000 (UTC) (envelope-from amurphy@gsoft.com.au) Received: from smtpclient.apple (Adinah.gsoft.com.au [203.31.81.84]) (authenticated bits=0) by cain.gsoft.com.au (8.14.4/8.14.3) with ESMTP id 15S7PYX1078038 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 28 Jun 2021 16:55:39 +0930 (CST) (envelope-from amurphy@gsoft.com.au) Content-Type: text/plain; charset=us-ascii List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.100.0.2.22\)) Subject: Re: lang/rust does not build on aarch64 From: Adrian Murphy In-Reply-To: Date: Mon, 28 Jun 2021 16:55:33 +0930 Cc: freebsd-ports@freebsd.orgadd, freebsd-arm Content-Transfer-Encoding: quoted-printable Message-Id: <7D6AA55E-F627-4ED8-B761-1852E58F4989@gsoft.com.au> References: To: J P X-Mailer: Apple Mail (2.3654.100.0.2.22) X-Spam-Score: -2.5 () ALL_TRUSTED,BAYES_00 X-Scanned-By: MIMEDefang 2.67 on 203.31.81.10 X-Rspamd-Queue-Id: 4GCzfk3RGMz4XJm X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: N > On 27 Jun 2021, at 7:37 pm, J P wrote: >=20 > Hi, > it seems rust does not build on aarch64: > =3D=3D=3D> Building for rust-1.52.1 > rustup not detected: [Errno 2] No such file or directory: 'rustc' > falling back to auto-detect > running: /wrkdirs/usr/ports/lang/rust/work/bootstrap/bin/cargo build > --manifest-path > = /wrkdirs/usr/ports/lang/rust/work/rustc-1.52.1-src/src/bootstrap/Cargo.tom= l > --verbose --frozen > Traceback (most recent call last): > File "x.py", line 27, in > bootstrap.main() > File > = "/wrkdirs/usr/ports/lang/rust/work/rustc-1.52.1-src/src/bootstrap/bootstra= p.py", > line 1175, in main > bootstrap(help_triggered) > File > = "/wrkdirs/usr/ports/lang/rust/work/rustc-1.52.1-src/src/bootstrap/bootstra= p.py", > line 1148, in bootstrap > build.build_bootstrap() > File > = "/wrkdirs/usr/ports/lang/rust/work/rustc-1.52.1-src/src/bootstrap/bootstra= p.py", > line 900, in build_bootstrap > run(args, env=3Denv, verbose=3Dself.verbose) > File > = "/wrkdirs/usr/ports/lang/rust/work/rustc-1.52.1-src/src/bootstrap/bootstra= p.py", > line 153, in run > raise RuntimeError(err) > RuntimeError: failed to run: > /wrkdirs/usr/ports/lang/rust/work/bootstrap/bin/cargo build = --manifest-path > = /wrkdirs/usr/ports/lang/rust/work/rustc-1.52.1-src/src/bootstrap/Cargo.tom= l > --verbose --frozen > *** Error code 1 >=20 > Stop. > make: stopped in /usr/ports/lang/rust >=20 > Is this known? Is there a chance you ran out of memory? I just had the same problem (I think) on an amd64 vm with 512MB ram and = 1GB swap: Jun 28 16:32:29 Menoetius kernel: swp_pager_getswapspace(11): failed Jun 28 16:32:36 Menoetius kernel: pid 57952 (rustc), jid 0, uid 0, was = killed: out of swap space I progressed by giving it more ram. Adrian=20 >=20 > Thank you. >=20 > BR,