On Wed, Sep 4, 2024 at 1:57 PM Richard Purdie
<[email protected]> wrote:
>
> On Wed, 2024-09-04 at 08:53 +0200, Martin Jansa via
> lists.openembedded.org wrote:
> > Some related info I've found now:
> > https://reviews.llvm.org/D148975?id=516863
> > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109591
> >
> > maybe affected by -fcanon-prefix-map used since gcc-13:
> > https://git.openembedded.org/openembedded-core/commit/?id=abe97fa74b10c2c71d79bc3573d4edb509b111f5
> > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108464#c8
> >
> > and I was also using ccache which used to have some issues in this
> > area (but the python3-matplotlib issue is IIRC reproducible without
> > ccache as well):
> > https://github.com/ccache/ccache/issues/163
> >
> > We might need more experiments before this is applied (I'm glad I've
> > sent it only as RFC). I'll try to find some time next week.
>
> I'm a bit worried that gcc might apply the ordering one way in some
> locations and the other way around in others so there may be a bug
> lurking somewhere. I agree we should look further into this.

I had only a bit of time in the morning to quickly scan through them,
but if it's correct that gcc as well as llvm are applying the longest
substitution now, then the ordering might not be important anymore and
it might actually explain the case with python3-matplotlib I was
seeing, because for -fmacro-prefix-map there wasn't the native path at
all, so it "correctly" replaced the longest matching one which was
-fmacro-prefix-map=${STAGING_DIR_HOST}= for python3-matplotlib and no
replacement for lib32-python3-matplotlib as it didn't match at all in
any of them.

Will redo both builds with just
-fmacro-prefix-map=${STAGING_DIR_NATIVE}= added at the end to see if
it fixes paths in both python3-matplotlib and lib32-python3-matplotlib
and should probably test the same with clang to be sure it works the
same.

Regards,
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#204205): 
https://lists.openembedded.org/g/openembedded-core/message/204205
Mute This Topic: https://lists.openembedded.org/mt/108229773/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to