From nobody Fri Dec 30 11:38:16 2022 X-Original-To: freebsd-ports@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 4Nk3DP4V6Nz2l32T for ; Fri, 30 Dec 2022 11:38:29 +0000 (UTC) (envelope-from eduardo@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Nk3DP3hFVz3q7h; Fri, 30 Dec 2022 11:38:29 +0000 (UTC) (envelope-from eduardo@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1672400309; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=imEgZTV68ntc0TyQla0MsnCbft2ahpkhv2lv6N/bB80=; b=ZStvhqKYeVdX8hKVvNtIopyMSDG0TkGu/z48eTYxKPG4U3OYSz05KJf6XdhmKT8vaew0Iv +ipqlaMBrsgyiAAcbO4YLhQcZY/uViEbeVLBB8mb9mvbKEpWGDGxPMkxmDFRCTjFaUl0yZ wg1oBxJuRki8ep1nNkyw8c1b9k+zfkKLiMLRr+7KbzAJaGhtHK2W5p1YIulEzSejWOE5Lo Hxi5UHZOeyQX9Nx72cZu3m9FTK6LnO/rnqUnaRYVrkDGr6SAt7M7x47PCp4lma2BQcyVBG 0eZ400VIAc3rpbzpJcKCQy+MkBTBoI0pH+p8BpgY2c/sJmWG0ymQZNb35cpM2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1672400309; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=imEgZTV68ntc0TyQla0MsnCbft2ahpkhv2lv6N/bB80=; b=twJq0IcP/11Ib7hZdKdav3LcmTPMRdDtntYx18Y5g6yVqEDigdeO3pXUzxxF/sEk1TYrks nzr3uIdeNlug+pezAJO7hNZK+3Obc4YMOMGuHQa5M9HSo6M44CNyV6miR5ovzL59OlPNwO j664RbJqHPB0X6skRUWUdYSomfb5n+0IzTAi5gHzjsZV2ZRdOt/MuqixIe1nszZuqbRTY8 32Xj4icf4sdeEqMICG56QR4QAUi/iYkDeH/xo09SRoQbtKxwTbngMSQkcCOFZvZvUrWzoc J2fNbEoDUw6cPV0Ytjyzu7wt/eopdlWrBBXBAscqJ/ndOV0lzocwr1ZC2j17NQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1672400309; a=rsa-sha256; cv=none; b=PYmzKvnz+E+CyOHYvRfVJ44H5WefrNfWbSvKn8n79yOuFVb/2/6Y3EvmvdhXd+5Z490ai9 ZtvGQ9HLTxaHClHt4a1eKQ12cmplxD9d4JiJVsQ9K6KkHdhJE+T4Y4+si+TzrMfbCh16KH RCMFn8XmnhUmjkTfMtldTuTA0qIxF5JOcKEgeCX1CCapJziD0U6KyVIpXjC5RXTbB0lRPk LVZqLuabfhU5Gx5XdPmVrNffuFxW7YY2uaTwixBoHzLbaZhE53PT7TWjozLeQ8VaeiB+0D XO71dqVfkzrCr+hk2g52fMkVMJSoaIW+pPf2wOJSq03nXC17IO6Ixv0GnYI2hg== Received: from mail-vs1-f52.google.com (mail-vs1-f52.google.com [209.85.217.52]) (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 1D4" (verified OK)) (Authenticated sender: eduardo) by smtp.freebsd.org (Postfix) with ESMTPSA id 4Nk3DP2TRwzJ7D; Fri, 30 Dec 2022 11:38:29 +0000 (UTC) (envelope-from eduardo@freebsd.org) Received: by mail-vs1-f52.google.com with SMTP id m129so15202791vsc.11; Fri, 30 Dec 2022 03:38:29 -0800 (PST) X-Gm-Message-State: AFqh2koAOh+zXksX5NoqvcKFpxVXHOA25Ylb9jqmmPfBSUJxB7HHppp2 jgpU44A3L1RzCBue9NZH5szC2yXTYwRdvejO90Q= X-Google-Smtp-Source: AMrXdXvznW/FOdbw0x0Cc1gIOIact9MkkZE0FIiOKmxHVx9KcSLegg46zTlG8+fWaViZgtUqU0ouDTJQ7vCYXGVlv6s= X-Received: by 2002:a67:ec8a:0:b0:3b7:c371:fa0b with SMTP id h10-20020a67ec8a000000b003b7c371fa0bmr3670250vsp.58.1672400308104; Fri, 30 Dec 2022 03:38:28 -0800 (PST) List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org MIME-Version: 1.0 References: In-Reply-To: From: Nuno Teixeira Date: Fri, 30 Dec 2022 11:38:16 +0000 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [zstd-sys 2.0.1+zstd.1.5.2] crate failing on arm64 To: Jan Beich Cc: FreeBSD Mailing List Content-Type: multipart/alternative; boundary="00000000000049751705f10a0a28" X-ThisMailContainsUnwantedMimeParts: N --00000000000049751705f10a0a28 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello Jan, I've opened an issue at: https://github.com/bytecodealliance/wasmtime/issues/5499 Thanks Jan Beich escreveu no dia s=C3=A1bado, 26/11/2022 =C3= =A0(s) 14:56: > Nuno Teixeira writes: > > > From the log it seems [zstd-sys 2.0.1+zstd.1.5.2] crate failing. > > Unlikely if it shows up after "warning: build failed, waiting for other > jobs to finish..." > due to MAKE_JOBS_NUMBER=3D2 in poudriere log. > > > > https://pkg-status.freebsd.org/ampere2/data/main-arm64-default/pf323e9d40= f68_s41be508d31/logs/lapce-0.2.4.log > [...] > > [io-lifetimes 0.7.3] error[E0554]: `#![feature]` may not be used on the > stable release channel > > [io-lifetimes 0.7.3] --> :1:1 > > [io-lifetimes 0.7.3] | > > [io-lifetimes 0.7.3] 1 | #![feature(rustc_attrs)] > > [io-lifetimes 0.7.3] | ^^^^^^^^^^^^^^^^^^^^^^^^ > > [io-lifetimes 0.7.3] > > [io-lifetimes 0.7.3] error: aborting due to previous error > > Such errors don't abort build and also show up on amd64. If those ever > become a problem check if adding CARGO_ENV+=3DRUSTC_BOOTSTRAP=3D1 helps. > > > error: unsupported platform > > --> > /wrkdirs/usr/ports/editors/lapce/work/lapce-0.2.4/cargo-crates/wasmtime-r= untime-1.0.2/src/traphandlers/ > unix.rs:232:13 > > | > > 232 | compile_error!("unsupported platform"); > > | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > > > > error[E0308]: mismatched types > > --> > /wrkdirs/usr/ports/editors/lapce/work/lapce-0.2.4/cargo-crates/wasmtime-r= untime-1.0.2/src/traphandlers/ > unix.rs:167:73 > > | > > 167 | unsafe fn get_pc_and_fp(cx: *mut libc::c_void, _signum: > libc::c_int) -> (*const u8, usize) { > > | ------------- > ^^^^^^^^^^^^^^^^^^ expected tuple, found `()` > > | | > > | implicitly returns `()` as its body has no tail or > `return` expression > > | > > =3D note: expected tuple `(*const u8, usize)` > > found unit type `()` > > > > For more information about this error, try `rustc --explain E0308`. > > error: could not compile `wasmtime-runtime` due to 2 previous errors > > Looks like > https://github.com/bytecodealliance/wasmtime/blob/main/crates/runtime/src= /traphandlers/unix.rs > needs something like > https://github.com/wasmerio/wasmer/blob/dcfdea76999a/lib/vm/src/trap/trap= handlers.rs#L302-L304 > --=20 Nuno Teixeira FreeBSD Committer (ports) --00000000000049751705f10a0a28 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks

Jan Beich <jbeich@freebsd.org> escreveu no dia s=C3=A1bado, 26/11/202= 2 =C3=A0(s) 14:56:
Nuno Teixeira <eduardo@freebsd.org> writes:

> From the log it seems [zstd-sys 2.0.1+zstd.1.5.2] crate failing.

Unlikely if it shows up after "warning: build failed, waiting for othe= r jobs to finish..."
due to MAKE_JOBS_NUMBER=3D2 in poudriere log.

> https://pkg-status.freebsd.org/ampere2/data/main-arm64-defaul= t/pf323e9d40f68_s41be508d31/logs/lapce-0.2.4.log
[...]
> [io-lifetimes 0.7.3] error[E0554]: `#![feature]` may not be used on th= e stable release channel
> [io-lifetimes 0.7.3]=C2=A0 --> <anon>:1:1
> [io-lifetimes 0.7.3]=C2=A0 =C2=A0|
> [io-lifetimes 0.7.3] 1 | #![feature(rustc_attrs)]
> [io-lifetimes 0.7.3]=C2=A0 =C2=A0| ^^^^^^^^^^^^^^^^^^^^^^^^
> [io-lifetimes 0.7.3]
> [io-lifetimes 0.7.3] error: aborting due to previous error

Such errors don't abort build and also show up on amd64. If those ever<= br> become a problem check if adding CARGO_ENV+=3DRUSTC_BOOTSTRAP=3D1 helps.
> error: unsupported platform
>=C2=A0 =C2=A0 --> /wrkdirs/usr/ports/editors/lapce/work/lapce-0.2.4/= cargo-crates/wasmtime-runtime-1.0.2/src/traphandlers/unix.rs:232:13
>=C2=A0 =C2=A0 =C2=A0|
> 232 |=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0compile_error!(&q= uot;unsupported platform");
>=C2=A0 =C2=A0 =C2=A0|=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0^^= ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>
> error[E0308]: mismatched types
>=C2=A0 =C2=A0 --> /wrkdirs/usr/ports/editors/lapce/work/lapce-0.2.4/= cargo-crates/wasmtime-runtime-1.0.2/src/traphandlers/unix.rs:167:73
>=C2=A0 =C2=A0 =C2=A0|
> 167 | unsafe fn get_pc_and_fp(cx: *mut libc::c_void, _signum: libc::c_= int) -> (*const u8, usize) {
>=C2=A0 =C2=A0 =C2=A0|=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0---------= ----=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0^^^^^^^^^^^^^^^^^^ expected tuple, found `()= `
>=C2=A0 =C2=A0 =C2=A0|=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0|
>=C2=A0 =C2=A0 =C2=A0|=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0implicitl= y returns `()` as its body has no tail or `return` expression
>=C2=A0 =C2=A0 =C2=A0|
>=C2=A0 =C2=A0 =C2=A0=3D note:=C2=A0 expected tuple `(*const u8, usize)`=
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0found unit type `()` >
> For more information about this error, try `rustc --explain E0308`. > error: could not compile `wasmtime-runtime` due to 2 previous errors
Looks like https://github.com/bytecodealliance/wasmtime/blob/main/crates/runtime/= src/traphandlers/unix.rs
needs something like https://github.com/wasmerio/wasmer/blob/dcfdea76999a/lib/vm/= src/trap/traphandlers.rs#L302-L304


--
Nun= o Teixeira
FreeBSD Committer (ports)
--00000000000049751705f10a0a28--