Skip to content

Fails to build on Fedora 42 (GCC v15) #83

@pboling

Description

@pboling

This may be due to the use of manual manipulation of CFLAGS in various places in ext/unf_ext/extconf.rb.

The same issue existed in a few other RubyGems that manipulated CFLAGS directly.

I recently fixed this in the bson gem:
mongodb/bson-ruby#355

The same type of fix might apply here as well, but this library does far more extensive manipulation of various flag variables so I'm not going to attempt it myself.

Expand to see `make.out`
current directory: /var/home/pboling/.local/share/mise/installs/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/unf_ext-0.0.8.2/ext/unf_ext
/var/home/pboling/.local/share/mise/installs/ruby/3.2.2/bin/ruby extconf.rb
checking for -lstdc++... no
creating Makefile

current directory: /var/home/pboling/.local/share/mise/installs/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/unf_ext-0.0.8.2/ext/unf_ext
make DESTDIR\= sitearchdir\=./.gem.20250619-572258-2k11l6 sitelibdir\=./.gem.20250619-572258-2k11l6 clean

current directory: /var/home/pboling/.local/share/mise/installs/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/unf_ext-0.0.8.2/ext/unf_ext
make DESTDIR\= sitearchdir\=./.gem.20250619-572258-2k11l6 sitelibdir\=./.gem.20250619-572258-2k11l6
compiling unf.cc
make: g++: No such file or directory
make: *** [Makefile:216: unf.o] Error 127

make failed, exit code 2

Please help me support open source by sponsoring me - @pboling

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