Re: lang/rust does not build on aarch64

From: J P <webplication_at_gmail.com>
Date: Mon, 28 Jun 2021 13:34:46 +0200
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_at_gsoft.com.au>)
escribió:

>
>
> > On 27 Jun 2021, at 7:37 pm, J P <webplication_at_gmail.com> wrote:
> >
> > Hi,
> > it seems rust does not build on aarch64:
> > ===>  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.toml
> > --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/bootstrap.py",
> > line 1175, in main
> >    bootstrap(help_triggered)
> >  File
> >
> "/wrkdirs/usr/ports/lang/rust/work/rustc-1.52.1-src/src/bootstrap/bootstrap.py",
> > line 1148, in bootstrap
> >    build.build_bootstrap()
> >  File
> >
> "/wrkdirs/usr/ports/lang/rust/work/rustc-1.52.1-src/src/bootstrap/bootstrap.py",
> > line 900, in build_bootstrap
> >    run(args, env=env, verbose=self.verbose)
> >  File
> >
> "/wrkdirs/usr/ports/lang/rust/work/rustc-1.52.1-src/src/bootstrap/bootstrap.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.toml
> > --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,
>
>
Received on Mon Jun 28 2021 - 11:34:46 UTC

Original text of this message