Skip to content

fixes compiling with gcc 15#32

Open
lygstate wants to merge 1 commit into
openbios:masterfrom
lygstate:makepkg
Open

fixes compiling with gcc 15#32
lygstate wants to merge 1 commit into
openbios:masterfrom
lygstate:makepkg

Conversation

@lygstate

@lygstate lygstate commented Jan 5, 2026

Copy link
Copy Markdown

No description provided.

dmcilvaney added a commit to dmcilvaney/CBL-Mariner that referenced this pull request Feb 19, 2026
fcode-utils 1.0.3 fails to build with GCC 15's default C23 mode due to:
  1. typedef to 'bool' (a C23 keyword) in shared/types.h
  2. K&R-style empty-parameter function pointers treated as zero-arg in C23
  3. -Wincompatible-pointer-types promoted to error

The upstream project is dormant (last release 2014). A partial fix exists
as an unmerged PR: openbios/fcode-utils#32

Fedora is also affected — fcode-utils has failed all mass rebuilds since
fc42 (fc42-4, fc43-5, fc44-6 all failed in Fedora Koji). The last
successful Fedora build was 1.0.3-3.fc42, before the C23 transition.

Add a spec-search-replace overlay to force -std=gnu17 in CFLAGS, restoring
pre-C23 semantics. Move the component from an inline entry in
components-full.toml to a dedicated comp.toml to hold the overlay.

Validated: prep-sources clean, build succeeds, smoke-tested toke/detok/
romheaders in mock chroot.
@mcayland

Copy link
Copy Markdown
Collaborator

Thanks! Can you re-push this branch with your S-o-B tag? If so, I will merge it.

Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
@lygstate

Copy link
Copy Markdown
Author

updated, hope release a new version after merge this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants