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

Khem Raj
2024-08-27T21:02:50Z

On Tue, Aug 27, 2024 at 10:16 AM Alexander Kanavin via
lists.openembedded.org <alex.kanavin=gmail.com@lists.openembedded.org>
wrote:
>
> On Tue, 27 Aug 2024 at 18:25, Alexander Kanavin via
> lists.openembedded.org <alex.kanavin=gmail.com@lists.openembedded.org>
> wrote:
> >
> > On Tue, 27 Aug 2024 at 18:23, Alexander Kanavin via
> > lists.openembedded.org <alex.kanavin=gmail.com@lists.openembedded.org>
> > wrote:
> > > I just reproduced this on autobuilder's alma9 in a private build
> > > without sstate. I don't have any immediate ideas on where to start
> > > looking into it, but I left the build in place, so if any of you can
> > > suggest experiments or things to look at, I'd be glad to help.
> >
> > Oh, and I immediately got an idea after hitting 'send' :)
> >
> > [akanavin@alma9-ty-2 build]$ gcc --version
> > gcc (GCC) 11.4.1 20231218 (Red Hat 11.4.1-3)
> >
> > I'm going to try again, with buildtools-tarball. It may be that red
> > hat compiler is 'too old' anymore for rust.
>
> ... and this worked. So the easiest way out is to update alma9 config
> to use buildtools.

OE/Poky compiler is built with --enable-default-pie and that will pass
-pie option implicitly whenever it is invoked. Perhaps
default system compiler on alma9 is not.
zlib crate seems to perhaps ignore the option or maybe its missing a
place to add -pie to its build options, whereas the
consumer of it is trying to build PIE executables. If we use
buildtools compiler then it will surely get that consistent but it
will also hide the issue at hand.

>
> Alex
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#203858): https://lists.openembedded.org/g/openembedded-core/message/203858
> Mute This Topic: https://lists.openembedded.org/mt/108090372/1997914
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [raj.khem@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>