Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-4021

[Ruby] Error building red-arrow on msys2

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.14.0
    • Ruby
    • None
    • windows 7, ruby

    Description

      Trying to install red-arrow on ruby version 2.5.3 and it doesn't compile.  I installed arrow with msys2

      "mingw64/mingw-w64-x86_64-arrow 0.11.1-1 [installed]
      Apache Arrow is a cross-language development platform for in-memory data (mingw-w64)"

      C:\Users\Dominic E Sisneros\Documents\work_new\projects\nexcom\dominic\SLCI_RTR\drawings\working>ruby --version
      ruby 2.5.3p105 (2018-10-18 revision 65156) [x64-mingw32]

      E:\Sisneros\Documents\work_new\projects\nexcom\dominic\SLCI_RTR\drawings\working>gem install red-arrow

      g required msys2 packages: mingw-w64-x86_64-glib2
      mingw-w64-x86_64-glib2-2.58.1-1 is up to date – skipping
      native extensions. This could take a while...
      rror installing red-arrow:
      RROR: Failed to build gem native extension.

      nt directory: E:/rubies/rubyinstaller-2.5.3-1-x64/lib/ruby/gems/2.5.0/gems/glib2-3.3.0/ext/glib2
      /rubyinstaller-2.5.3-1-x64/bin/ruby.exe -r ./siteconf20181213-23396-1gomjgx.rb extconf.rb
      for --enable-debug-build option... no
      for -Wall option to compiler... yes
      for -Waggregate-return option to compiler... yes
      for -Wcast-align option to compiler... yes
      for -Wextra option to compiler... yes
      for -Wformat=2 option to compiler... yes
      for -Winit-self option to compiler... yes
      for -Wlarger-than-65500 option to compiler... yes
      for -Wmissing-declarations option to compiler... yes
      for -Wmissing-format-attribute option to compiler... yes
      for -Wmissing-include-dirs option to compiler... yes
      for -Wmissing-noreturn option to compiler... yes
      for -Wmissing-prototypes option to compiler... yes
      for -Wnested-externs option to compiler... yes
      for -Wold-style-definition option to compiler... yes
      for -Wpacked option to compiler... yes
      for -Wp,-D_FORTIFY_SOURCE=2 option to compiler... yes
      for -Wpointer-arith option to compiler... yes
      for -Wswitch-default option to compiler... yes
      for -Wswitch-enum option to compiler... yes
      for -Wundef option to compiler... yes
      for -Wout-of-line-declaration option to compiler... no
      for -Wunsafe-loop-optimizations option to compiler... yes
      for -Wwrite-strings option to compiler... yes
      for Windows... yes
      for gobject-2.0 version (>= 2.12.0)... yes
      for gthread-2.0... yes
      for unistd.h... yes
      for io.h... yes
      for g_spawn_close_pid() in glib.h... no
      for g_thread_init() in glib.h... no
      for g_main_depth() in glib.h... no
      for g_listenv() in glib.h... no
      for rb_check_array_type() in ruby.h... yes
      for rb_check_hash_type() in ruby.h... yes
      for rb_exec_recursive() in ruby.h... yes
      for rb_errinfo() in ruby.h... yes
      for rb_thread_call_without_gvl() in ruby.h... yes
      for ruby_native_thread_p() in ruby.h... yes
      for rb_thread_call_with_gvl() in ruby.h... yes
      for rb_gc_register_mark_object() in ruby.h... yes
      for rb_exc_new_str() in ruby.h... yes
      for rb_enc_str_new_static() in ruby.h... yes
      for curr_thread in ruby.h,node.h... no
      for rb_curr_thread in ruby.h,node.h... no
      ruby-glib2.pc
      glib-enum-types.c
      glib-enum-types.h
      Makefile

      irectory: E:/rubies/rubyinstaller-2.5.3-1-x64/lib/ruby/gems/2.5.0/gems/glib2-3.3.0/ext/glib2
      TDIR=" clean

      irectory: E:/rubies/rubyinstaller-2.5.3-1-x64/lib/ruby/gems/2.5.0/gems/glib2-3.3.0/ext/glib2
      TDIR="
      glib-enum-types.c
      rbglib-bytes.c
      rbglib-gc.c
      .c: In function 'gc_marker_mark_each':
      .c:26:30: warning: unused parameter 'key' [-Wunused-parameter]
      r_mark_each(gpointer key, gpointer value, gpointer user_data)
      ~~~~~~~~^~
      .c:26:60: warning: unused parameter 'user_data' [-Wunused-parameter]
      r_mark_each(gpointer key, gpointer value, gpointer user_data)
      ~~~~~~~~^~~~~~~~
      .c: At top level:
      .c:53:5: warning: missing initializer for field 'reserved' of 'struct <anonymous>' [-Wmissing-field-initializers]

      ncluded from E:/rubies/rubyinstaller-2.5.3-1-x64/include/ruby-2.5.0/ruby.h:33,
      from rbgobject.h:27,
      from rbgprivate.h:33,
      from rbglib-gc.c:21:
      /rubyinstaller-2.5.3-1-x64/include/ruby-2.5.0/ruby/ruby.h:1088:8: note: 'reserved' declared here
      eserved[2]; /* For future extension.
      ~~~~~~~
      rbglib-variant-type.c
      rbglib-variant.c
      rbglib.c
      In function 'rbg_scan_options':
      868:22: warning: unknown conversion type character 'l' in format [-Wformat=]
      "options must be Hash or nil: %+" PRIsVALUE,
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      ncluded from E:/rubies/rubyinstaller-2.5.3-1-x64/include/ruby-2.5.0/ruby/ruby.h:24,
      from E:/rubies/rubyinstaller-2.5.3-1-x64/include/ruby-2.5.0/ruby.h:33,
      from rbgobject.h:27,
      from rbgprivate.h:33,
      from rbglib.c:23:
      /rubyinstaller-2.5.3-1-x64/include/ruby-2.5.0/x64-mingw32/ruby/config.h:64:25: note: format string is defined here
      PRI_LL_PREFIX "ll"
      ^
      868:22: warning: too many arguments for format [-Wformat-extra-args]
      "options must be Hash or nil: %+" PRIsVALUE,
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      922:18: warning: unknown conversion type character 'l' in format [-Wformat=]
      "unexpected key(s) exist: %+" PRIsVALUE
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      ncluded from E:/rubies/rubyinstaller-2.5.3-1-x64/include/ruby-2.5.0/ruby/ruby.h:24,
      from E:/rubies/rubyinstaller-2.5.3-1-x64/include/ruby-2.5.0/ruby.h:33,
      from rbgobject.h:27,
      from rbgprivate.h:33,
      from rbglib.c:23:
      /rubyinstaller-2.5.3-1-x64/include/ruby-2.5.0/x64-mingw32/ruby/config.h:64:25: note: format string is defined here
      PRI_LL_PREFIX "ll"
      ^
      922:18: warning: unknown conversion type character 'l' in format [-Wformat=]
      "unexpected key(s) exist: %+" PRIsVALUE
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      ncluded from E:/rubies/rubyinstaller-2.5.3-1-x64/include/ruby-2.5.0/ruby/ruby.h:24,
      from E:/rubies/rubyinstaller-2.5.3-1-x64/include/ruby-2.5.0/ruby.h:33,
      from rbgobject.h:27,
      from rbgprivate.h:33,
      from rbglib.c:23:
      /rubyinstaller-2.5.3-1-x64/include/ruby-2.5.0/x64-mingw32/ruby/config.h:64:25: note: format string is defined here
      PRI_LL_PREFIX "ll"
      ^
      922:18: warning: too many arguments for format [-Wformat-extra-args]
      "unexpected key(s) exist: %+" PRIsVALUE
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      rbglibdeprecated.c
      rbglib_bookmarkfile.c
      ncluded from rbgobject.h:28,
      from rbgprivate.h:33,
      from rbglib_bookmarkfile.c:22:
      okmarkfile.c: In function 'Init_glib_bookmark_file':
      okmarkfile.c:506:35: error: 'G_TYPE_BOOKMARK_FILE_ERROR' undeclared (first use in this function); did you mean 'G_BOOKMARK_FILE_ERROR'?
      rb_eRuntimeError, G_TYPE_BOOKMARK_FILE_ERROR);
      ^~~~~~~~~~~~~~~~~~~~~~~~~~
      154:56: note: in definition of macro 'G_DEF_ERROR'
      rr_define_gerror(domain, name, module, parent, gtype)
      ^~~~~
      okmarkfile.c:506:35: note: each undeclared identifier is reported only once for each function it appears in
      rb_eRuntimeError, G_TYPE_BOOKMARK_FILE_ERROR);
      ^~~~~~~~~~~~~~~~~~~~~~~~~~
      154:56: note: in definition of macro 'G_DEF_ERROR'
      rr_define_gerror(domain, name, module, parent, gtype)
      ^~~~~
      [Makefile:242: rbglib_bookmarkfile.o] Error 1

      ed, exit code 2

      will remain installed in E:/rubies/rubyinstaller-2.5.3-1-x64/lib/ruby/gems/2.5.0/gems/glib2-3.3.0 for inspection.
      ogged to E:/rubies/rubyinstaller-2.5.3-1-x64/lib/ruby/gems/2.5.0/extensions/x64-mingw32/2.5.0/glib2-3.3.0/gem_make.out

      Attachments

        1. gem_make.out
          7 kB
          Dominic Sisneros
        2. mkmf.log
          90 kB
          Dominic Sisneros

        Activity

          People

            kou Kouhei Sutou
            dsisnero Dominic Sisneros
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: