Dominic Sisneros created ARROW-7548: ---------------------------------------
Summary: [Ruby] Can't install Ruby 2.7 - Can't update Ruby 2.6 Windows Key: ARROW-7548 URL: https://issues.apache.org/jira/browse/ARROW-7548 Project: Apache Arrow Issue Type: Bug Components: Ruby Reporter: Dominic Sisneros Can't install in Ruby 2.7 on Windows C:\Users\Dominic E Sisneros\source\repos\ruby\try_arrow>ruby -v ruby 2.7.0p0 (2019-12-25 revision 647ee6f091) [x64-mingw32] C:\Users\Dominic E Sisneros\source\repos\ruby\try_arrow>gem install red-arrow Fetching glib2-3.4.1.gem Fetching extpp-0.0.8.gem Fetching native-package-installer-1.0.9.gem Fetching gio2-3.4.1.gem Fetching gobject-introspection-3.4.1.gem Fetching red-arrow-0.15.1.gem Building native extensions. This could take a while... Successfully installed extpp-0.0.8 Successfully installed native-package-installer-1.0.9 Installing required msys2 packages: mingw-w64-x86_64-glib2 warning: mingw-w64-x86_64-glib2-2.62.4-1 is up to date -- skipping Building native extensions. This could take a while... ERROR: Error installing red-arrow: ERROR: Failed to build gem native extension. current directory: C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/glib2-3.4.1/ext/glib2 C:/Ruby27-x64/bin/ruby.exe -I C:/Ruby27-x64/lib/ruby/2.7.0 -r ./siteconf20200110-28684-mef9su.rb extconf.rb checking for --enable-debug-build option... no checking for -Wall option to compiler... yes checking for -Waggregate-return option to compiler... yes checking for -Wcast-align option to compiler... yes checking for -Wextra option to compiler... yes checking for -Wformat=2 option to compiler... yes checking for -Winit-self option to compiler... yes checking for -Wlarger-than-65500 option to compiler... yes checking for -Wmissing-declarations option to compiler... yes checking for -Wmissing-format-attribute option to compiler... yes checking for -Wmissing-include-dirs option to compiler... yes checking for -Wmissing-noreturn option to compiler... yes checking for -Wmissing-prototypes option to compiler... yes checking for -Wnested-externs option to compiler... no checking for -Wold-style-definition option to compiler... yes checking for -Wpacked option to compiler... yes checking for -Wp,-D_FORTIFY_SOURCE=2 option to compiler... yes checking for -Wpointer-arith option to compiler... yes checking for -Wundef option to compiler... yes checking for -Wout-of-line-declaration option to compiler... no checking for -Wunsafe-loop-optimizations option to compiler... yes checking for -Wwrite-strings option to compiler... yes checking for Homebrew... no checking for gobject-2.0 version (>= 2.12.0)... yes checking for gthread-2.0... yes checking for unistd.h... yes checking for io.h... yes checking for g_spawn_close_pid() in glib.h... yes checking for g_thread_init() in glib.h... yes checking for g_main_depth() in glib.h... yes checking for g_listenv() in glib.h... yes checking for rb_check_array_type() in ruby.h... yes checking for rb_check_hash_type() in ruby.h... yes checking for rb_exec_recursive() in ruby.h... yes checking for rb_errinfo() in ruby.h... yes checking for rb_thread_call_without_gvl() in ruby.h... yes checking for ruby_native_thread_p() in ruby.h... yes checking for rb_thread_call_with_gvl() in ruby.h... yes checking for rb_gc_register_mark_object() in ruby.h... yes checking for rb_exc_new_str() in ruby.h... yes checking for rb_enc_str_new_static() in ruby.h... yes checking for curr_thread in ruby.h,node.h... no checking for rb_curr_thread in ruby.h,node.h... no creating ruby-glib2.pc creating glib-enum-types.c creating glib-enum-types.h creating Makefile current directory: C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/glib2-3.4.1/ext/glib2 make "DESTDIR=" clean current directory: C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/glib2-3.4.1/ext/glib2 make "DESTDIR=" compiling glib-enum-types.c cc1.exe: warning: C:/Ruby26-x64/msys64/Ruby26-x64/msys64/mingw64/include: No such file or directory [-Wmissing-include-dirs] cc1.exe: warning: C:/Ruby26-x64/msys64/Ruby26-x64/msys64/mingw64/lib/libffi-3.2.1/include: No such file or directory [-Wmissing-include-dirs] cc1.exe: warning: C:/Ruby26-x64/msys64/Ruby26-x64/msys64/mingw64/include/glib-2.0: No such file or directory [-Wmissing-include-dirs] cc1.exe: warning: C:/Ruby26-x64/msys64/Ruby26-x64/msys64/mingw64/lib/glib-2.0/include: No such file or directory [-Wmissing-include-dirs] cc1.exe: warning: C:/Ruby26-x64/msys64/Ruby26-x64/msys64/mingw64/include: No such file or directory [-Wmissing-include-dirs] cc1.exe: warning: C:/Ruby26-x64/msys64/Ruby26-x64/msys64/mingw64/include/glib-2.0: No such file or directory [-Wmissing-include-dirs] cc1.exe: warning: C:/Ruby26-x64/msys64/Ruby26-x64/msys64/mingw64/lib/glib-2.0/include: No such file or directory [-Wmissing-include-dirs] In file included from rbgprivate.h:31, from glib-enum-types.c:4: rbgobject.h:25:10: fatal error: glib-object.h: No such file or directory 25 | #include <glib-object.h> | ^~~~~~~~~~~~~~~ compilation terminated. make: *** [Makefile:244: glib-enum-types.o] Error 1 make failed, exit code 2 Gem files will remain installed in C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/glib2-3.4.1 for inspection. Results logged to C:/Ruby27-x64/lib/ruby/gems/2.7.0/extensions/x64-mingw32/2.7.0/glib2-3.4.1/gem_make.out C:\Users\Dominic E Sisneros\source\repos\ruby\try_arrow> -- This message was sent by Atlassian Jira (v8.3.4#803005)