Skip to content

Gem not compatible with gcc 15 #27

@SamSaffron

Description

@SamSaffron
gem install cbor
Building native extensions. This could take a while...
ERROR:  Error installing cbor:
	ERROR: Failed to build gem native extension.

    current directory: /home/sam/.gem/ruby/3.4.4/gems/cbor-0.5.9.8/ext/cbor
/home/sam/.rubies/ruby-3.4.4/bin/ruby extconf.rb
checking for ruby/st.h... yes
checking for st.h... no
checking for rb_str_replace() in ruby.h... yes
checking for rb_big_new() in ruby.h... yes
checking for rb_intern_str() in ruby.h... yes
checking for rb_sym2str() in ruby.h... yes
checking for rb_str_intern() in ruby.h... yes
checking for rb_integer_unpack() in ruby.h... yes
creating Makefile

current directory: /home/sam/.gem/ruby/3.4.4/gems/cbor-0.5.9.8/ext/cbor
make DESTDIR\= sitearchdir\=./.gem.20250521-1015015-blwi54 sitelibdir\=./.gem.20250521-1015015-blwi54 clean

current directory: /home/sam/.gem/ruby/3.4.4/gems/cbor-0.5.9.8/ext/cbor
make DESTDIR\= sitearchdir\=./.gem.20250521-1015015-blwi54 sitelibdir\=./.gem.20250521-1015015-blwi54
compiling buffer.c
In file included from /home/sam/.rubies/ruby-3.4.4/include/ruby-3.4.0/ruby/internal/arithmetic/long.h:42,
                 from /home/sam/.rubies/ruby-3.4.4/include/ruby-3.4.0/ruby/internal/arithmetic/int.h:26,
                 from /home/sam/.rubies/ruby-3.4.4/include/ruby-3.4.0/ruby/internal/arithmetic/char.h:23,
                 from /home/sam/.rubies/ruby-3.4.4/include/ruby-3.4.0/ruby/internal/arithmetic.h:24,
                 from /home/sam/.rubies/ruby-3.4.4/include/ruby-3.4.0/ruby/ruby.h:28,
                 from /home/sam/.rubies/ruby-3.4.4/include/ruby-3.4.0/ruby.h:38,
                 from compat.h:30,
                 from buffer.h:32,
                 from buffer.c:28:
/home/sam/.rubies/ruby-3.4.4/include/ruby-3.4.0/ruby/internal/special_consts.h:137:15: error: unknown type name ‘bool’
  137 | static inline bool/home/sam/.rubies/ruby-3.4.4/include/ruby-3.4.0/ruby/internal/special_consts.h:31:1: note: ‘bool’ is defined in header ‘<stdbool.h>’; this is probably fixable by adding ‘#include <stdbool.h>’

gcc 15 which is slowly rolling out, can not compile cbor. Quite a few gems are in this state now.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions