Summary: | dev-util/mingw64-toolchain-12.0.0 - error: incompatible types when returning type ‘_Bool’ but ‘const char *’ was expected (gcc15) (c23-porting) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | immolo <immoloism> |
Component: | Current packages | Assignee: | Ionen Wolkens <ionen> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | immoloism, kocelfc |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://bugs.gentoo.org/show_bug.cgi?id=943843 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 880545 | ||
Attachments: | build.log |
Description
immolo
2024-11-18 07:40:35 UTC
This will need my binutils fixes (https://inbox.sourceware.org/binutils/cover.1731741209.git.sam@gentoo.org/) or building with -std=gnu17. bpf-toolchain will need the same treatment. Thanks, guess I'll do gnu17 and keep a note to try dropping it when bump to binutils-2.44 or so. (In reply to Ionen Wolkens from comment #2) > Thanks, guess I'll do gnu17 and keep a note to try dropping it when bump to > binutils-2.44 or so. Or hrm, given between gcc/binutils/runtime there's a lot of things passing their own -std and that appending would override it.. maybe not so great (binutils itself has a few -std=gnu99, albeit imagine it's not a big deal). Could limit it to binutils-only, but think it may be simpler to go ahead and use the patches. The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=869d0dd6ceb9728b6792fe2ad6b46e62e6367a4f commit 869d0dd6ceb9728b6792fe2ad6b46e62e6367a4f Author: Ionen Wolkens <ionen@gentoo.org> AuthorDate: 2024-11-18 09:28:29 +0000 Commit: Ionen Wolkens <ionen@gentoo.org> CommitDate: 2024-11-18 09:59:13 +0000 dev-util/mingw64-toolchain: fix binutils build with c23 (gcc15) Closes: https://bugs.gentoo.org/943715 Signed-off-by: Ionen Wolkens <ionen@gentoo.org> .../files/binutils-2.42-c23.patch | 93 ++++++++++++++++++++++ .../mingw64-toolchain-12.0.0.ebuild | 1 + 2 files changed, 94 insertions(+) The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d2facc542948cfb79193220e7beb9d1c9837df8a commit d2facc542948cfb79193220e7beb9d1c9837df8a Author: Sam James <sam@gentoo.org> AuthorDate: 2024-11-19 03:48:42 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-11-19 03:52:22 +0000 sys-devel/gcc: backport C23 fix to 15.0.0_pre20241117 Backport a -std=gnu23/-std=c23 fix to 15.0.0_pre20241117 which prevented coersion from _Bool to NULL. Note that this is still dodgy code and some are proposing this be banned in a future C version (maybe even C2y), but it shouldn't be rejected in this version at least. I've added Closes tags for all bugs which, at a glance, look related, but I haven't re-tested them all and one or two might need reopening. Bug: https://gcc.gnu.org/PR112556 Closes: https://bugs.gentoo.org/943862 Closes: https://bugs.gentoo.org/943861 Closes: https://bugs.gentoo.org/943843 Closes: https://bugs.gentoo.org/943811 Closes: https://bugs.gentoo.org/943809 Closes: https://bugs.gentoo.org/943753 Closes: https://bugs.gentoo.org/943715 Closes: https://bugs.gentoo.org/943704 Closes: https://bugs.gentoo.org/942958 Signed-off-by: Sam James <sam@gentoo.org> ...llow-bool-and-enum-null-pointer-constants.patch | 244 +++++++++++++++++++++ sys-devel/gcc/gcc-15.0.0_pre20241117-r2.ebuild | 54 +++++ 2 files changed, 298 insertions(+) |