Skip to content

Fix build with GCC15 - #173

Merged
tm-drtina merged 3 commits into
masterfrom
tomas/fix-build-gcc15
Jan 12, 2026
Merged

Fix build with GCC15#173
tm-drtina merged 3 commits into
masterfrom
tomas/fix-build-gcc15

Conversation

@tm-drtina

Copy link
Copy Markdown
Contributor

GCC 15 changes the default language version for C compilation from -std=gnu17 to -std=gnu23.

Building the cbits with C23 breaks bools:

> c2hs: C header contains errors:
>
> /nix/store/n0zhrw9b9jky2fb3x4dr030agmw8izd7-grpc-1.76.0/include/grpc/credentials.h:231: (column 3) [ERROR]  >>> Syntax error !
>   The symbol `bool' does not fit here.

We already set CC-Options: -std=c99 but c2hs doesn't respect that and uses CPP-Options instead :(

@tm-drtina
tm-drtina requested a review from riz0id January 8, 2026 11:28
@tm-drtina
tm-drtina merged commit c911a05 into master Jan 12, 2026
8 checks passed
@tm-drtina
tm-drtina deleted the tomas/fix-build-gcc15 branch January 12, 2026 09:22
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.

3 participants