Date: Wed, 02 Nov 2022 17:23:11 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 267529] lang/rust: Cargo crashes on shells/starship on i386 Message-ID: <bug-267529-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D267529 Bug ID: 267529 Summary: lang/rust: Cargo crashes on shells/starship on i386 Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: ports-bugs@FreeBSD.org Reporter: yuri@freebsd.org CC: rust@FreeBSD.org CC: rust@FreeBSD.org Compiling systemstat v0.2.1 Running `CARGO=3D/usr/local/bin/cargo CARGO_CRATE_NAME=3Dsystemstat CARGO_MANIFEST_DIR=3D/wrkdirs/usr/ports/shells/starship/work/starship-1.11.= 0/cargo-crates/systemstat-0.2.1 CARGO_PKG_AUTHORS=3D'Val Packett <val@packett.cool>' CARGO_PKG_DESCRIPTION= =3D'Get system information/statistics in a cross-platform way' CARGO_PKG_HOMEPAGE=3D'https://github.com/unrelentingtech/systemstat' CARGO_PKG_LICENSE=3DUnlicense CARGO_PKG_LICENSE_FILE=3D'' CARGO_PKG_NAME=3D= systemstat CARGO_PKG_REPOSITORY=3D'https://github.com/unrelentingtech/systemstat' CARGO_PKG_RUST_VERSION=3D'' CARGO_PKG_VERSION=3D0.2.1 CARGO_PKG_VERSION_MAJ= OR=3D0 CARGO_PKG_VERSION_MINOR=3D2 CARGO_PKG_VERSION_PATCH=3D1 CARGO_PKG_VERSION_P= RE=3D'' LD_LIBRARY_PATH=3D'/wrkdirs/usr/ports/shells/starship/work/target/release/d= eps:/usr/local/lib' /usr/local/bin/rustc --crate-name systemstat --edition=3D2018 /wrkdirs/usr/ports/shells/starship/work/starship-1.11.0/cargo-crates/system= stat-0.2.1/src/lib.rs --error-format=3Djson --json=3Ddiagnostic-rendered-ansi,artifacts,future-inc ompat --crate-type lib --emit=3Ddep-info,metadata,link -C opt-level=3D3 -C linker-plugin-lto -C codegen-units=3D1 -C metadata=3D98bf241f56030ed8 -C extra-filename=3D-98bf241f56030ed8 --out-dir /wrkdirs/usr/ports/shells/starship/work/target/i686-unknown-freebsd/release= /deps --target i686-unknown-freebsd -C linker=3Dcc -C strip=3Dsymbols -L dependency=3D/wrkdirs/usr/ports/shells/starship/work/target/i686-unknown-fr= eebsd/release/deps -L dependency=3D/wrkdirs/usr/ports/shells/starship/work/target/release/deps --extern bytesize=3D/wrkdirs/usr/ports/shells/starship/work/target/i686-unknown-free= bsd/release/deps/libbytesize-f7e4f2a7af0fdf20.rmeta --extern lazy_static=3D/wrkdirs/usr/ports/shells/starship/work/target/i686-unknown-f= reebsd/release/deps/liblazy_static-3cc31bec7986e187.rmeta --extern libc=3D/wrkdirs/usr/ports/shells/starship/work/target/i686-unknown-freebsd/= release/deps/liblibc-a871152ff4b7dcc3.rmeta --extern time=3D/wrkdirs/usr/ports/shells/starship/work/target/i686-unknown-freebsd/= release/deps/libtime-5 c47fc296facf775.rmeta --cap-lints warn -C li! nk-arg=3D-fstack-protector-strong` error[E0308]: mismatched types --> /wrkdirs/usr/ports/shells/starship/work/starship-1.11.0/cargo-crates/system= stat-0.2.1/src/platform/freebsd.rs:114:54 | 114 | ... let ts =3D OffsetDateTime::from_unix_timestamp(data.tv_sec).expect("unix timestamp sho= uld be within range") + Duration::from_nanos(da... | ----------------------------------- ^^^^^^^^^^^ expect= ed `i64`, found `i32` | | | arguments to this function are incorrect | note: associated function defined here --> /wrkdirs/usr/ports/shells/starship/work/starship-1.11.0/cargo-crates/time-0= .3.14/src/offset_date_time.rs:208:18 | 208 | pub const fn from_unix_timestamp(timestamp: i64) -> Result<Self, error::ComponentRange> { | ^^^^^^^^^^^^^^^^^^^ help: you can convert an `i32` to an `i64` | 114 | let ts =3D OffsetDateTime::from_unix_timestamp(data.tv_sec.into()).expect("unix timest= amp should be within range") + Duration::from_nanos(data.tv_usec as u64); | +++++= ++ For more information about this error, try `rustc --explain E0308`. error: could not compile `systemstat` due to previous error Caused by: process didn't exit successfully: `CARGO=3D/usr/local/bin/cargo CARGO_CRATE_NAME=3Dsystemstat CARGO_MANIFEST_DIR=3D/wrkdirs/usr/ports/shells/starship/work/starship-1.11.= 0/cargo-crates/systemstat-0.2.1 CARGO_PKG_AUTHORS=3D'Val Packett <val@packett.cool>' CARGO_PKG_DESCRIPTION= =3D'Get system information/statistics in a cross-platform way' CARGO_PKG_HOMEPAGE=3D'https://github.com/unrelentingtech/systemstat' CARGO_PKG_LICENSE=3DUnlicense CARGO_PKG_LICENSE_FILE=3D'' CARGO_PKG_NAME=3D= systemstat CARGO_PKG_REPOSITORY=3D'https://github.com/unrelentingtech/systemstat' CARGO_PKG_RUST_VERSION=3D'' CARGO_PKG_VERSION=3D0.2.1 CARGO_PKG_VERSION_MAJ= OR=3D0 CARGO_PKG_VERSION_MINOR=3D2 CARGO_PKG_VERSION_PATCH=3D1 CARGO_PKG_VERSION_P= RE=3D'' LD_LIBRARY_PATH=3D'/wrkdirs/usr/ports/shells/starship/work/target/release/d= eps:/usr/local/lib' /usr/local/bin/rustc --crate-name systemstat --edition=3D2018 /wrkdirs/usr/ports/shells/starship/work/starship-1.11.0/cargo-crates/system= stat-0.2.1/src/lib.rs --error-format=3Djson --json=3Ddiagnostic-rendered-an si,artifacts,future-incompat --crate-type lib --emit=3Ddep-info,metadata,l= ink -C opt-level=3D3 -C linker-plugin-lto -C codegen-units=3D1 -C metadata=3D98bf241f56030ed8 -C extra-filename=3D-98bf241f56030ed8 --out-dir /wrkdirs/usr/ports/shells/starship/work/target/i686-unknown-freebsd/release= /deps --target i686-unknown-freebsd -C linker=3Dcc -C strip=3Dsymbols -L dependency=3D/wrkdirs/usr/ports/shells/starship/work/target/i686-unknown-fr= eebsd/release/deps -L dependency=3D/wrkdirs/usr/ports/shells/starship/work/target/release/deps --extern bytesize=3D/wrkdirs/usr/ports/shells/starship/work/target/i686-unknown-free= bsd/release/deps/libbytesize-f7e4f2a7af0fdf20.rmeta --extern lazy_static=3D/wrkdirs/usr/ports/shells/starship/work/target/i686-unknown-f= reebsd/release/deps/liblazy_static-3cc31bec7986e187.rmeta --extern libc=3D/wrkdirs/usr/ports/shells/starship/work/target/i686-unknown-freebsd/= release/deps/liblibc-a871152ff4b7dcc3.rmeta --extern time=3D/wrkdirs/usr/ports/shells/starship/work/target/i686-unknown-freebsd /release/deps/libtime-5c47fc296facf775.rmeta! --cap-lints warn -C link-arg=3D-fstack-protector-strong` (exit status: 1) warning: build failed, waiting for other jobs to finish... *** Error code 101 --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-267529-7788>