You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Kouhei Sutou (Jira)" <ji...@apache.org> on 2019/09/30 21:21:00 UTC

[jira] [Resolved] (ARROW-6748) [RUBY] gem compilation error

     [ https://issues.apache.org/jira/browse/ARROW-6748?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kouhei Sutou resolved ARROW-6748.
---------------------------------
    Fix Version/s: 0.15.0
       Resolution: Not A Bug

Packages at packages.red-data-tools.org are outdated. They are unofficial packages.

We have the official packages at https://dl.bintray.com/apache/arrow/ubuntu/ . See https://arrow.apache.org/install/#c-and-glib-c-packages-for-debian-gnulinux-ubuntu-and-centos how to use these packages. 

> [RUBY] gem compilation error
> ----------------------------
>
>                 Key: ARROW-6748
>                 URL: https://issues.apache.org/jira/browse/ARROW-6748
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: Ruby
>    Affects Versions: 0.14.1
>         Environment: Ubuntu 18.04, ruby 2.6.3 (rbenv environment)
>            Reporter: Tj Vanderpoel
>            Assignee: Kouhei Sutou
>            Priority: Major
>             Fix For: 0.15.0
>
>
> 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
> {code:java}
>  .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
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)