Skip to content

fixes compiling with gcc 15#32

Open
lygstate wants to merge 1 commit intoopenbios:masterfrom
lygstate:makepkg
Open

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

Conversation

@lygstate
Copy link

@lygstate lygstate commented Jan 5, 2026

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.
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.

1 participant

Comments