0.4.1 does not compile on ubuntu bionic i386 in docker
If I build anything pipewire related in a container ran from this dockerfile, then I get the following error:
Compiling pipewire v0.4.1
error[E0277]: the trait bound `i32: From<u32>` is not satisfied
--> /root/.cargo/registry/src/github.com-1285ae84e5963aae/pipewire-0.4.1/src/loop_.rs:414:50
|
414 | tv_nsec: duration.subsec_nanos().into(),
| ^^^^ the trait `From<u32>` is not implemented for `i32`
|
= help: the following implementations were found:
<i32 as From<NonZeroI32>>
<i32 as From<bool>>
<i32 as From<i16>>
<i32 as From<i8>>
and 3 others
= note: required because of the requirements on the impl of `Into<i32>` for `u32`
My project only contains two files to reproduce this: Cargo.toml and src/main.rs.
My docker command to get to the error to be executed from the project's root: docker run --platform linux/386 --rm -v $PWD:/cargobuild -w /cargobuild $IMAGEDETAILS /root/.cargo/bin/cargo build
Edited by Gabor Kecskemeti