ed25519: Compile error on Fedora 42
Fedora 42 uses the updated GCC 15 toolchain and I think (??) that is causing problems compiling.
A lot of errors like:
note: ‘bool’ is defined in header
‘<stdbool.h>’; this is probably fixable by adding ‘#include <stdbool.h>’
error: unknown type name ‘bool’
334 | static bool
| ^~~~
I’m using:
mise 2025.4.5 linux-x64 (2025-04-18)
ruby 3.4.3
Sorry, let me know what other information is useful here.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 3
- Comments: 24 (5 by maintainers)
Commits related to this issue
- feat: Use `append_cflags` instead of `CFLAGS` environment varaible `append_cflags` recommended over `CFLAGS` because it ensures compatibility across different build environments by checking whether t... — committed to tonytonyjan/jaro_winkler by tonytonyjan 2 years ago
- feat: Use `append_cflags` instead of `CFLAGS` environment varaible `append_cflags` recommended over `CFLAGS` because it ensures compatibility across different build environments by checking whether t... — committed to tonytonyjan/jaro_winkler by tonytonyjan 2 years ago
- feat: Use `append_cflags` instead of `CFLAGS` environment varaible `append_cflags` recommended over `CFLAGS` because it ensures compatibility across different build environments by checking whether t... — committed to tonytonyjan/jaro_winkler by tonytonyjan 2 years ago
- feat: Use `append_cflags` instead of `CFLAGS` environment varaible `append_cflags` recommended over `CFLAGS` because it ensures compatibility across different build environments by checking whether t... — committed to tonytonyjan/jaro_winkler by tonytonyjan 2 years ago
- Use append_cflags over modifying CFLAGS directly - Allows installing bson gem on systems with GCC 15 - Fixes https://jira.mongodb.org/browse/RUBY-3675 References: - Ruby Lang - https://bugs.ruby-la... — committed to pboling/bson-ruby by pboling a year ago
- Use append_cflags over modifying CFLAGS directly (#355) - Allows installing bson gem on systems with GCC 15 - Fixes https://jira.mongodb.org/browse/RUBY-3675 References: - Ruby Lang - https://bugs.... — committed to mongodb/bson-ruby by pboling a year ago
I don’t see any errors there that are originating in the source code of
ed25519itself (just one warning).I have no idea what the problem would be. All of the errors are originating in Ruby’s header files.
I would still suggest someone try to open an upstream issue on ruby-core and see if they have any advice.
v1.4.0 has been released. Please confirm it fixes the issue.
If one would like a repo level temporary fix, you can add the following to your Gemfile.
Just remember to remove after a release of
ed25519has been cut so you get back on a proper version.I haven’t cut a release yet. Please be patient
Issue created here in case anyone wants to add further information.
https://bugs.ruby-lang.org/issues/21290