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

[RUBY] gem compilation error

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Bug
    • 0.14.1
    • 0.15.0
    • Ruby
    • None
    • Ubuntu 18.04, ruby 2.6.3 (rbenv environment)

    Description

      Installing the red-arrow gem on Ubuntu 18.04 with the latest packages from Get:1 https://packages.red-data-tools.org/ubuntu bionic/universe amd64 libparquet-glib11 amd64 0.11.1-1  results in the following error

       .rbenv/versions/2.6.3/include/ruby-2.6.0/ruby/intern.h:829:35: note: in expansion of macro 'RB_GNUC_EXTENSION_BLOCK'
       #define rb_utf8_str_new(str, len) RB_GNUC_EXTENSION_BLOCK( \
                                         ^~~~~~~~~~~~~~~~~~~~~~~
      raw-records.cpp:350:18: note: in expansion of macro 'rb_utf8_str_new'
                 key_ = rb_utf8_str_new(field_name.data(), field_name.length());
                        ^~~~~~~~~~~~~~~
      raw-records.cpp: In member function 'uint8_t red_arrow::{anonymous}::UnionArrayValueConverter::compute_child_index(const arrow::UnionArray&, arrow::UnionType*, const char*)':
      raw-records.cpp:516:66: error: no matching function for call to 'arrow::Status::Invalid(const char [18], const unsigned char&)'
               check_status(Status::Invalid("Unknown type ID: ", type_id),
                                                                        ^
      In file included from /usr/include/arrow/buffer.h:30:0,
                       from /usr/include/arrow/array.h:28,
                       from /usr/include/arrow/api.h:23,
                       from red-arrow.hpp:22,
                       from raw-records.cpp:20:
      /usr/include/arrow/status.h:150:17: note: candidate: static arrow::Status arrow::Status::Invalid(const string&)
         static Status Invalid(const std::string& msg) {
                       ^~~~~~~
      /usr/include/arrow/status.h:150:17: note:   candidate expects 1 argument, 2 provided
      Makefile:235: recipe for target 'raw-records.o' failed
      make: *** [raw-records.o] Error 1make failed, exit code 2
      

      Attachments

        Activity

          People

            kou Kouhei Sutou
            bougyman Tj Vanderpoel
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: