Re: [OE-core] [PATCH 2/2] rust: Upgrade 1.78.0->1.79.0

Alexander Kanavin
2024-08-27T20:48:10Z

On Tue, 27 Aug 2024 at 22:41, Richard Purdie
<richard.purdie@linuxfoundation.org> wrote:
>
> On Tue, 2024-08-27 at 22:38 +0200, Alexander Kanavin wrote:
> > On Tue, 27 Aug 2024 at 21:51, Richard Purdie
> > <richard.purdie@linuxfoundation.org> wrote:
> >
> > > Shouldn't rust complain if it doesn't work with old compilers? Are
> > > the
> > > compiler requirements for rust documented anywhere? I'm reluctant
> > > to
> > > throw buildtools at anything that breaks. In theory we also would
> > > need
> > > to change the sanity.bbclass compiler versions tests and so on too
> > > :/
> >
> > The specific error seems to be about libz-sys, which carries a copy
> > of
> > zlib and that is built using host gcc - I suspect that somehow alma9
> > gcc is used incorrectly there. This could be a problem on our side,
> > I'd need to first try building cargo 1.79.0 directly on alma9 and see
> > if that breaks too in the same way, or not. Don't have any more time
> > to look into it today.
>
> The failure is building cargo-native iirc so using the host gcc would
> be expected there?

Yes. I want to establish if the failure is seen when building cargo on
alma9 directly from rust source tree without yocto as well, or whether
there's something the recipe does that triggers it.

Alex