[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Testing rust 1.56.0
www/seamonkey fails build with rust 1.56.0:
error: type parameters must be declared prior to const parameters
... (several of this type)
error: `[u32; 2]` is forbidden as the type of a const generic parameter
20 | pub unsafe fn __shuffle_vector2<const IDX: [u32; 2], T, U>(x: T, y: T) -> U
= note: the only supported types are integers, `bool` and `char`
= help: more complex types are supported with `#![feature(adt_const_params)]`
(again several like these).
It could be just some additional switch, I have no idea.
On Thu, 28 Oct 2021 at 10:53, Havard Eidnes <he%netbsd.org@localhost> wrote:
> >> As noted earlier, it looks like it's now required to do the
> >> wip/rust build with
> >> PKG_OPTIONS.rust+= rust-llvm
> >> set in /etc/mk.conf, so before the update is pushed to main
> >> pkgsrc that default may have to change, but for now the wip/rust
> >> package appears to require it.
> > I've already told you off-list but, it builds fine with llvm-12
> > from main pkgsrc. I don't have PKG_OPTIONS.rust+= rust-llvm
> > set in /etc/mk.conf and the build was not only successful but,
> > as stated it compiles working binaries of rust applications.
> Hm, OK, the breakage might then be non-universal. Adam reported
> the following:
> I tried the package on macOS 12, but building fails. Then I
> tried again with (external) LLVM 13 and it builds correctly. My
> guess is, with 'rust-llvm' option turned off, Rust requires
> LLVM 13 for all architectures.
> So ... is this a problem only on macOS 12?
> > Thank you for your efforts on this. Be assured, I'll always try
> > to build the latest rust in amd64 current and test it.
> Thanks, it's appreciated.
> - Håvard
Main Index |
Thread Index |