Tj Vanderpoel created ARROW-6748:
------------------------------------
Summary: [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
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)