From nobody Mon Jun 28 11:34:46 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 4337411CBF09 for ; Mon, 28 Jun 2021 11:35:00 +0000 (UTC) (envelope-from webplication@gmail.com) Received: from mail-ot1-x32c.google.com (mail-ot1-x32c.google.com [IPv6:2607:f8b0:4864:20::32c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4GD5BD1JSvz4qJs for ; Mon, 28 Jun 2021 11:34:59 +0000 (UTC) (envelope-from webplication@gmail.com) Received: by mail-ot1-x32c.google.com with SMTP id 59-20020a9d0ac10000b0290462f0ab0800so10504072otq.11 for ; Mon, 28 Jun 2021 04:34:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=u+miU4nY0gcB6GNgjQK5U7xWUL6mRWqT7WF/UMQ2wM4=; b=sjFSeyJSY83NSwloTzx7ZTln7scwIJIZ5YzkUSMfX4vhvYTnYLmD+GcMe9o0Mo5QiT cRnzz6fIlaxX1RW1dybcnV3w1mDXaexL5EOsan4l/YfrvQyBcld2Bk8p7Q1DYcIVC1KO MgTysaANvl3weyYOI+mltDxYPGLYfoupGxKAkdKmDVlScmjaB39YpmaipvCT4f0wyL0l SU/0qZtZ3LeR7LgWdb6O4jGcjP5Rl21wh7i3H6YiZeTpnt1vbwSxAf3yVK157IqaGaP4 ot5bD25SjN0+F30yOueSeoGPzGVOPHLwmiuxEkbwX6KEn2ikNymIahqUUf0rIo5XGBtB M2Bw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=u+miU4nY0gcB6GNgjQK5U7xWUL6mRWqT7WF/UMQ2wM4=; b=rjwgvg0K6W3MhE1MXmmuA1hzj8b+9P4HflItnR+XAfWFKLzlpwU/Hy/4F3VV8Q3osC RKQ9zRUywuQB3UctVc7Jfr4/YGnWqCcVUwkV6dF/wRtl9Jn2100QjhMLNLEP3ZeBzXhG SB0s/SGbWy8kpXFK9lFIx9DC80vLRw2bYzXf+T0XVhYWWeID1Bw77oA24T15BFE83fHP gN8EGVrQWmSD5Rqsb10I4u5qLhdVztGeK9qF/eCNzGicy9oPFzPk8hDvgazO5a9IwkJA OKYXyAj7vW0VztEyxioGpNiwxnLT4s0H5X9kNkko09IOPtp/Yu6V6RPJfeoBY2T9KnUu paQg== X-Gm-Message-State: AOAM531YdWj7c4VIDx7XlzuLqdieeZ4Cw6UIyi0owS7NMEkWey7oqPCM b6bGBAl/yZ5kJmhbrfV8GvVRDogoyGwXrqlv9YQmKBpo8LCev4hX4KA= X-Google-Smtp-Source: ABdhPJzBU45WchuYevT+EKQgyEkbN2FJFRJga/VD8uKffjmm7tmpOR5xq0LtmB7bc5DjUp93mlAUjXrtQllSaLzNkEU= X-Received: by 2002:a05:6830:22d6:: with SMTP id q22mr3365785otc.40.1624880098895; Mon, 28 Jun 2021 04:34:58 -0700 (PDT) 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 References: <7D6AA55E-F627-4ED8-B761-1852E58F4989@gsoft.com.au> In-Reply-To: <7D6AA55E-F627-4ED8-B761-1852E58F4989@gsoft.com.au> From: J P Date: Mon, 28 Jun 2021 13:34:46 +0200 Message-ID: Subject: Re: lang/rust does not build on aarch64 To: Adrian Murphy Cc: freebsd-ports@freebsd.orgadd, freebsd-arm Content-Type: multipart/alternative; boundary="00000000000018e8ec05c5d1e1db" X-Rspamd-Queue-Id: 4GD5BD1JSvz4qJs X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: Y --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 () escribi=C3=B3: > > > > On 27 Jun 2021, at 7:37 pm, J P 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 > > 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--