arrow: [Ruby] Cannot get gem installed on Ubuntu 20 with arrow 14,15 and/or 16
Describe the bug, including details regarding any error messages, version, and platform.
here is the error message on Ubuntu 20 (focal)
checking for arrow version (>= 15.0.0)... yes (16.0.0)
checking for arrow-glib version (>= 15.0.2)... yes (16.0.0)
creating Makefile
current directory: /home/deployer/.asdf/installs/ruby/2.7.4/lib/ruby/gems/2.7.0/gems/red-arrow-15.0.2/ext/arrow
make "DESTDIR=" clean
current directory: /home/deployer/.asdf/installs/ruby/2.7.4/lib/ruby/gems/2.7.0/gems/red-arrow-15.0.2/ext/arrow
make "DESTDIR="
compiling arrow.cpp
In file included from /usr/include/arrow/result.h:28,
from /usr/include/arrow/device.h:26,
from /usr/include/arrow/buffer.h:29,
from /usr/include/arrow/array/data.h:27,
from /usr/include/arrow/array/array_base.h:26,
from /usr/include/arrow/array.h:41,
from /usr/include/arrow/api.h:22,
from red-arrow.hpp:22,
from arrow.cpp:20:
/usr/include/arrow/util/aligned_storage.h:39:22: error: ‘constexpr const T* arrow::internal::AlignedStorage<T>::get() const’ cannot be overloaded with ‘constexpr T* arrow::internal::AlignedStorage<T>::get() const’
39 | constexpr const T* get() const noexcept {
| ^~~
/usr/include/arrow/util/aligned_storage.h:35:16: note: previous declaration ‘constexpr T* arrow::internal::AlignedStorage<T>::get() const’
35 | constexpr T* get() noexcept {
| ^~~
In file included from /usr/include/arrow/device.h:26,
from /usr/include/arrow/buffer.h:29,
from /usr/include/arrow/array/data.h:27,
from /usr/include/arrow/array/array_base.h:26,
Is there any specific documentation/instructions to get this gem installed on Ubuntu 20. I was able to do it on CentOS7 with devtoolset-8
Component(s)
Ruby
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 15 (10 by maintainers)
Commits related to this issue
- GH-41396: [Ruby] Add workaround for re2.pc on Ubuntu 20.04 Old re2.pc add "-std=c++11" but it causes a build error. Because Apache Arrow C++ requires C++17. We can remove "-std=c++11" as workaround. — committed to kou/arrow by kou 2 years ago
- GH-41396: [Ruby] Add workaround for re2.pc on Ubuntu 20.04 (#43721) ### Rationale for this change Old re2.pc add "-std=c++11" but it causes a build error. Because Apache Arrow C++ requires C++17. #... — committed to apache/arrow by kou 2 years ago
Issue resolved by pull request 43721 https://github.com/apache/arrow/pull/43721
I didn’t have a plan for it because Ubuntu 20.04 will reach EOL soon but let’s do it.