Summary: | app-arch/lbzip2: Sometimes produces corrupt archives when compiled with clang and vectorization with certain march values. | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Violet Purcell <vimproved> |
Component: | Current packages | Assignee: | Matt Turner <mattst88> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | ionen, lockalsash, sam, toolchain, vimproved |
Priority: | Normal | Keywords: | PullRequest |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: |
https://bugs.gentoo.org/show_bug.cgi?id=476682 https://github.com/llvm/llvm-project/issues/87189 https://github.com/gentoo/gentoo/pull/37515 |
||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 408963, 915000 |
Description
Violet Purcell
2023-07-16 20:13:39 UTC
I had the same issue with `clang -flto=thin -O2 -march=native` system (znver4). Got a lot of broken environment.bz2 files. Maybe this is related to https://phabricator.wikimedia.org/T208647, but I just want to confirm that it is unsafe to use lbzip2 as bzip2 alternative in such conditions. Reported to LLVM as https://github.com/llvm/llvm-project/issues/87189. Workaround is: tc-is-clang && append-flags "-mno-avx512f" Thanks for the more detailed analysis. The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4ef726839f212339d1244880c029d6b89a59d71e commit 4ef726839f212339d1244880c029d6b89a59d71e Author: Sv. Lockal <lockalsash@gmail.com> AuthorDate: 2024-07-11 17:23:13 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2025-01-10 00:29:32 +0000 app-arch/lbzip2: fix archive corruption due to clang/avx512 miscompilation Closes: https://bugs.gentoo.org/910438 Signed-off-by: Sv. Lockal <lockalsash@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/37515 Signed-off-by: Sam James <sam@gentoo.org> ...bzip2-2.5_p20181227-r2.ebuild => lbzip2-2.5_p20181227-r3.ebuild} | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) |