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.