[Pkg-rust-maintainers] Bug#976484: unsigned values cannot be negated

Geert Stappers stappers at stappers.nl
Sat Dec 5 20:30:18 GMT 2020


Control: retitle -1 rust-mach-o-sys: unsigned values cannot be negated

On Sat, Dec 05, 2020 at 02:28:20PM +0100, Lucas Nussbaum wrote:
> Source: rust-mach-o-sys
> Version: 0.1.1-3
> 
> Hi,
> 
> During a rebuild of all packages in sid, your package failed to build
> on arm64 (I don't know if it also fails on amd64).
> 
> Relevant part (hopefully):
> >         ....
> >         ....
> >      -C link-arg=-Wl,-z,relro --remap-path-prefix
> >      /<<PKGBUILDDIR>>=/usr/share/cargo/registry/mach-o-sys-0.1.1`
> > error[E0600]: cannot apply unary operator `-` to type `u8`
> >   --> src/arch.rs:35:46
> >    |
> > 35 | pub const INT8_MIN: ::std::os::raw::c_char = -128;
> >    |                                              ^^^^ cannot apply unary operator `-`
> >    |
> >    = note: unsigned values cannot be negated
> > 
> > error[E0600]: cannot apply unary operator `-` to type `u8`
> >   --> src/arch.rs:42:48
> >    |
> > 42 | pub const UINT64_MAX: ::std::os::raw::c_char = -1;
> >    |                                                ^^ cannot apply unary operator `-`
> >    |
> >    = note: unsigned values cannot be negated


Yes, that should also fail on amd64 ...



More information about the Pkg-rust-maintainers mailing list