1. Hello,
      
On Sat, 2026-03-28 at 21:26 +0100, Jörg Sommer via
lists.openembedded.org wrote:
> Changqing Li via lists.openembedded.org schrieb am Mi 04. Feb, 13:26
> (+0800):
> > From: Changqing Li <[email protected]>
> > 
> > DEBUG_PREFIX_MAP is appended to TARGET_LDFLAGS in commit [1] for
> > fixing
> > reproducible issue when LTO is enabled. It is removed in comit [2]
> > since
> > this commit causes cgo binary not reproducible. But actually, we
> > still
> > need this DEBUG_PREFIX_MAP in LDFLAGS when LTO enabled. So, only
> > appened
> > it when LTO is enabled. Refer [3] for the history, with this patch,
> > patch [4] is also needed for cgo + lto enabled.
> 
> Gentle ping. This patch is missing, otherwise QA check buildpaths
> matches in
> nearly all packages.

I confirm this patch is required to fix QA check build paths for a few
packages. 
Kind regards,
Thomas Perrot

> 
> But this still leaves some packages with buildpaths, because there's
> a bug
> in gcc that it does not apply -ffile-prefix-map:
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124581
> 
> > diff --git a/meta/conf/distro/include/lto.inc
> > b/meta/conf/distro/include/lto.inc
> > index 227f0c5c2a..cef92901e3 100644
> > --- a/meta/conf/distro/include/lto.inc
> > +++ b/meta/conf/distro/include/lto.inc
> > @@ -49,5 +49,6 @@ LTO:toolchain-clang =
> > "${@bb.utils.contains('DISTRO_FEATURES', 'thin-lto', '-flt
> >  
> >  SELECTED_OPTIMIZATION:append =
> > "${@bb.utils.contains('DISTRO_FEATURES', 'lto', ' ${LTO}', '', d)}"
> >  TARGET_LDFLAGS:append:class-target =
> > "${@bb.utils.contains('DISTRO_FEATURES', 'lto', ' ${LTO}', '', d)}"
> > +TARGET_LDFLAGS:append:class-target =
> > "${@bb.utils.contains('DISTRO_FEATURES', 'lto', '
> > ${DEBUG_PREFIX_MAP}', '', d)}"
> 
> Possibly, I would join these lines.
> 
> 
> Best regards Jörg

-- 
Thomas Perrot, Bootlin Embedded Linux and kernel engineering
https://bootlin.com

Attachment: signature.asc
Description: This is a digitally signed message part

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

Reply via email to