Skip to contentSkip to conversation

lto: disable sqlite3 to fix buildpaths QA failure

PATCH In review [email protected] 1 participant 2 messages Mar 28 – Mar 30

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 lto: disable sqlite3 to fix buildpaths QA failure

From: Thomas Perrot <[email protected]>

With LTO enabled, GCC performs a link-time recompilation pass where DW_AT_comp_dir is set to the build directory. The -ffile-prefix-map flags from DEBUG_PREFIX_MAP are not applied to this attribute during LTO recompilation, leaving a raw TMPDIR path in the split debug symbols of libsqlite3.so.

---
 meta/conf/distro/include/lto.inc | 2 ++
 1 file changed, 2 insertions(+)
meta/conf/distro/include/lto.inc +2 -0
index 8752249685a4..b4f823681af0 100644
@@ -21,6 +21,8 @@ LTO:pn-libbsd = ""
 LTO:pn-perf = ""
 # webkit is not linking properly with LTO, disable until next time
 LTO:pn-webkitgtk = ""
+# LTO link-time recompilation leaves TMPDIR in DW_AT_comp_dir of debug symbols
+LTO:pn-sqlite3 = ""
 LTO:pn-xserver-xorg = ""
 LTO:pn-grub = ""
 LTO:pn-grub-efi = ""
Signature · 1 line
2.53.0
#1 lore raw

Hello,

This workaround isn't needed until the following patch has been applied:
https://lore.kernel.org/all/[email protected]/

Thanks, Changqing Li.

Kind regards,
Thomas Perrot

Quoted 28 lines · On Sat, 2026-03-28 at 16:34 +0100, [email protected] wrote:

From: Thomas Perrot <[email protected]>

With LTO enabled, GCC performs a link-time recompilation pass where DW_AT_comp_dir is set to the build directory. The -ffile-prefix-map flags from DEBUG_PREFIX_MAP are not applied to this attribute during LTO recompilation, leaving a raw TMPDIR path in the split debug symbols of libsqlite3.so.

---
 meta/conf/distro/include/lto.inc | 2 ++

 1 file changed, 2 insertions(+)
meta/conf/distro/include/lto.inc +0 -0
index 8752249685a4..b4f823681af0 100644
@@ -21,6 +21,8 @@ LTO:pn-libbsd = ""

 LTO:pn-perf = ""

 # webkit is not linking properly with LTO, disable until next time
 LTO:pn-webkitgtk = ""
+# LTO link-time recompilation leaves TMPDIR in DW_AT_comp_dir of
debug symbols
+LTO:pn-sqlite3 = ""
 LTO:pn-xserver-xorg = ""
 LTO:pn-grub = ""
 LTO:pn-grub-efi = ""
Signature · 3 lines
Thomas Perrot, Bootlin
Embedded Linux and kernel engineering
https://bootlin.com