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

Most upvoted comments

I don’t see any errors there that are originating in the source code of ed25519 itself (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.

gem "ed25519", github: "RubyCrypto/ed25519", branch: "main", ref: "c1ee0e0"

Just remember to remove after a release of ed25519 has 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