From nobody Sat Nov 26 16:14:03 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 4NKGyG31Glz4hTSk for ; Sat, 26 Nov 2022 16:14:14 +0000 (UTC) (envelope-from eduardo@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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 4NKGyG270Sz3wx0; Sat, 26 Nov 2022 16:14:14 +0000 (UTC) (envelope-from eduardo@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1669479254; 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=DoF/eY0ZYi2mWnpo2z4Ep5T5DRs0jl0OSa3K2g+5vdU=; b=LvkwUUJsuQ+AOVkyWn98gYStU1ZM8SowrHHRDMVjZ80GVPkHD9wfI316pQ1QapSwu1qwzn ojQl9eN/arkzKAZJa/N1cD8p26B8DVlDMHfpHvje5Df1k3jDus6SpUHqj1/dWjfchKs+16 OXHY0uFtz5p6PDN+50nsVguUiPzRCX4b1+opWIag6/wqncIZKrb6nQkzoUHhjQp3ep44F9 CZbIL3Hfj6ttnUsfHUt1+oswZlHZeDlfYQol86fkgeWS1Se/EmKepD+UFcf+vVq1J+6w6f YKdsePC9GTQiuheC2M3WD1Y7kI3LGdxGsSq9HFlFqyLvfaAyXerHExn0hxChMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1669479254; 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=DoF/eY0ZYi2mWnpo2z4Ep5T5DRs0jl0OSa3K2g+5vdU=; b=WTfWAIazYEFn+IjArnFJwI0/179pOzI1DXaC9RZUnZspa3qI0FeooPlCgzx96Xm6KczL+c +dQqN0aLu46T+gD7uxvU59CQcLouWx48oStPbaHLs0hybMIXJeHPOp8HwMZgYa4bti8lwW mmblVfHJRFco43E6PaiomjkEVgP8DvSXrETWbWOKkggLPNHQ+2r/yoUEa9oxnXG2cLjkEH 5VTIobCp7qk8ojpHtUOh1cSKGIGhR1Xeda5o1G862r56f+P2uR3669rSJh2fpXvzUTnBHg t80oie2MF/0ZLz9lZzH2EAv4QKVmUyFt3U/8MGSrtHVflhimtKfgcAAJ2E77Ag== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1669479254; a=rsa-sha256; cv=none; b=S0DXGuZzdWo0cuu4as99PodqIZPEg6EjNommtcsUN7nUBNiAMyQcUC7roXHGqSyr8jrXuk GjGUKWRhtteI9YE9avWzS0ZiuNKvwaMWPlskeIa8ohxJDq717HyD007hUC4QV+YEcHOIgx vui5GcGNEws3210RKFsl5o0s7krA905Lae056MUjupkgBG5daKEelP/6//FfqSyjM/yVWW GRGIJYoUI5Dq9oVd+xc5JkHAoxCPPj8aiJ9uJtBlTWPcjxgASTGasgCcOvsovfXkHwrQ4w QDzHBuP57QWhLtyZZ7z7yyo31YeGgEwLwl8z97+N1/ISUvhpWWRG5dWusCI0+A== Received: from mail-vs1-f47.google.com (mail-vs1-f47.google.com [209.85.217.47]) (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 4NKGyG10BczGtH; Sat, 26 Nov 2022 16:14:14 +0000 (UTC) (envelope-from eduardo@freebsd.org) Received: by mail-vs1-f47.google.com with SMTP id 128so6774227vsz.12; Sat, 26 Nov 2022 08:14:14 -0800 (PST) X-Gm-Message-State: ANoB5plW1tz6eehUdsSrSUzZr2NFWEMPp+1V13PNntZjQ1+xpW1qEQYv N1y7zIkccEJMbahdYsPQO+c1J2MKFXmqz0qh6Oo= X-Google-Smtp-Source: AA0mqf4S4l3NUIomCb59QebAUPEhqnnu25Z+J4KXUZVs7nCZ7w5RazGX6emFxMN/0bWHWpjTTwW3aNgBvKESqNzrU5Q= X-Received: by 2002:a05:6102:3205:b0:3b0:94f7:5a10 with SMTP id r5-20020a056102320500b003b094f75a10mr720834vsf.53.1669479253426; Sat, 26 Nov 2022 08:14:13 -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: Sat, 26 Nov 2022 16:14:03 +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="000000000000dc49c805ee61edc6" X-ThisMailContainsUnwantedMimeParts: N --000000000000dc49c805ee61edc6 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello Jan, "if #[cfg(all(target_os =3D "freebsd", target_arch =3D "aarch64"" seems to = be the best bet to fix build. I'm waiting for rust package 1.65.0 lands on 131aarch64 so I be able to test it on poudriere/qemu. 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) --000000000000dc49c805ee61edc6 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello Jan,

"if #[cfg(all(target= _os =3D "freebsd", target_arch = =3D "aarch64"" seems to be the be= st bet to fix build.

I&= #39;m waiting for rust package 1.65.0 lands on 131aarch64 so I be able to t= est it on poudriere/qemu.

<= /span>
Thanks,
<= br>
Jan Bei= ch <jbeich@freebsd.org> esc= reveu no dia s=C3=A1bado, 26/11/2022 =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)
--000000000000dc49c805ee61edc6--