-
Notifications
You must be signed in to change notification settings - Fork 121
Closed
Description
Ruby version: 3.0.3
gcc --version
Apple clang version 16.0.0 (clang-1600.0.26.3)
Target: x86_64-apple-darwin23.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
gem install msgpack -v 1.4.3
Error when installing:
Building native extensions. This could take a while...
ERROR: Error installing msgpack:
ERROR: Failed to build gem native extension.
current directory: /Users/sampleuser/.rvm/gems/ruby-3.0.3/gems/msgpack-1.4.3/ext/msgpack
/Users/sampleuser/.rvm/rubies/ruby-3.0.3/bin/ruby extconf.rb
checking for ruby/st.h... yes
checking for st.h... no
checking for rb_enc_interned_str() in ruby.h... yes
creating Makefile
current directory: /Users/sampleuser/.rvm/gems/ruby-3.0.3/gems/msgpack-1.4.3/ext/msgpack
make DESTDIR\= sitearchdir\=./.gem.20240929-32068-1eg2w8 sitelibdir\=./.gem.20240929-32068-1eg2w8 clean
current directory: /Users/sampleuser/.rvm/gems/ruby-3.0.3/gems/msgpack-1.4.3/ext/msgpack
make DESTDIR\= sitearchdir\=./.gem.20240929-32068-1eg2w8 sitelibdir\=./.gem.20240929-32068-1eg2w8
compiling buffer.c
compiling buffer_class.c
buffer_class.c:261:17: error: incompatible function pointer types passing 'VALUE (VALUE)' (aka 'unsigned long (unsigned long)') to parameter of type 'VALUE (*)(VALUE, VALUE)' (aka 'unsigned long (*)(unsigned long, unsigned long)') [-Wincompatible-function-pointer-types]
261 | read_until_eof_error, (VALUE)(void*) args,
| ^~~~~~~~~~~~~~~~~~~~
/Users/sampleuser/.rvm/rubies/ruby-3.0.3/include/ruby-3.0.0/ruby/internal/iterator.h:51:47: note: passing argument to parameter here
51 | VALUE rb_rescue2(VALUE(*)(VALUE),VALUE,VALUE(*)(VALUE,VALUE),VALUE,...);
| ^
1 error generated.
make: *** [buffer_class.o] Error 1
make failed, exit code 2
Gem files will remain installed in /Users/sampleuser/.rvm/gems/ruby-3.0.3/gems/msgpack-1.4.3 for inspection.
Results logged to /Users/sampleuser/.rvm/gems/ruby-3.0.3/extensions/x86_64-darwin-23/3.0.0-static/msgpack-1.4.3/gem_make.out
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels