Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Nov 2022 15:56:34 +0100
From:      Jan Beich <jbeich@FreeBSD.org>
To:        Nuno Teixeira <eduardo@freebsd.org>
Cc:        FreeBSD Mailing List <freebsd-ports@freebsd.org>
Subject:   Re: [zstd-sys 2.0.1+zstd.1.5.2] crate failing on arm64
Message-ID:  <pmd9-lq71-wny@FreeBSD.org>
In-Reply-To: <CAFDf7UKTQmu3mnULC_716dgSUik2eKF4tOo7_y1YFsr98CREAw@mail.gmail.com> (Nuno Teixeira's message of "Thu, 24 Nov 2022 00:33:24 %2B0000")
References:  <CAFDf7UKTQmu3mnULC_716dgSUik2eKF4tOo7_y1YFsr98CREAw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 other jobs to finish..."
due to MAKE_JOBS_NUMBER=2 in poudriere log.

> https://pkg-status.freebsd.org/ampere2/data/main-arm64-default/pf323e9d40f68_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]  --> <anon>: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+=RUSTC_BOOTSTRAP=1 helps.

> error: unsupported platform
>    --> /wrkdirs/usr/ports/editors/lapce/work/lapce-0.2.4/cargo-crates/wasmtime-runtime-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-runtime-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
>     |
>     = 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/traphandlers.rs#L302-L304



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?pmd9-lq71-wny>