arrow: [R] Unable to install arrow on Fedora40 undefined symbol: _ZTIN6apache6thrift8protocol9TProtocolE
Describe the bug, including details regarding any error messages, version, and platform.
Heya,
Am currently trying to install the latest R CRAN version of arrow but keep getting the following error:
> install.packages("arrow")
Installing package into ‘/home/gowerc/R/x86_64-redhat-linux-gnu-library/4.4’
(as ‘lib’ is unspecified)
trying URL 'https://www.stats.bris.ac.uk/R/src/contrib/arrow_16.1.0.tar.gz'
Content type 'application/x-gzip' length 4439675 bytes (4.2 MB)
==================================================
downloaded 4.2 MB
* installing *source* package ‘arrow’ ...
** package ‘arrow’ successfully unpacked and MD5 sums checked
** using staged installation
*** pkg-config found.
*** Trying Arrow C++ found by pkg-config: /usr
**** Not using: C++ library version (15.0.2): not supported by R package version 16.1.0
*** Found local C++ source: 'tools/cpp'
*** Building libarrow from source
For build options and troubleshooting, see the install guide:
https://arrow.apache.org/docs/r/articles/install.html
**** cmake 3.28.2: /usr/bin/cmake
**** arrow
PKG_CFLAGS=-DUTF8PROC_EXPORTS -I/tmp/RtmpfZTpu0/R.INSTALL37cd0e2a5202/arrow/libarrow/arrow-16.1.0/include -DARROW_STATIC -DPARQUET_STATIC -DARROW_R_WITH_PARQUET -DARROW_R_WITH_DATASET -DARROW_R_WITH_ACERO -DARROW_R_WITH_JSON
PKG_LIBS=-L/tmp/RtmpfZTpu0/R.INSTALL37cd0e2a5202/arrow/libarrow/arrow-16.1.0/lib -lsnappy -llz4 -lutf8proc -larrow_dataset -larrow -larrow_bundled_dependencies -ldl -lparquet -larrow_acero
** libs
using C++ compiler: ‘g++ (GCC) 14.1.1 20240701 (Red Hat 14.1.1-7)’
using C++17
g++ -std=gnu++17 -I"/usr/include/R" -DNDEBUG -DUTF8PROC_EXPORTS -I/tmp/RtmpfZTpu0/R.INSTALL37cd0e2a5202/arrow/libarrow/arrow-16.1.0/include -DARROW_STATIC -DPARQUET_STATIC -DARROW_R_WITH_PARQUET -DARROW_R_WITH_DATASET -DARROW_R_WITH_ACERO -DARROW_R_WITH_JSON -I'/home/gowerc/R/x86_64-redhat-linux-gnu-library/4.4/cpp11/include' -I/usr/local/include -fpic -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -c RTasks.cpp -o RTasks.o
<lots of compiler log skipped>
** building package indices
** testing if installed package can be loaded from temporary location
Error: package or namespace load failed for ‘arrow’ in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/home/gowerc/R/x86_64-redhat-linux-gnu-library/4.4/00LOCK-arrow/00new/arrow/libs/arrow.so':
/home/gowerc/R/x86_64-redhat-linux-gnu-library/4.4/00LOCK-arrow/00new/arrow/libs/arrow.so: undefined symbol: _ZTIN6apache6thrift8protocol9TProtocolE
Error: loading failed
Execution halted
ERROR: loading failed
* removing ‘/home/gowerc/R/x86_64-redhat-linux-gnu-library/4.4/arrow’
The downloaded source packages are in
‘/tmp/RtmpiE3fZa/downloaded_packages’
Warning message:
In install.packages("arrow") :
installation of package ‘arrow’ had non-zero exit status
General Debug Information
> version
_
platform x86_64-redhat-linux-gnu
arch x86_64
os linux-gnu
system x86_64, linux-gnu
status
major 4
minor 4.1
year 2024
month 06
day 14
svn rev 86737
language R
version.string R version 4.4.1 (2024-06-14)
nickname Race for Your Life
> cat /etc/os-release
NAME="Fedora Linux"
VERSION="40 (Workstation Edition)"
ID=fedora
VERSION_ID=40
VERSION_CODENAME=""
PLATFORM_ID="platform:f40"
PRETTY_NAME="Fedora Linux 40 (Workstation Edition)"
ANSI_COLOR="0;38;2;60;110;180"
LOGO=fedora-logo-icon
CPE_NAME="cpe:/o:fedoraproject:fedora:40"
DEFAULT_HOSTNAME="fedora"
HOME_URL="https://fedoraproject.org/"
DOCUMENTATION_URL="https://docs.fedoraproject.org/en-US/fedora/f40/system-administrators-guide/"
SUPPORT_URL="https://ask.fedoraproject.org/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Fedora"
REDHAT_BUGZILLA_PRODUCT_VERSION=40
REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=40
SUPPORT_END=2025-05-13
VARIANT="Workstation Edition"
VARIANT_ID=workstation
Not sure if relevant but I had installed the parquet dev lib from dnf for separate project:
> sudo dnf info parquet-libs-devel
Last metadata expiration check: 2:39:56 ago on Fri 19 Jul 2024 13:27:15 BST.
Installed Packages
Name : parquet-libs-devel
Version : 15.0.2
Release : 3.fc40
Architecture : x86_64
Size : 489 k
Source : libarrow-15.0.2-3.fc40.src.rpm
Repository : @System
From repo : fedora
Summary : Libraries and header files for Apache Parquet C++
URL : https://arrow.apache.org/
License : Apache-2.0
Description : Libraries and header files for Apache Parquet C++.
Component(s)
R
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 20 (13 by maintainers)
@assignUser - Just to say that running the following (as you suggested) worked for me.
Thank you !!