duckdb: [R] Package installation on aarch64 fails for v0.3.2
What happens?
R Package installation on aarch64 fails for v3.0.2: duckdb-0.3.2_aarch64_install-log.txt
To Reproduce (on aarch64)
- Shell:
docker run --rm -ti registry.gitlab.b-data.ch/r/r-ver - R:
install.packages("duckdb")
Environment (please complete the following information):
- OS: Debian GNU/Linux 11 (bullseye)
- DuckDB Version: 0.3.2
- DuckDB Client: R
> sessionInfo()
R version 4.1.2 (2021-11-01)
Platform: aarch64-unknown-linux-gnu (64-bit)
Running under: Debian GNU/Linux 11 (bullseye)
Matrix products: default
BLAS/LAPACK: /usr/lib/aarch64-linux-gnu/openblas-pthread/libopenblasp-r0.3.13.so
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
[3] LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8
[7] LC_PAPER=en_US.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] compiler_4.1.2
Before Submitting
- Have you tried this on the latest
masterbranch?
- Python:
pip install duckdb --upgrade --pre - R:
install.packages("https://github.com/duckdb/duckdb/releases/download/master-builds/duckdb_r_src.tar.gz", repos = NULL) - Other Platforms: You can find binaries here or compile from source.
đ R Package successfully installs on aarch64 for branch master: duckdb-master_aarch64_install-log.txt
- Have you tried the steps to reproduce? Do they include all relevant data and configuration? Does the issue you report still appear there?
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 1
- Comments: 26 (6 by maintainers)
Will be fixed with the next minor release of R (
4.2.24.3.0^1) as*PICFLAGSare nowwill be set to-fPICfor aarch64.Cross reference: https://bugs.r-project.org/show_bug.cgi?id=18326
Thanks for tagging me in this thread â wonât claim I read every one of your many messages in detail. The use of
-fpicvs-fPICis something governed by Râs ownconfigurewhich Kurt Hornik looks after who is generally quite responsive. We had a recent bug report against the R package where an update was needed for âalphaâ, the patch is still applied in 4.1.3 but has been added to r-devel after we got it and forwarded it. So if this is a Debian-on-aarch issue in general, it should bite you in more packages than justduckdb. @hannes is quite right that he is bystander here: an R package just âreceivesâ these flags. You could test this locally by editing/etc/R/Makeconfon the failing system and see if it helps.[ I have been meaning to turn LTO on as well but am a little fearful that we then end up with lots of reports like this. So so far I just follow along to what R Core and Debian default. ]
Simon Urbanek, 2022-04-27 09:59:44 UTC
â https://bugs.r-project.org/show_bug.cgi?id=18326#c14
(Just for completeness, the Debian packages does nothing âopionionatedâ itself here. So if on a particular platform we feel a
-fpicneeds to be a-fPIC(or vice versa) it is really upstream we need to talk to. I can (and have) test-drive a patch before talking about it to upstream, but I donât have the hardware platform so at the end of the day the easiest / cleanest is just for for @benz0li to locally modify his setup, test that everything works and then propose something. Now, we should probably get out of this thread here as it all is getting a wee bit tangential forduckdb.)Error when building v0.3.3 from source:
By the way, the same error when building v0.3.2 from source.
@eddelbuettel I donât think the R package for Debian on aarch64 needs to be changed. The following 284 packages (including duckdb-0.3.1) build fine with
*PICFLAGS = -fpic: packages.csvFYI @eitsupi for future
linux/arm64/v8builds of https://github.com/rocker-org/rocker-versioned2. I currently use the following workaround when building onaarch64:With the following set in
~/.R/Makevarsthe package builds successfully:Thanks for all the feedback.
Well yes, thatâs the problem then. As the compile log says, this flag should be
-fPICinstead. But we donât control that, whoever configures the R installation does.Thatâs very odd there were only minute changesâŚ