Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 509700 - app-arch/arj-3.10.22-r8 with llvm-core/clang miscompiles postproc - ./linux-gnu/en/rs/tools/postproc linux-gnu/en/rs/arj/arj: Patch not found
Summary: app-arch/arj-3.10.22-r8 with llvm-core/clang miscompiles postproc - ./linux-g...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords: PATCH, PullRequest
: 871006 913567 (view as bug list)
Depends on:
Blocks: systemwide-clang 915000
  Show dependency tree
 
Reported: 2014-05-06 16:43 UTC by Jauhien Piatlicki (RETIRED)
Modified: 2025-01-25 17:16 UTC (History)
8 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,122.80 KB, text/plain)
2014-05-06 16:43 UTC, Jauhien Piatlicki (RETIRED)
Details
Fix build errors by using the latest version of patches from Debian. (arj-3.10.22-r4.ebuild.patch,627 bytes, patch)
2015-02-01 03:53 UTC, theprogrammernerd
Details | Diff
arj-3.10.22_p26.ebuild (file_509700.txt,1.16 KB, text/plain)
2023-06-06 05:41 UTC, Sam James
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jauhien Piatlicki (RETIRED) gentoo-dev 2014-05-06 16:43:45 UTC
Created attachment 376490 [details]
build.log

Build log attached.
Comment 1 theprogrammernerd 2015-02-01 03:53:54 UTC
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.
Comment 2 Pacho Ramos gentoo-dev 2016-06-12 10:40:07 UTC
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 :)
Comment 3 Austin English (RETIRED) gentoo-dev 2016-06-14 20:48:28 UTC
(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.
Comment 4 Austin English (RETIRED) gentoo-dev 2016-06-14 20:48:47 UTC
Assigning to myself.
Comment 5 Austin English (RETIRED) gentoo-dev 2016-06-14 22:49:51 UTC
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.
Comment 6 Alessandro Barbieri 2017-10-15 18:59:40 UTC
Same with gcc6
Comment 7 David Carlos Manuelda 2021-05-13 12:03:17 UTC
Title needs to be changed because it can be reproduced with clang-12 (2021) so this bug is still valid regardless a bit old.
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-06-06 04:34:13 UTC
*** Bug 871006 has been marked as a duplicate of this bug. ***
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-06-06 05:41:00 UTC
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).
Comment 10 Agostino Sarubbo gentoo-dev 2024-01-30 21:02:34 UTC
clang-lld_tinderbox has reproduced this issue with version 3.10.22-r8 - Updating summary.
Comment 11 Alfred Wingate 2025-01-19 23:27:15 UTC
*** Bug 913567 has been marked as a duplicate of this bug. ***
Comment 12 Larry the Git Cow gentoo-dev 2025-01-25 17:16:20 UTC
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(+)