pkgsrc-Users archive

[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
  --> /usr/pkgsrc/www/seamonkey/work/seamonkey-2.53.9/third_party/rust/packed_simd/src/codegen/llvm.rs:20:54
... (several of this type)

and

error: `[u32; 2]` is forbidden as the type of a const generic parameter
  --> /usr/pkgsrc/www/seamonkey/work/seamonkey-2.53.9/third_party/rust/packed_simd/src/codegen/llvm.rs:20:44
   |
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.

Chavdar

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.
>
> Regards,
>
> - Håvard



-- 
----


Home | Main Index | Thread Index | Old Index