Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 944322 - sys-devel/smatch-1.72 fails to compile: smatch.h:720:21: error: macro unreachable passed 1 arguments, but takes just 0
Summary: sys-devel/smatch-1.72 fails to compile: smatch.h:720:21: error: macro unreach...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: c23-porting
  Show dependency tree
 
Reported: 2024-11-21 15:20 UTC by Agostino Sarubbo
Modified: 2025-02-10 08:56 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,79.31 KB, text/plain)
2024-11-21 15:20 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 2024-11-21 15:20:07 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: sys-devel/smatch-1.72 fails to compile.
Discovered on: amd64 (internal ref: gcc15_tinderbox)
System: GCC-15-SYSTEM (https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#GCC-15)

Info about the issue:
https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#CF0014
Comment 1 Agostino Sarubbo gentoo-dev 2024-11-21 15:20:08 UTC
Created attachment 911004 [details]
build.log

build log and emerge --info
Comment 3 NHO 2025-01-31 11:46:00 UTC
My patch was rejected.

Current upstream patch:
https://repo.or.cz/smatch.git/commit/b84a20732d9473a62627d89b5eea4f98b3640283
Comment 4 Larry the Git Cow gentoo-dev 2025-02-10 08:56:39 UTC
The bug has been closed via the following commit(s):

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

commit 183d0c261597f9bb247f19174f224bd307edc71c
Author:     NHOrus <jy6x2b32pie9@yahoo.com>
AuthorDate: 2025-01-30 14:47:08 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-02-10 08:51:46 +0000

    sys-devel/smatch: update EAPI 7 -> 8, fix build failures with C23
    
    Non-deterministic build, usage of unreachable() with completely
    different meaning than C23 intends, incompatible function pointer
    types.
    
    Add cgcc wrapper for "build and check project" process documented in
    sparse.rst, replace sparse readme with smatch.rst readme
    
    Closes: https://bugs.gentoo.org/944322
    Closes: https://bugs.gentoo.org/881087
    Closes: https://bugs.gentoo.org/882047
    Signed-off-by: NHOrus <jy6x2b32pie9@yahoo.com>
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-devel/smatch/files/smatch-1.72-C23.patch       | 20 ++++++++
 .../files/smatch-1.72-function-prototype.patch     | 54 ++++++++++++++++++++++
 sys-devel/smatch/files/smatch-1.72-make-deps.patch | 14 ++++++
 .../{smatch-1.72.ebuild => smatch-1.72-r1.ebuild}  | 19 +++++---
 4 files changed, 100 insertions(+), 7 deletions(-)