Created attachment 376490 [details] build.log Build log attached.
Created attachment 395286 [details, diff] Fix build errors by using the latest version of patches from Debian. This has nothing to do with clang. I also get POSTPROC errors when trying to compile arj with gcc. The attached patch allowed arj to compile.
Austin, I saw you added PATCH keyword... this package has no maintainer, then, feel free to go ahead and fix it directly if you want :)
(In reply to Pacho Ramos from comment #2) > Austin, I saw you added PATCH keyword... this package has no maintainer, > then, feel free to go ahead and fix it directly if you want :) Thanks for the reminder. I looked closer, that patch is already in tree, but building still fails with clang-3.5. I'll look closer at the failure.
Assigning to myself.
Looks like there's (at least) one file being miscompiled. The current failure, with arj-3.10.22-r6 is: POSTPROC v 1.30 [17/01/2003] Not a part of any binary package! Patch not found GNUmakefile:403: recipe for target 'linux-gnu/en/rs/rearj/rearj' failed replacing linux-gnu/en/rs/rearj/rearj with one compiled with gcc allows that command to succeed.
Same with gcc6
Title needs to be changed because it can be reproduced with clang-12 (2021) so this bug is still valid regardless a bit old.
*** Bug 871006 has been marked as a duplicate of this bug. ***
Created attachment 863365 [details] arj-3.10.22_p26.ebuild I took a look at cranking this up to the latest Debian patchset at least, but the result wouldn't then work with GCC (13, anyway).
clang-lld_tinderbox has reproduced this issue with version 3.10.22-r8 - Updating summary.
*** Bug 913567 has been marked as a duplicate of this bug. ***
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6431d77871ba087ffbf0e77010e4167269a3d576 commit 6431d77871ba087ffbf0e77010e4167269a3d576 Author: Alfred Wingate <parona@protonmail.com> AuthorDate: 2025-01-19 20:54:33 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2025-01-25 17:15:36 +0000 app-arch/arj: add 3.10.22_p28 Bump debian patches indirectly fixing build order issues. Debian patch removing timestamps means that the timestamp target cannot race before the prepare target anymore. Clang build is fixed by enabling -fkeep-static-consts, build assumes it can embed a value into the binary and find it later with postproc. Bug: https://bugs.gentoo.org/509700 Bug: https://bugs.gentoo.org/800848 Signed-off-by: Alfred Wingate <parona@protonmail.com> Closes: https://github.com/gentoo/gentoo/pull/40217 Signed-off-by: Sam James <sam@gentoo.org> app-arch/arj/Manifest | 1 + app-arch/arj/arj-3.10.22_p28.ebuild | 92 +++++++++++++++++++++++++++++++++++++ 2 files changed, 93 insertions(+)