Summary: | dev-lang/mmix-20160804-r1 fails to compile: mmix-pipe.w:260:14: error: cannot use keyword false as enumeration constant | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Agostino Sarubbo <ago> |
Component: | Current packages | Assignee: | Matthias Maier <tamiko> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | jy6x2b32pie9 |
Priority: | Normal | Keywords: | PullRequest |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://github.com/gentoo/gentoo/pull/40209 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 880545 | ||
Attachments: | build.log |
Description
Agostino Sarubbo
![]() Created attachment 914134 [details]
build.log
build log and emerge --info
typedef enum {@!false, @!true, @!wow}@+bool; /* slightly extended booleans */ That's -std=gnu17 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 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(+) |