[MacPorts] #72240: Rubies which require C11 need runtime dependency on C11-capable compiler: ERROR: Failed to build gem native extension
MacPorts
noreply at macports.org
Wed Mar 26 01:00:36 UTC 2025
#72240: Rubies which require C11 need runtime dependency on C11-capable compiler:
ERROR: Failed to build gem native extension
--------------------------+--------------------------------------------
Reporter: barracuda156 | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.10.5
Keywords: | Port: ruby34, ruby33, ruby32, ruby31
--------------------------+--------------------------------------------
Turns out that nothing requires a modern compiler to be present at runtime
in Ruby ports. In result, no ports with native extensions build, when such
compiler is not found.
{{{
Executing: cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
.org_macports_release_tarballs_ports_ruby_rb-
gpgme/rb33-gpgme/work/gpgme-2.0.24" && /opt/local/bin/gem3.3 install
--local --force --install-dir
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
.org_macports_release_tarballs_ports_ruby_rb-
gpgme/rb33-gpgme/work/destroot/opt/local/lib/ruby3.3/gems/3.3.0
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
.org_macports_release_tarballs_ports_ruby_rb-
gpgme/rb33-gpgme/work/gpgme-2.0.24/gpgme.gem -- --use-system-libraries
Building native extensions with: '--use-system-libraries'
This could take a while...
ERROR: Error installing
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
.org_macports_release_tarballs_ports_ruby_rb-
gpgme/rb33-gpgme/work/gpgme-2.0.24/gpgme.gem:
ERROR: Failed to build gem native extension.
current directory:
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
.org_macports_release_tarballs_ports_ruby_rb-
gpgme/rb33-gpgme/work/destroot/opt/local/lib/ruby3.3/gems/3.3.0/gems/gpgme-2.0.24/ext/gpgme
/opt/local/bin/ruby3.3 extconf.rb --use-system-libraries
checking for pkg-config... yes
checking for gpgme >= 1.1.3... *** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You
may
need configuration options.
Provided configuration options:
--with-opt-dir
--with-opt-include=${opt-dir}/include
--without-opt-include
--with-opt-lib=${opt-dir}/lib
--without-opt-lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/opt/local/bin/$(RUBY_BASE_NAME)3.3
--clean
--use-system-libraries
/opt/local/lib/ruby3.3/3.3.0/mkmf.rb:480:in `try_do': The compiler failed
to generate an executable file. (RuntimeError)
You have to install development tools first.
from /opt/local/lib/ruby3.3/3.3.0/mkmf.rb:573:in `try_link0'
from /opt/local/lib/ruby3.3/3.3.0/mkmf.rb:901:in `try_run'
from extconf.rb:203:in `block in <main>'
from /opt/local/lib/ruby3.3/3.3.0/mkmf.rb:983:in `block in
checking_for'
from /opt/local/lib/ruby3.3/3.3.0/mkmf.rb:344:in `block (2 levels)
in postpone'
from /opt/local/lib/ruby3.3/3.3.0/mkmf.rb:314:in `open'
from /opt/local/lib/ruby3.3/3.3.0/mkmf.rb:344:in `block in
postpone'
from /opt/local/lib/ruby3.3/3.3.0/mkmf.rb:314:in `open'
from /opt/local/lib/ruby3.3/3.3.0/mkmf.rb:340:in `postpone'
from /opt/local/lib/ruby3.3/3.3.0/mkmf.rb:982:in `checking_for'
from extconf.rb:202:in `<main>'
To see why this extension failed to compile, please check the mkmf.log
which can be found here:
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
.org_macports_release_tarballs_ports_ruby_rb-
gpgme/rb33-gpgme/work/destroot/opt/local/lib/ruby3.3/gems/3.3.0/extensions
/ppc-darwin-10/3.3.0/gpgme-2.0.24/mkmf.log
extconf failed, exit code 1
Gem files will remain installed in
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
.org_macports_release_tarballs_ports_ruby_rb-
gpgme/rb33-gpgme/work/destroot/opt/local/lib/ruby3.3/gems/3.3.0/gems/gpgme-2.0.24
for inspection.
Results logged to
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
.org_macports_release_tarballs_ports_ruby_rb-
gpgme/rb33-gpgme/work/destroot/opt/local/lib/ruby3.3/gems/3.3.0/extensions
/ppc-darwin-10/3.3.0/gpgme-2.0.24/gem_make.out
Command failed: cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
.org_macports_release_tarballs_ports_ruby_rb-
gpgme/rb33-gpgme/work/gpgme-2.0.24" && /opt/local/bin/gem3.3 install
--local --force --install-dir
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
.org_macports_release_tarballs_ports_ruby_rb-
gpgme/rb33-gpgme/work/destroot/opt/local/lib/ruby3.3/gems/3.3.0
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
.org_macports_release_tarballs_ports_ruby_rb-
gpgme/rb33-gpgme/work/gpgme-2.0.24/gpgme.gem -- --use-system-libraries
Exit code: 1
Error: Failed to destroot rb33-gpgme: command execution failed
}}}
--
Ticket URL: <https://trac.macports.org/ticket/72240>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list