On Mon Sep 14, 2026 at 10:53 AM CEST, Aurelien DESBRIERES wrote:
> lib/malloc.c declares "void *malloc ();" with an empty parameter list
> and calls it with one argument. That meant "unspecified" in C89 and
> means "none" in C23, so a host compiler defaulting to C23 -- GCC 15 and
> later -- rejects the call:
>
> lib/malloc.c:16:15: error: too many arguments to function 'malloc';
> expected 0, have 1
>
> The file is built by stage1flex with the build host's compiler before
> flex can build itself, so neither CFLAGS nor BUILD_CFLAGS reaches that
> command line and no flag in the recipe can silence it.
>
> Upstream fixed it in bf254c75b1e0 and the patch falls out when flex
> next releases. Gentoo carries the same backport as
> flex-2.6.4-fix-malloc-prototype.patch.
This patch is already applied to flex on the master branch, from commit
e1832f02d70b ("flex: fix build with gcc-15 on host"). Maybe you need to rebase?
Antonin
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#245822):
https://lists.openembedded.org/g/openembedded-core/message/245822
Mute This Topic: https://lists.openembedded.org/mt/121240375/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-