Hello,
I'm using Fedora Linux w/ rbenv to manage rubies; everything has been great until I recently upgraded to Fedora 42 with GCC 15. Due to incompatibilities with other gems (RubyCrypto/ed25519#45) and a related issue on the ruby issue tracker (https://bugs.ruby-lang.org/issues/21290), I suspect the compiler upgrade is responsible for the errors I'm seeing when attempting to compile trilogy during a routine gem install (I tried both rubies 3.4.3 & 3.4.2). I've attached the log files here. Unfortunately I'm not well versed in the C side of Ruby so I can't help with a pull request, but I'm ready to help test any solutions if needed.
gem_make.out.log
mkmf.log