Date: Mon, 28 Jun 2021 13:34:46 +0200 From: J P <webplication@gmail.com> To: Adrian Murphy <amurphy@gsoft.com.au> Cc: freebsd-ports@freebsd.orgadd, freebsd-arm <freebsd-arm@freebsd.org> Subject: Re: lang/rust does not build on aarch64 Message-ID: <CABcCtUSNtfMkULabEjR4jSp=%2B8=TqKTa-beubcBdnPirY8nsew@mail.gmail.com> In-Reply-To: <7D6AA55E-F627-4ED8-B761-1852E58F4989@gsoft.com.au> References: <CABcCtUQe=d%2Bh8AsTyEn8gsryqFOHPtMQjeqcYybeKdfZH1eL_w@mail.gmail.com> <7D6AA55E-F627-4ED8-B761-1852E58F4989@gsoft.com.au>
next in thread | previous in thread | raw e-mail | index | archive | help
--00000000000018e8ec05c5d1e1db Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Adrian, I doubt it's a memory problem (64G) but I see: Jun 28 12:11:57 asn kernel: pid 53284 (cargo), jid 0, uid 0: exited on signal 11 (core dumped) # gdb -c /usr/ports/lang/rust/work/rustc-1.53.0-src/cargo.core [...] [New LWP 113488] Core was generated by `/usr/ports/lang/rust/work/bootstrap/bin/cargo build --manifest-path /usr/ports/l'. Program terminated with signal SIGSEGV, Segmentation fault. #0 0x00001af55631ab38 in ?? () (gdb) bt #0 0x00001af55631ab38 in ?? () #1 0x00001af556318b14 in ?? () Backtrace stopped: previous frame identical to this frame (corrupt stack?) (gdb) So bootstrap cargo booms and it's compiled without debug symbols. BR, El lun, 28 jun 2021 a las 9:25, Adrian Murphy (<amurphy@gsoft.com.au>) escribi=C3=B3: > > > > On 27 Jun 2021, at 7:37 pm, J P <webplication@gmail.com> wrote: > > > > 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.to= ml > > --verbose --frozen > > Traceback (most recent call last): > > File "x.py", line 27, in <module> > > bootstrap.main() > > File > > > "/wrkdirs/usr/ports/lang/rust/work/rustc-1.52.1-src/src/bootstrap/bootstr= ap.py", > > line 1175, in main > > bootstrap(help_triggered) > > File > > > "/wrkdirs/usr/ports/lang/rust/work/rustc-1.52.1-src/src/bootstrap/bootstr= ap.py", > > line 1148, in bootstrap > > build.build_bootstrap() > > File > > > "/wrkdirs/usr/ports/lang/rust/work/rustc-1.52.1-src/src/bootstrap/bootstr= ap.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/bootstr= ap.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.to= ml > > --verbose --frozen > > *** Error code 1 > > > > Stop. > > make: stopped in /usr/ports/lang/rust > > > > 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 > > > > > Thank you. > > > > BR, > > --00000000000018e8ec05c5d1e1db--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CABcCtUSNtfMkULabEjR4jSp=%2B8=TqKTa-beubcBdnPirY8nsew>