Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 946527 - dev-lang/mmix-20160804-r1 fails to compile: mmix-pipe.w:260:14: error: cannot use keyword false as enumeration constant
Summary: dev-lang/mmix-20160804-r1 fails to compile: mmix-pipe.w:260:14: error: cannot...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Matthias Maier
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: c23-porting
  Show dependency tree
 
Reported: 2024-12-15 19:04 UTC by Agostino Sarubbo
Modified: 2025-02-10 09:04 UTC (History)
1 user (show)

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


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

Issue: dev-lang/mmix-20160804-r1 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-12-15 19:04:12 UTC
Created attachment 914134 [details]
build.log

build log and emerge --info
Comment 2 NHO 2025-01-19 13:17:02 UTC
typedef enum {@!false, @!true, @!wow}@+bool; /* slightly extended booleans */

That's -std=gnu17
Comment 3 NHO 2025-01-19 17:07:18 UTC
Looking at code, wow is not used anywhere, but I haven't looked well enough to find any place where bool is checked to be neither true nor false
Comment 4 Larry the Git Cow gentoo-dev 2025-02-10 09:04:30 UTC
The bug has been closed via the following commit(s):

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

commit ff91cdec8cf7875e85fd62ad09f0752bc81d66ba
Author:     NHOrus <jy6x2b32pie9@yahoo.com>
AuthorDate: 2025-01-19 13:27:09 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-02-10 09:02:09 +0000

    dev-lang/mmix: fix compilation errors with modern compilers
    
    Can't be ported to C23 without massive rewrite due to hand-rolled
    trinary bool, but other compilation problems aren't that engaging
    They are fixed by patch to add an edge to build graph and a type
    to main()
    
    Closes: https://bugs.gentoo.org/946527
    Closes: https://bugs.gentoo.org/818889
    Closes: https://bugs.gentoo.org/883275
    Signed-off-by: NHOrus <jy6x2b32pie9@yahoo.com>
    Closes: https://github.com/gentoo/gentoo/pull/40209
    Signed-off-by: Sam James <sam@gentoo.org>

 .../mmix/files/mmix-20160804-implicit-int.patch    | 27 +++++++++++++
 dev-lang/mmix/mmix-20160804-r2.ebuild              | 47 ++++++++++++++++++++++
 2 files changed, 74 insertions(+)