Skip to content

Build fails with GCC 15+ due to __STDC_EMBED_* macro redefinitions #1052

@tarun-t

Description

@tarun-t

F-Stack's mk/kern.pre.mk dumps all predefined macros into filtered_predefined_macros.h but doesn't filter __STDC_EMBED_EMPTY__, __STDC_EMBED_FOUND__, and __STDC_EMBED_NOT_FOUND__. GCC 15 introduced these as built-in macros (C23 #embed), causing -Werror redefinition errors.

Fix: add these to IMACROS_FILTER in mk/kern.pre.mk:

IMACROS_FILTER+= STDC_EMBED_EMPTY STDC_EMBED_FOUND STDC_EMBED_NOT_FOUND

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions