Openembedded Core Discussions
 help / color / mirror / Atom feed
* Distro wide LTO broken?
@ 2025-09-29  1:22 William Kennington
  2025-09-29 18:42 ` [OE-core] " Khem Raj
  0 siblings, 1 reply; 8+ messages in thread
From: William Kennington @ 2025-09-29  1:22 UTC (permalink / raw)
  To: openembedded-core

If I add the following to my distro, the build breaks for the openssl
and other core packages due to having build path impurities in the
static libraries created.

```
require conf/distro/include/lto.inc
DISTRO_FEATURES += "lto"
```

The errors I get are all like
```
ERROR: openssl-3.5.2-r0 do_package_qa: QA Issue: File
/usr/lib/libssl.a in package openssl-staticdev contains reference to
TMPDIR [buildpaths]
ERROR: openssl-3.5.2-r0 do_package_qa: QA Issue: File
/usr/lib/libcrypto.a in package openssl-staticdev contains reference
to TMPDIR [buildpaths]
ERROR: openssl-3.5.2-r0 do_package_qa: Fatal QA errors were found, failing task.
ERROR: Logfile of failure stored in:
/home/builder/yocto/build/tmp/work/cortexa76-cortexa55-crypto-oe-linux/openssl/3.5.2/temp/log.do_package_qa.118335
ERROR: Task (/srv/yocto/poky/meta/recipes-connectivity/openssl/openssl_3.5.2.bb:do_package_qa)
failed with exit code '1'
```

Probably there is just some kind of flag missing in the LTO build
options to filter out the build directory, as -ffile-prefix-map and
whatnot are already present in the builds. I haven't yet figured out
exactly what is contributing to this impurity.

Prior to rebasing on the latest master, LTO was working fine globally.


^ permalink raw reply	[flat|nested] 8+ messages in thread
* Distro Wide LTO Broken?
@ 2025-09-29  5:56 William Kennington
  0 siblings, 0 replies; 8+ messages in thread
From: William Kennington @ 2025-09-29  5:56 UTC (permalink / raw)
  To: openembedded-core

If I add the following to my distro, the build breaks for the openssl
and other core packages due to having build path impurities in the
static libraries created.

```
require conf/distro/include/lto.inc
DISTRO_FEATURES += "lto"
```

The errors I get are all like
```
ERROR: openssl-3.5.2-r0 do_package_qa: QA Issue: File
/usr/lib/libssl.a in package openssl-staticdev contains reference to
TMPDIR [buildpaths]
ERROR: openssl-3.5.2-r0 do_package_qa: QA Issue: File
/usr/lib/libcrypto.a in package openssl-staticdev contains reference
to TMPDIR [buildpaths]
ERROR: openssl-3.5.2-r0 do_package_qa: Fatal QA errors were found, failing task.
ERROR: Logfile of failure stored in:
/home/builder/yocto/build/tmp/work/cortexa76-cortexa55-crypto-oe-linux/openssl/3.5.2/temp/log.do_package_qa.118335
ERROR: Task (/srv/yocto/poky/meta/recipes-connectivity/openssl/openssl_3.5.2.bb:do_package_qa)
failed with exit code '1'
```

Probably there is just some kind of flag missing in the LTO build
options to filter out the build directory, as -ffile-prefix-map and
whatnot are already present in the builds. I haven't yet figured out
exactly what is contributing to this impurity.

Prior to rebasing on the latest master, LTO was working fine globally.


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2025-11-06 10:07 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-29  1:22 Distro wide LTO broken? William Kennington
2025-09-29 18:42 ` [OE-core] " Khem Raj
2025-09-30  0:19   ` William Kennington
2025-09-30  2:58     ` Khem Raj
2025-09-30  7:49       ` William Kennington
2025-09-30 14:55         ` Khem Raj
2025-11-06 10:07           ` mark.yang
  -- strict thread matches above, loose matches on Subject: below --
2025-09-29  5:56 Distro Wide LTO Broken? William Kennington

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox