rmagick: fatal error: 'cstdbool' file not found

Description

I am trying to install rmagick on an M2 mac, but it fails during building.

Steps to Reproduce

% gem install gruff  
Building native extensions. This could take a while...
ERROR:  Error installing gruff:
        ERROR: Failed to build gem native extension.

    current directory: /Users/uwe/.gem/ruby/3.3.5/gems/rmagick-6.0.1/ext/RMagick
/Users/uwe/.rubies/ruby-3.3.5/bin/ruby extconf.rb
checking for brew... yes
checking for Ruby version >= 3.0.0... yes
checking for outdated ImageMagick version (<= 6.8.9)... no
checking for clang++... yes
*** 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=/Users/uwe/.rubies/ruby-3.3.5/bin/$(RUBY_BASE_NAME)
        --with-pkg-config
        --without-pkg-config
        --with-override-variables
        --without-override-variables
/Users/uwe/.rubies/ruby-3.3.5/lib/ruby/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 /Users/uwe/.rubies/ruby-3.3.5/lib/ruby/3.3.0/mkmf.rb:573:in `try_link0'
        from /Users/uwe/.rubies/ruby-3.3.5/lib/ruby/3.3.0/mkmf.rb:591:in `try_link'
        from extconf.rb:126:in `configure_compile_options'
        from extconf.rb:48:in `initialize'
        from extconf.rb:438:in `new'
        from extconf.rb:438:in `<main>'

To see why this extension failed to compile, please check the mkmf.log which can be found here:

  /Users/uwe/.gem/ruby/3.3.5/extensions/arm64-darwin-23/3.3.0-static/rmagick-6.0.1/mkmf.log

extconf failed, exit code 1

Gem files will remain installed in /Users/uwe/.gem/ruby/3.3.5/gems/rmagick-6.0.1 for inspection.
Results logged to /Users/uwe/.gem/ruby/3.3.5/extensions/arm64-darwin-23/3.3.0-static/rmagick-6.0.1/gem_make.out
uwe@MacBook-Pro sports % ;2B

mkmf.log:

find_executable: checking for brew... -------------------- yes

--------------------

assert_minimum_ruby_version!: checking for Ruby version >= 3.0.0... -------------------- yes

--------------------

assert_has_dev_libs!: checking for outdated ImageMagick version (<= 6.8.9)... -------------------- no

Detected ImageMagick version: 7.1.1
--------------------

find_executable: checking for clang++... -------------------- yes

--------------------

DYLD_LIBRARY_PATH=.:/Users/uwe/.rubies/ruby-3.3.5/lib "clang -o conftest -I/Users/uwe/.rubies/ruby-3.3.5/include/ruby-3.3.0/arm64-darwin23 -I/Users/uwe/.rubies/ruby-3.3.5/include/ruby-3.3.0/ruby/backward -I/Users/uwe/.rubies/ruby-3.3.5/include/ruby-3.3.0 -I. -I/opt/homebrew/opt/readline/include -I/opt/homebrew/opt/libyaml/include -I/opt/homebrew/opt/gdbm/include -I/opt/homebrew/opt/node@20/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -x c++  -Xpreprocessor -fopenmp -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16 -DMAGICKCORE_CHANNEL_MASK_DEPTH=32 -I/opt/homebrew/Cellar/imagemagick/7.1.1-39/include/ImageMagick-7 -x c++ -std=c++11 -Wno-register -fdeclspec -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wextra-tokens -Wdeprecated-declarations -Wdivision-by-zero -Wdiv-by-zero -Wimplicit-function-declaration -Wimplicit-int -Wpointer-arith -Wshorten-64-to-32 -Wwrite-strings -Wold-style-definition -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wunused-variable -Wmisleading-indentation -Wundef -pipe conftest.c  -L. -L/Users/uwe/.rubies/ruby-3.3.5/lib -L/opt/homebrew/opt/readline/lib -L/opt/homebrew/opt/libyaml/lib -L/opt/homebrew/opt/gdbm/lib -L. -L/opt/homebrew/opt/node@20/lib -fstack-protector-strong -L/opt/homebrew/opt/readline/lib -L/opt/homebrew/opt/libyaml/lib -L/opt/homebrew/opt/gdbm/lib -L/opt/homebrew/opt/node@20/lib -L/opt/homebrew/Cellar/imagemagick/7.1.1-39/lib -lMagickCore-7.Q16HDRI -Wl,-rpath,/opt/homebrew/Cellar/imagemagick/7.1.1-39/lib  -arch arm64   -L/opt/homebrew/Cellar/imagemagick/7.1.1-39/lib -lMagickCore-7.Q16HDRI  -lruby.3.3-static -framework CoreFoundation -ldl -lobjc -lpthread   -lpthread  "
In file included from conftest.c:1:
In file included from /Users/uwe/.rubies/ruby-3.3.5/include/ruby-3.3.0/ruby.h:38:
In file included from /Users/uwe/.rubies/ruby-3.3.5/include/ruby-3.3.0/ruby/ruby.h:25:
In file included from /Users/uwe/.rubies/ruby-3.3.5/include/ruby-3.3.0/ruby/defines.h:74:
In file included from /Users/uwe/.rubies/ruby-3.3.5/include/ruby-3.3.0/ruby/backward/2/bool.h:22:
/Users/uwe/.rubies/ruby-3.3.5/include/ruby-3.3.0/ruby/internal/stdbool.h:31:12: fatal error: 'cstdbool' file not found
   31 | #  include <cstdbool>
      |            ^~~~~~~~~~
1 error generated.
checked program was:
/* begin */
1: #include "ruby.h"
2: 
3: int main(int argc, char **argv)
4: {
5:   return !!argv[argc];
6: }
/* end */

System Configuration

  • ImageMagick version: 7.1.1
  • RMagick version: 6.0.1
  • Ruby version: 3.3.5
  • Environment (Operating system, version and so on): macOS Sonoma 14.7 (23H124)
  • Additional information:

I see there are some issues in the tracker, but I could not find a solution. I have tried adding export CPPFLAGS="-x c++ " before installing rmagick.

Thank you for all your efforts developing rmagick 😄

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 1
  • Comments: 18 (8 by maintainers)

Most upvoted comments

Confirming that installing Xcode, not just the developer tools, and reinstalling Ruby solves the issue.

However, I’m wondering what has changed - was Xcode installed by default in a previous version of macOS, or have they modified something in the developer tools that now causes this issue?

Thanks. Your logs are certainly wrong.

checking for outdated ImageMagick version (<= 6.8.9)... no
checking for false... yes

If your environments are set up properly, it should have following as expected:

checking for outdated ImageMagick version (<= 6.8.9)... no
checking for clang++... yes

I think the compiler is not recognized correctly because you set up Xcode after installing Ruby, or wrong environment variable was set.

https://github.com/rmagick/rmagick/blob/107265ae0f3dbc3e8f6dfbb9c205ec76ca717174/ext/RMagick/extconf.rb#L230

Can you check whatRbConfig::CONFIG['CXX'] and ENV[‘CXX’] have value?

$ irb
irb(main):001> require 'rbconfig'
=> false
irb(main):002> RbConfig::CONFIG['CXX']
=> "clang++"
irb(main):003> ENV['CXX']
=> nil

If the value of RbConfig::CONFIG[‘CXX’] is different, I recommend strongly what you reinstall Ruby.

(Maybe, I think you can install when use CXX environment variable, like CXX=clang++ gem install rmagick)

I’m having the same issue, but I’m on an Intel Mac.

We use asdf for Ruby version management, and this issue started for me when upgrading to Ruby 3.3.6.

The initially error occurred when running bundle on our Rails project after the Ruby upgrade. I noticed that there was an update for Apple’s developer command line tools, so I installed that, and also installed actual Xcode like @kapso above.

At one point I had the following error

/Users/joelewis/.asdf/installs/ruby/3.3.6/lib/ruby/gems/3.3.0/gems/pkg-config-1.5.7/lib/pkg-config.rb:505:in `parse_pc': .pc doesn't exist: <MagickCore> (PackageConfig::NotFoundError)
	from /Users/joelewis/.asdf/installs/ruby/3.3.6/lib/ruby/gems/3.3.0/gems/pkg-config-1.5.7/lib/pkg-config.rb:349:in `declaration'
	from /Users/joelewis/.asdf/installs/ruby/3.3.6/lib/ruby/gems/3.3.0/gems/pkg-config-1.5.7/lib/pkg-config.rb:290:in `requires'
	from /Users/joelewis/.asdf/installs/ruby/3.3.6/lib/ruby/gems/3.3.0/gems/pkg-config-1.5.7/lib/pkg-config.rb:546:in `block in required_packages'
	from /Users/joelewis/.asdf/installs/ruby/3.3.6/lib/ruby/gems/3.3.0/gems/pkg-config-1.5.7/lib/pkg-config.rb:375:in `collect_requires'
	from /Users/joelewis/.asdf/installs/ruby/3.3.6/lib/ruby/gems/3.3.0/gems/pkg-config-1.5.7/lib/pkg-config.rb:545:in `required_packages'
	from /Users/joelewis/.asdf/installs/ruby/3.3.6/lib/ruby/gems/3.3.0/gems/pkg-config-1.5.7/lib/pkg-config.rb:453:in `collect_libs'
	from /Users/joelewis/.asdf/installs/ruby/3.3.6/lib/ruby/gems/3.3.0/gems/pkg-config-1.5.7/lib/pkg-config.rb:311:in `libs'
	from /Users/joelewis/.asdf/installs/ruby/3.3.6/lib/ruby/gems/3.3.0/gems/pkg-config-1.5.7/lib/pkg-config.rb:592:in `libs'
	from extconf.rb:330:in `assert_has_dev_libs!'
	from extconf.rb:303:in `assert_can_compile!'
	from extconf.rb:47:in `initialize'
	from extconf.rb:438:in `new'
	from extconf.rb:438:in `<main>'

But then double checked that my ImageMagick install was still working and saw that convert was not in my path. I think this is likely because I attempted to run ./before_install_osx.sh in the rmagick repo to see what would happen. I reinstalled ImageMagick from homebrew and then was back to the errors below:

Output from bundle
Installing rmagick 6.0.1 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

    current directory: /Users/joelewis/.asdf/installs/ruby/3.3.6/lib/ruby/gems/3.3.0/gems/rmagick-6.0.1/ext/RMagick
/Users/joelewis/.asdf/installs/ruby/3.3.6/bin/ruby extconf.rb
checking for brew... yes
checking for Ruby version >= 3.0.0... yes
checking for outdated ImageMagick version (<= 6.8.9)... no
checking for false... yes
checking for MagickCore/MagickCore.h... yes
checking for malloc.h... no
checking for malloc/malloc.h... yes
checking for rb_io_path() in assert.h,ctype.h,stdio.h,stdlib.h,math.h,time.h,sys/types.h,ruby.h,ruby/io.h,MagickCore/MagickCore.h,malloc/malloc.h... yes
checking for posix_memalign() in assert.h,ctype.h,stdio.h,stdlib.h,math.h,time.h,sys/types.h,ruby.h,ruby/io.h,MagickCore/MagickCore.h,malloc/malloc.h... yes
checking for malloc_usable_size() in assert.h,ctype.h,stdio.h,stdlib.h,math.h,time.h,sys/types.h,ruby.h,ruby/io.h,MagickCore/MagickCore.h,malloc/malloc.h... no
checking for malloc_size() in assert.h,ctype.h,stdio.h,stdlib.h,math.h,time.h,sys/types.h,ruby.h,ruby/io.h,MagickCore/MagickCore.h,malloc/malloc.h... yes
checking for _aligned_msize() in assert.h,ctype.h,stdio.h,stdlib.h,math.h,time.h,sys/types.h,ruby.h,ruby/io.h,MagickCore/MagickCore.h,malloc/malloc.h... no
checking for GetImageChannelEntropy() in assert.h,ctype.h,stdio.h,stdlib.h,math.h,time.h,sys/types.h,ruby.h,ruby/io.h,MagickCore/MagickCore.h,malloc/malloc.h... no
checking for SetImageGray() in assert.h,ctype.h,stdio.h,stdlib.h,math.h,time.h,sys/types.h,ruby.h,ruby/io.h,MagickCore/MagickCore.h,malloc/malloc.h... yes
checking for SetMagickAlignedMemoryMethods() in assert.h,ctype.h,stdio.h,stdlib.h,math.h,time.h,sys/types.h,ruby.h,ruby/io.h,MagickCore/MagickCore.h,malloc/malloc.h... yes
creating extconf.h
creating Makefile
======================================================================
Fri 08 Nov 24 08:57:29
This installation of RMagick 6.0.1 is configured for
Ruby 3.3.6 (x86_64-darwin23) and ImageMagick 7.1.1
======================================================================


Configured compile options: {:magick_version=>"7.1.1", :local_libs=>"  -L/usr/local/Cellar/imagemagick/7.1.1-39/lib -lMagickCore-7.Q16HDRI", :cppflags=>"-D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT $(DEFS) $(cppflags)  -Xpreprocessor -fopenmp
-DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16 -DMAGICKCORE_CHANNEL_MASK_DEPTH=32 -I/usr/local/Cellar/imagemagick/7.1.1-39/include/ImageMagick-7 -x c++ -std=c++11 -Wno-register $(optflags) $(debugflags) -fomit-frame-pointer", :ldflags=>"-L. -fstack-protector-strong
-L/usr/local/opt/gmp/lib  -L/usr/local/Cellar/imagemagick/7.1.1-39/lib -lMagickCore-7.Q16HDRI -Wl,-rpath,/usr/local/Cellar/imagemagick/7.1.1-39/lib", :defs=>["-DHAVE_MAGICKCORE_MAGICKCORE_H", "-DHAVE_MALLOC_MALLOC_H", "-DHAVE_RB_IO_PATH", "-DHAVE_POSIX_MEMALIGN",
"-DHAVE_MALLOC_SIZE", "-DHAVE_SETIMAGEGRAY", "-DHAVE_SETMAGICKALIGNEDMEMORYMETHODS", "-DRUBY_VERSION_STRING=\"ruby 3.3.6\"", "-DRMAGICK_VERSION_STRING=\"RMagick 6.0.1\"", "-DIMAGEMAGICK_GREATER_THAN_EQUAL_6_9_0=1", "-DIMAGEMAGICK_GREATER_THAN_EQUAL_6_9_10=1", "-DIMAGEMAGICK_7=1",
"-DIMAGEMAGICK_GREATER_THAN_EQUAL_7_0_8=1", "-DIMAGEMAGICK_GREATER_THAN_EQUAL_7_0_10=1"], :config_h=>"Makefile"}

current directory: /Users/joelewis/.asdf/installs/ruby/3.3.6/lib/ruby/gems/3.3.0/gems/rmagick-6.0.1/ext/RMagick
make DESTDIR\= sitearchdir\=./.gem.20241108-24852-lxwmk0 sitelibdir\=./.gem.20241108-24852-lxwmk0 clean

current directory: /Users/joelewis/.asdf/installs/ruby/3.3.6/lib/ruby/gems/3.3.0/gems/rmagick-6.0.1/ext/RMagick
make DESTDIR\= sitearchdir\=./.gem.20241108-24852-lxwmk0 sitelibdir\=./.gem.20241108-24852-lxwmk0
compiling rmagick.cpp
make: *** [rmagick.o] Error 1

make failed, exit code 2

Gem files will remain installed in /Users/joelewis/.asdf/installs/ruby/3.3.6/lib/ruby/gems/3.3.0/gems/rmagick-6.0.1 for inspection.
Results logged to /Users/joelewis/.asdf/installs/ruby/3.3.6/lib/ruby/gems/3.3.0/extensions/x86_64-darwin-23/3.3.0/rmagick-6.0.1/gem_make.out

  /Users/joelewis/.asdf/installs/ruby/3.3.6/lib/ruby/3.3.0/rubygems/ext/builder.rb:125:in `run'
  /Users/joelewis/.asdf/installs/ruby/3.3.6/lib/ruby/3.3.0/rubygems/ext/builder.rb:51:in `block in make'
  /Users/joelewis/.asdf/installs/ruby/3.3.6/lib/ruby/3.3.0/rubygems/ext/builder.rb:43:in `each'
  /Users/joelewis/.asdf/installs/ruby/3.3.6/lib/ruby/3.3.0/rubygems/ext/builder.rb:43:in `make'
  /Users/joelewis/.asdf/installs/ruby/3.3.6/lib/ruby/3.3.0/rubygems/ext/ext_conf_builder.rb:42:in `build'
  /Users/joelewis/.asdf/installs/ruby/3.3.6/lib/ruby/3.3.0/rubygems/ext/builder.rb:193:in `build_extension'
  /Users/joelewis/.asdf/installs/ruby/3.3.6/lib/ruby/3.3.0/rubygems/ext/builder.rb:227:in `block in build_extensions'
  /Users/joelewis/.asdf/installs/ruby/3.3.6/lib/ruby/3.3.0/rubygems/ext/builder.rb:224:in `each'
  /Users/joelewis/.asdf/installs/ruby/3.3.6/lib/ruby/3.3.0/rubygems/ext/builder.rb:224:in `build_extensions'
  /Users/joelewis/.asdf/installs/ruby/3.3.6/lib/ruby/3.3.0/rubygems/installer.rb:844:in `build_extensions'
  /Users/joelewis/.asdf/installs/bundler/2.5.6/lib/bundler/rubygems_gem_installer.rb:76:in `build_extensions'
  /Users/joelewis/.asdf/installs/bundler/2.5.6/lib/bundler/rubygems_gem_installer.rb:28:in `install'
  /Users/joelewis/.asdf/installs/bundler/2.5.6/lib/bundler/source/rubygems.rb:205:in `install'
  /Users/joelewis/.asdf/installs/bundler/2.5.6/lib/bundler/installer/gem_installer.rb:54:in `install'
  /Users/joelewis/.asdf/installs/bundler/2.5.6/lib/bundler/installer/gem_installer.rb:16:in `install_from_spec'
  /Users/joelewis/.asdf/installs/bundler/2.5.6/lib/bundler/installer/parallel_installer.rb:132:in `do_install'
  /Users/joelewis/.asdf/installs/bundler/2.5.6/lib/bundler/installer/parallel_installer.rb:123:in `block in worker_pool'
  /Users/joelewis/.asdf/installs/bundler/2.5.6/lib/bundler/worker.rb:62:in `apply_func'
  /Users/joelewis/.asdf/installs/bundler/2.5.6/lib/bundler/worker.rb:57:in `block in process_queue'
  <internal:kernel>:187:in `loop'
  /Users/joelewis/.asdf/installs/bundler/2.5.6/lib/bundler/worker.rb:54:in `process_queue'
  /Users/joelewis/.asdf/installs/bundler/2.5.6/lib/bundler/worker.rb:90:in `block (2 levels) in create_threads'

An error occurred while installing rmagick (6.0.1), and Bundler cannot continue.
gem_make.out
current directory: /Users/joelewis/.asdf/installs/ruby/3.3.6/lib/ruby/gems/3.3.0/gems/rmagick-6.0.1/ext/RMagick
/Users/joelewis/.asdf/installs/ruby/3.3.6/bin/ruby extconf.rb
checking for brew... yes
checking for Ruby version >= 3.0.0... yes
checking for outdated ImageMagick version (<= 6.8.9)... no
checking for false... yes
checking for MagickCore/MagickCore.h... yes
checking for malloc.h... no
checking for malloc/malloc.h... yes
checking for rb_io_path() in assert.h,ctype.h,stdio.h,stdlib.h,math.h,time.h,sys/types.h,ruby.h,ruby/io.h,MagickCore/MagickCore.h,malloc/malloc.h... yes
checking for posix_memalign() in assert.h,ctype.h,stdio.h,stdlib.h,math.h,time.h,sys/types.h,ruby.h,ruby/io.h,MagickCore/MagickCore.h,malloc/malloc.h... yes
checking for malloc_usable_size() in assert.h,ctype.h,stdio.h,stdlib.h,math.h,time.h,sys/types.h,ruby.h,ruby/io.h,MagickCore/MagickCore.h,malloc/malloc.h... no
checking for malloc_size() in assert.h,ctype.h,stdio.h,stdlib.h,math.h,time.h,sys/types.h,ruby.h,ruby/io.h,MagickCore/MagickCore.h,malloc/malloc.h... yes
checking for _aligned_msize() in assert.h,ctype.h,stdio.h,stdlib.h,math.h,time.h,sys/types.h,ruby.h,ruby/io.h,MagickCore/MagickCore.h,malloc/malloc.h... no
checking for GetImageChannelEntropy() in assert.h,ctype.h,stdio.h,stdlib.h,math.h,time.h,sys/types.h,ruby.h,ruby/io.h,MagickCore/MagickCore.h,malloc/malloc.h... no
checking for SetImageGray() in assert.h,ctype.h,stdio.h,stdlib.h,math.h,time.h,sys/types.h,ruby.h,ruby/io.h,MagickCore/MagickCore.h,malloc/malloc.h... yes
checking for SetMagickAlignedMemoryMethods() in assert.h,ctype.h,stdio.h,stdlib.h,math.h,time.h,sys/types.h,ruby.h,ruby/io.h,MagickCore/MagickCore.h,malloc/malloc.h... yes
creating extconf.h
creating Makefile
======================================================================
Fri 08 Nov 24 08:57:29
This installation of RMagick 6.0.1 is configured for
Ruby 3.3.6 (x86_64-darwin23) and ImageMagick 7.1.1
======================================================================


Configured compile options: {:magick_version=>"7.1.1", :local_libs=>"  -L/usr/local/Cellar/imagemagick/7.1.1-39/lib -lMagickCore-7.Q16HDRI", :cppflags=>"-D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT $(DEFS) $(cppflags)  -Xpreprocessor -fopenmp -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16 -DMAGICKCORE_CHANNEL_MASK_DEPTH=32 -I/usr/local/Cellar/imagemagick/7.1.1-39/include/ImageMagick-7 -x c++ -std=c++11 -Wno-register $(optflags) $(debugflags) -fomit-frame-pointer", :ldflags=>"-L. -fstack-protector-strong -L/usr/local/opt/gmp/lib  -L/usr/local/Cellar/imagemagick/7.1.1-39/lib -lMagickCore-7.Q16HDRI -Wl,-rpath,/usr/local/Cellar/imagemagick/7.1.1-39/lib", :defs=>["-DHAVE_MAGICKCORE_MAGICKCORE_H", "-DHAVE_MALLOC_MALLOC_H", "-DHAVE_RB_IO_PATH", "-DHAVE_POSIX_MEMALIGN", "-DHAVE_MALLOC_SIZE", "-DHAVE_SETIMAGEGRAY", "-DHAVE_SETMAGICKALIGNEDMEMORYMETHODS", "-DRUBY_VERSION_STRING=\"ruby 3.3.6\"", "-DRMAGICK_VERSION_STRING=\"RMagick 6.0.1\"", "-DIMAGEMAGICK_GREATER_THAN_EQUAL_6_9_0=1", "-DIMAGEMAGICK_GREATER_THAN_EQUAL_6_9_10=1", "-DIMAGEMAGICK_7=1", "-DIMAGEMAGICK_GREATER_THAN_EQUAL_7_0_8=1", "-DIMAGEMAGICK_GREATER_THAN_EQUAL_7_0_10=1"], :config_h=>"Makefile"}

current directory: /Users/joelewis/.asdf/installs/ruby/3.3.6/lib/ruby/gems/3.3.0/gems/rmagick-6.0.1/ext/RMagick
make DESTDIR\= sitearchdir\=./.gem.20241108-24852-lxwmk0 sitelibdir\=./.gem.20241108-24852-lxwmk0 clean

current directory: /Users/joelewis/.asdf/installs/ruby/3.3.6/lib/ruby/gems/3.3.0/gems/rmagick-6.0.1/ext/RMagick
make DESTDIR\= sitearchdir\=./.gem.20241108-24852-lxwmk0 sitelibdir\=./.gem.20241108-24852-lxwmk0
compiling rmagick.cpp
make: *** [rmagick.o] Error 1

make failed, exit code 2
❯ convert --version                                                                                                                                                                                                                                                                 
WARNING: The convert command is deprecated in IMv7, use "magick" instead of "convert" or "magick convert"

Version: ImageMagick 7.1.1-39 Q16-HDRI x86_64 22428 https://imagemagick.org
Copyright: (C) 1999 ImageMagick Studio LLC
License: https://imagemagick.org/script/license.php
Features: Cipher DPC HDRI Modules OpenMP(5.0) 
Delegates (built-in): bzlib fontconfig freetype gslib heic jng jp2 jpeg jxl lcms lqr ltdl lzma openexr png ps raw tiff webp xml zlib zstd
Compiler: gcc (4.2)

Edit: Forgot to say I’m on MacOS 14.7.1

What other information would be useful in debugging?

Thanks, Joe