Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 879685 - dev-util/unicorn: possible configure breakage with Clang 16
Summary: dev-util/unicorn: possible configure breakage with Clang 16
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: Normal normal
Assignee: mario.haustein
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: implicit-in-configure gcc-14-stable
  Show dependency tree
 
Reported: 2022-11-04 22:10 UTC by Matt Jolly
Modified: 2025-02-16 06:32 UTC (History)
1 user (show)

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


Attachments
clang-14.log (clang-14.log,10.20 KB, text/plain)
2022-11-04 22:10 UTC, Matt Jolly
Details
clang-15.log (clang-15.log,9.06 KB, text/plain)
2022-11-04 22:10 UTC, Matt Jolly
Details
clang.diff (clang.diff,16.16 KB, text/plain)
2022-11-04 22:10 UTC, Matt Jolly
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Jolly gentoo-dev 2022-11-04 22:10:38 UTC
This package has been identified via automation as potentially impacted by upcoming Clang 16 changes.
The following have been identified as potential issues:

[-Werror,-Wimplicit-function-declaration]

[-Werror,-Wimplicit-function-declaration]
error: call to undeclared function '__atomic_compare_exchange_16'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration]
error: call to undeclared function '__atomic_compare_exchange_8'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration]
error: call to undeclared function '__atomic_exchange_8'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration]
error: call to undeclared function '__atomic_fetch_add_8'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration]
error: call to undeclared function '__atomic_load_16'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration]
error: call to undeclared function '__atomic_load_8'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration]
error: call to undeclared function '__atomic_store_16'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration]
error: call to undeclared function '__atomic_store_8'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration]
Comment 1 Matt Jolly gentoo-dev 2022-11-04 22:10:39 UTC
Created attachment 827303 [details]
clang-14.log

build log
Comment 2 Matt Jolly gentoo-dev 2022-11-04 22:10:41 UTC
Created attachment 827305 [details]
clang-15.log

build log
Comment 3 Matt Jolly gentoo-dev 2022-11-04 22:10:44 UTC
Created attachment 827307 [details]
clang.diff

build log
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-11-06 00:26:38 UTC
The discussion in bug 877259 and the linked upstream bug for systemd + llvm is relevant.
Comment 5 Larry the Git Cow gentoo-dev 2025-02-16 06:32:08 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d3dd74e856564aac2414a3fca1fd859961ee162f

commit d3dd74e856564aac2414a3fca1fd859961ee162f
Author:     Mario Haustein <mario.haustein@hrz.tu-chemnitz.de>
AuthorDate: 2023-10-08 11:54:40 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-02-16 06:31:24 +0000

    dev-util/unicorn: fix modern C issue
    
    Closes: https://bugs.gentoo.org/879685
    Signed-off-by: Mario Haustein <mario.haustein@hrz.tu-chemnitz.de>
    Signed-off-by: Sam James <sam@gentoo.org>

 .../unicorn-2.0.1-old-style-declaration.patch      |  45 ++++
 .../files/unicorn-2.0.1-strict-prototypes.patch    | 299 +++++++++++++++++++++
 dev-util/unicorn/unicorn-2.0.1-r1.ebuild           |  95 +++++++
 3 files changed, 439 insertions(+)