https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/ Issue: app-arch/lz4-1.10.0-r1 fails tests. Discovered on: amd64 (internal ref: ci) Info about the issue: https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#CF0015
Created attachment 898097 [details] build.log build log and emerge --info
Created attachment 898098 [details] 1-testlog.txt.xz 1-testlog.txt (compressed because it exceeds attachment limit, use 'xzless' to read it)
dmesg also reports: [Mon Jul 22 09:32:42 2024] traps: freestanding[7757] general protection fault ip:6080d5fc05ce sp:7ffdd1e55078 error:0 in freestanding[6080d5fa1000+22000]
Two different issues here: - enabling >=O2 crashes with a misaligned stack on function entry, see the upstream bug. Thanks Arsen for finding this! - building the tests with clang fails on Gentoo because we enable the stack protector in /etc/clang/gentoo-hardened.cfg, so maybe for that we can do tc-is-clang && append-flags -fno-stack-protector in the ebuild.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=461b33118c1d8b038088b5d8552f2fa8658bc5af commit 461b33118c1d8b038088b5d8552f2fa8658bc5af Author: Holger Hoffstätte <holger@applied-asynchrony.com> AuthorDate: 2024-07-22 22:48:18 +0000 Commit: Michał Górny <mgorny@gentoo.org> CommitDate: 2024-07-23 14:13:40 +0000 app-arch/lz4: fix test failures Add patches for proper stack alignment in the freestanding test and to disable stack protector for the same test to allow building with clang. Bug: https://github.com/lz4/lz4/issues/1466 Closes: https://bugs.gentoo.org/936480 Signed-off-by: Holger Hoffstätte <holger@applied-asynchrony.com> Closes: https://github.com/gentoo/gentoo/pull/37681 Signed-off-by: Michał Górny <mgorny@gentoo.org> .../lz4/files/1.10.0-fix-freestanding-test.patch | 42 ++++++++++++++++++++++ app-arch/lz4/lz4-1.10.0-r1.ebuild | 4 +++ 2 files changed, 46 insertions(+)