Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 898288 - sci-libs/primegen-0.97-r2 fails to compile (MUSL-CLANG-SYSTEM): eratspeed.c:405:1: error: type specifier missing, defaults to int; ISO C99 and later do not support implicit int [-Wimplicit-int]
Summary: sci-libs/primegen-0.97-r2 fails to compile (MUSL-CLANG-SYSTEM): eratspeed.c:4...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Science Mathematics related packages
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2023-02-28 09:49 UTC by Agostino Sarubbo
Modified: 2023-09-12 07:25 UTC (History)
0 users

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


Attachments
build.log (build.log,47.51 KB, text/plain)
2023-02-28 09:49 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 2023-02-28 09:49:37 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: sci-libs/primegen-0.97-r2 fails to compile (MUSL-CLANG-SYSTEM).
Discovered on: amd64 (internal ref: tinderbox_musl)

NOTE:
(MUSL-CLANG-SYSTEM) in the summary means that bug was found on a machine that runs MUSL libc + clang16 but this bug MAY or MAY NOT BE related to musl/clang16.
Comment 1 Agostino Sarubbo gentoo-dev 2023-02-28 09:49:40 UTC
Created attachment 855112 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2023-02-28 09:49:41 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:


primes.c:40:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
primespeed.c:94:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
eratspeed.c:405:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
Comment 3 Larry the Git Cow gentoo-dev 2023-09-12 07:25:46 UTC
The bug has been closed via the following commit(s):

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

commit ce17ddd9f628a040e4b764d6fa3151d7d451626d
Author:     Brahmajit Das <brahmajit.xyz@gmail.com>
AuthorDate: 2023-09-11 17:46:28 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan@gentoo.org>
CommitDate: 2023-09-12 07:24:08 +0000

    sci-libs/primegen: Fix build error and update EAPI 7 -> 8
    
    type specifier missing, defaults to int
    
    Closes: https://bugs.gentoo.org/898288
    Signed-off-by: Brahmajit Das <brahmajit.xyz@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/31464
    Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>

 .../files/primegen-0.97-main-rettype.patch         | 13 +++++
 sci-libs/primegen/primegen-0.97-r3.ebuild          | 58 ++++++++++++++++++++++
 2 files changed, 71 insertions(+)