thisisnic commented on pull request #10404:
URL: https://github.com/apache/arrow/pull/10404#issuecomment-871730306


   I'm super lost trying to work out what to do with this.  I've tried 
installing a version of the R package which has the build flags changed in the 
case of Raspberry Pi for the R package.  I've created a .tar.gz file and the 
installed it via `install.packages("arrow.tar.gz", repos = NULL, type = 
"source")`.  This results in the successful installation of the R package, but 
no C++ installation - so the atomic issue is fixed I guess.
   
   The lack of successful C++ installation is due to the code in 
`tools/nixlibs.R` which uses the R package version to try to install the 
correct released version of Arrow and fails if it ends in `.9000`, which is the 
version number in the dev R package.
   
   I've tried taking the released version of Arrow 4.0.1 and just updating the 
`configure` script to include the above lines, and the ones I added to add the 
`-latomic` flag.  This successfully install the R package *and* retrieves the 
C++ package (I am waiting to see if it installs it properly - it's currently 
building but it'll take a while).
   
   I have no idea how I'd add in the change from 
https://github.com/apache/arrow/pull/10626 given the current setup, unless I 
suppose I was manually installing the C++ libraries myself and then setting up 
the R install to look at these.
   
   It's been a while since I looked at it, but I'm pretty sure the change I 
made to add the `-latomic` flag to the R build worked fine previously with an 
existing Arrow C++ installation.
   
   I'm a bit lost in the above conversation, but it sounds like what is going 
on here is:
   
   - the atomic library being missing is the main focus here.  It can be 
achieved via R _but_ the correct way to do it is via the changes in the PR 
mentioned above
   - I need to test out whether the changes in the PR mentioned above work to 
install things on the Pi (_without_ the changes I made, as these are supposed 
to be _instead_ of those not _as well as_ those)
   - so I need to build the Arrow C++ library with the changes suggested above 
by @kou , and all being well, the R package should the install successfully 
without me adding the -latomic flag


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscr...@arrow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to