Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 879659 - dev-libs/atf: possible configure breakage with Clang 16
Summary: dev-libs/atf: 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: Mike Gilbert
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: implicit-in-configure gcc-14-stable
  Show dependency tree
 
Reported: 2022-11-04 22:09 UTC by Matt Jolly
Modified: 2025-01-10 17:00 UTC (History)
2 users (show)

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


Attachments
clang-14.log (clang-14.log,5.98 KB, text/plain)
2022-11-04 22:09 UTC, Matt Jolly
Details
clang-15.log (clang-15.log,5.99 KB, text/plain)
2022-11-04 22:09 UTC, Matt Jolly
Details
clang.diff (clang.diff,7.33 KB, text/plain)
2022-11-04 22:09 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:09:03 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,-Wstrict-prototypes]

[-Werror,-Wstrict-prototypes]
error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
Comment 1 Matt Jolly gentoo-dev 2022-11-04 22:09:04 UTC
Created attachment 827231 [details]
clang-14.log

build log
Comment 2 Matt Jolly gentoo-dev 2022-11-04 22:09:05 UTC
Created attachment 827233 [details]
clang-15.log

build log
Comment 3 Matt Jolly gentoo-dev 2022-11-04 22:09:07 UTC
Created attachment 827235 [details]
clang.diff

build log
Comment 4 Zhixu Liu 2025-01-10 13:50:58 UTC
configure:16430: checking whether clang supports -Wstrict-prototypes
configure:16446: clang -o conftest -O2 -pipe -g -Werror -Wstrict-prototypes  -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs conftest.c  >&5
conftest.c:26:6: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
   26 | main ()
      |      ^
      |       void
1 error generated.

it seems this error should be fixed at side of autoconf, but didn't find the macro who generates this code yet, to be continue ...
Comment 5 Larry the Git Cow gentoo-dev 2025-01-10 17:00:50 UTC
The bug has been closed via the following commit(s):

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

commit 953272b8b89d950792e595fb9e5f3171589ee0b2
Author:     Mike Gilbert <floppym@gentoo.org>
AuthorDate: 2025-01-10 16:58:01 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2025-01-10 17:00:48 +0000

    dev-libs/atf: call eautoreconf to modernize the build system
    
    Closes: https://bugs.gentoo.org/879659
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 dev-libs/atf/atf-0.21-r2.ebuild | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)