Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 886461 - sci-libs/punc-1.5 fails to compile (CLANG-STRICTER-SYSTEM): main.c:115:1: error: type specifier missing, defaults to int; ISO C99 and later do not support implicit int [-Werror,-Wimplicit-int]
Summary: sci-libs/punc-1.5 fails to compile (CLANG-STRICTER-SYSTEM): main.c:115:1: err...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: c99-porting gcc-14-stable
  Show dependency tree
 
Reported: 2022-12-17 08:37 UTC by Agostino Sarubbo
Modified: 2025-02-06 09:54 UTC (History)
0 users

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


Attachments
build.log (build.log,74.28 KB, text/plain)
2022-12-17 08:37 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2022-12-17 08:37:37 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: sci-libs/punc-1.5 fails to compile (CLANG-STRICTER-SYSTEM).
Discovered on: amd64 (internal ref: clang-stricter_tinderbox)

NOTE:
(CLANG-STRICTER-SYSTEM) in the summary means that the bug was found on a machine that runs clang with stricter mode

This machine uses clang with CFLAGS/CXXFLAGS=-Werror=implicit-function-declaration -Werror=implicit-int -Werror=incompatible-function-pointer-types

See also:
https://archives.gentoo.org/gentoo-dev/message/dd9f2d3082b8b6f8dfbccb0639e6e240
https://wiki.gentoo.org/wiki/Modern_C_porting
Comment 1 Agostino Sarubbo gentoo-dev 2022-12-17 08:37:40 UTC
Created attachment 843189 [details]
build.log

build log and emerge --info
Comment 2 Larry the Git Cow gentoo-dev 2025-02-06 09:54:35 UTC
The bug has been closed via the following commit(s):

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

commit 498034a90cc4ddc8c2b0db4a31680e8f55ae5c94
Author:     NHOrus <jy6x2b32pie9@yahoo.com>
AuthorDate: 2025-01-27 08:41:16 +0000
Commit:     Nowa Ammerlaan <nowa@gentoo.org>
CommitDate: 2025-02-06 09:54:16 +0000

    sci-libs/punc: update EAPI 7 -> 8, fix build problem
    
    Patching explicit int main
    
    Closes: https://bugs.gentoo.org/886461
    Signed-off-by: NHOrus <jy6x2b32pie9@yahoo.com>
    Closes: https://github.com/gentoo/gentoo/pull/40330
    Signed-off-by: Nowa Ammerlaan <nowa@gentoo.org>

 sci-libs/punc/files/punc-1.5-explicit-main.patch      | 16 ++++++++++++++++
 sci-libs/punc/{punc-1.5.ebuild => punc-1.5-r1.ebuild} |  5 +++--
 2 files changed, 19 insertions(+), 2 deletions(-)