Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[R] Improve R docs on how to fix library version mismatch #22434

Closed
asfimport opened this issue Jul 24, 2019 · 5 comments
Closed

[R] Improve R docs on how to fix library version mismatch #22434

asfimport opened this issue Jul 24, 2019 · 5 comments
Assignees
Milestone

Comments

@asfimport
Copy link

hi there,

when trying to build the R wrapper using 

remotes::install_github("apache/arrow", subdir = "r")

I hit the following error:

Found pkg-config cflags and libs!
 PKG_CFLAGS=-DNDEBUG -DARROW_R_WITH_ARROW
 PKG_LIBS=-larrow -lparquet** libsg++ -std=gnu++11 -I"/usr/share/R/include" -DNDEBUG -DNDEBUG -DARROW_R_WITH_ARROW -I"/usr/lib/R/site-library/Rcpp/include" -fvisibility=hidden -fpic -g -O2 -fdebug-prefix-map=/build/r-base-VjHo9C/r-base-3.6.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c array.cpp -o array.o
 g++ -std=gnu++11 -I"/usr/share/R/include" -DNDEBUG -DNDEBUG -DARROW_R_WITH_ARROW -I"/usr/lib/R/site-library/Rcpp/include" -fvisibility=hidden -fpic -g -O2 -fdebug-prefix-map=/build/r-base-VjHo9C/r-base-3.6.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c array_to_vector.cpp -o arrayto_vector.oarrayto_vector.cpp: In function 'Rcpp::List Table_to_dataframe(const std::shared_ptr<arrow::Table>&, bool)':
 array__to_vector.cpp:819:65: error: 'using element_type = class arrow::Column {aka class arrow::Column}' has no member named 'chunks'
 converters[i] = arrow::r::Converter::Make(table->column->chunks());
 ^~~~~~array__to_vector.cpp:820:23: error: 'using element_type = class arrow::Table {aka class arrow::Table}' has no member named 'field'
 names[i] = table->field->name();
 ^~~~~/usr/lib/R/etc/Makeconf:176: recipe for target 'array__to_vector.o' failedmake: *** [array__to_vector.o] Error 1ERROR: compilation failed for package 'arrow'* removing '/home/kchia/R/x86_64-pc-linux-gnu-library/3.6/arrow'Error: Failed to install 'arrow' from GitHub:
 (converted from warning) installation of package '/tmp/RtmpfYJZFa/file33fc6aee0ae6/arrow_0.14.0.9000.tar.gz' had non-zero exit status

Environment: > sessionInfo()
R version 3.6.0 (2019-04-26)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 18.04.2 LTS
Reporter: kohleth
Assignee: Neal Richardson / @nealrichardson

PRs and other links:

Note: This issue was originally created as ARROW-6029. Please see the migration documentation for further details.

@asfimport
Copy link
Author

Neal Richardson / @nealrichardson:
How did you install the C++ library? This looks like a mismatch between the R and C++ library versions. One R-only solution would be to install_github with a specific ref, a release tag like "apache-arrow-0.14.1", that matches the C++ library version you have. 

@asfimport
Copy link
Author

Wes McKinney / @wesm:
Agreed with Neal, you need to ensure that the installed C++ library version matches the R package version being installed. The git version of the R library includes features not found in the 0.14.0/0.14.1 C++ library

@asfimport
Copy link
Author

Neal Richardson / @nealrichardson:
I'll use this to improve the R docs on how to interpret/fix this.

@asfimport
Copy link
Author

Francois Saint-Jacques / @fsaintjacques:
Issue resolved by pull request 4946
#4946

@asfimport
Copy link
Author

kohleth:
Thanks! it is indeed the version mismatch.

@asfimport asfimport added this to the 0.15.0 milestone Jan 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants