Building native extensions. This could take a while...
ERROR: Error installing glfw:
ERROR: Failed to build gem native extension.
current directory: /Users/choxi/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/glfw-3.3.2.0/ext/glfw
/Users/choxi/.rbenv/versions/2.5.3/bin/ruby -I /Users/choxi/.rbenv/versions/2.5.3/lib/ruby/site_ruby/2.5.0 -r ./siteconf20210406-79433-qpmmer.rb extconf.rb
checking for glfwInit() in -lglfw... yes
creating Makefile
current directory: /Users/choxi/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/glfw-3.3.2.0/ext/glfw
make DESTDIR\= clean
current directory: /Users/choxi/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/glfw-3.3.2.0/ext/glfw
make DESTDIR\=
compiling common.c
compiling cursor.c
compiling glfw.c
compiling image.c
image.c:48:12: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
return rb_str_new(img->pixels, len);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/choxi/.rbenv/versions/2.5.3/include/ruby-2.5.0/ruby/intern.h:775:20: note: expanded from macro 'rb_str_new'
rb_str_new_static((str), (len)) : \
~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
/Users/choxi/.rbenv/versions/2.5.3/include/ruby-2.5.0/ruby/defines.h:105:53: note: expanded from macro 'RB_GNUC_EXTENSION_BLOCK'
#define RB_GNUC_EXTENSION_BLOCK(x) __extension__ ({ x; })
^
/Users/choxi/.rbenv/versions/2.5.3/include/ruby-2.5.0/ruby/intern.h:707:37: note: passing argument to parameter here
VALUE rb_str_new_static(const char *, long);
^
image.c:48:12: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
return rb_str_new(img->pixels, len);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/choxi/.rbenv/versions/2.5.3/include/ruby-2.5.0/ruby/intern.h:776:13: note: expanded from macro 'rb_str_new'
rb_str_new((str), (len)) \
~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
/Users/choxi/.rbenv/versions/2.5.3/include/ruby-2.5.0/ruby/defines.h:105:53: note: expanded from macro 'RB_GNUC_EXTENSION_BLOCK'
#define RB_GNUC_EXTENSION_BLOCK(x) __extension__ ({ x; })
^
/Users/choxi/.rbenv/versions/2.5.3/include/ruby-2.5.0/ruby/intern.h:686:29: note: passing argument to parameter here
VALUE rb_str_new(const char*, long);
^
2 warnings generated.
compiling joystick.c
compiling monitor.c
monitor.c:71:28: error: implicit declaration of function 'USHORT2NUM' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
rb_ary_store(r, i, USHORT2NUM(ramp->red[i]));
^
1 error generated.
make: *** [monitor.o] Error 1
make failed, exit code 2
$ brew info glfw
glfw: stable 3.3.2 (bottled), HEAD
Multi-platform library for OpenGL applications
https://www.glfw.org/
/usr/local/Cellar/glfw/3.3.2 (14 files, 519.1KB) *
Built from source on 2021-04-06 at 22:02:56
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/glfw.rb
License: Zlib
==> Dependencies
Build: cmake โ
==> Options
--HEAD
Install HEAD version
==> Analytics
install: 4,290 (30 days), 11,981 (90 days), 37,655 (365 days)
install-on-request: 3,829 (30 days), 10,698 (90 days), 33,830 (365 days)
build-error: 0 (30 days)
Any idea what the issue might be? Any help or pointers would be appreciated, thanks!