[
https://issues.apache.org/jira/browse/ARROW-5470?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16853274#comment-16853274
]
Neal Richardson commented on ARROW-5470:
----------------------------------------
Using xenial fixes the compilation error, but it breaks R by removing
libgfortran. After successfully building the C++ library and moving on to
installing R packages, R itself fails to start:
{code:java}
$ Rscript -e 'install.packages(c("remotes"));if (!all(c("remotes") %in%
installed.packages())) { q(status = 1, save = "no")}'
Error: package or namespace load failed for ‘stats’ in dyn.load(file, DLLpath =
DLLpath, ...):
unable to load shared object
'/home/travis/R-bin/lib/R/library/stats/libs/stats.so':
libgfortran.so.3: cannot open shared object file: No such file or directory
{code}
I confirmed that R is not broken before we build the C++ library:
[https://github.com/nealrichardson/arrow/commit/7777d27d374488d500d329c67a58256e80d473b8]
It appears that on Xenial, `sudo apt-get install -q clang-7 clang-format-7
clang-tidy-7` removes fortran
[https://travis-ci.org/nealrichardson/arrow/jobs/539817605#L717-L750]:
{code:java}
The following packages will be REMOVED:
gfortran gfortran-5 libblas-dev libgfortran-5-dev libgfortran3 liblapack-dev
liblapack3
{code}
while on Trusty, no packages are removed:
[https://travis-ci.org/apache/arrow/jobs/538795366#L1061-L1093]
> [CI] C++ local filesystem patch breaks Travis R job
> ---------------------------------------------------
>
> Key: ARROW-5470
> URL: https://issues.apache.org/jira/browse/ARROW-5470
> Project: Apache Arrow
> Issue Type: Improvement
> Reporter: Neal Richardson
> Assignee: Neal Richardson
> Priority: Blocker
> Fix For: 0.14.0
>
>
> https://issues.apache.org/jira/browse/ARROW-3144 changed a C++ API and
> required downstream bindings to be updated. Romain wasn't immediately
> available to update R, so we marked the R job on Travis as an "allowed
> failure". That failure looked like this:
> [https://travis-ci.org/apache/arrow/jobs/538795366#L3711-L3830] The C++
> library built fine, but then the R package failed to build because it didn't
> line up with what's in C++.
> Then, the C++ local file system patch
> (https://issues.apache.org/jira/browse/ARROW-5378) landed. Travis passed,
> though we were still ignoring the R build, which continued to fail. But, it
> started failing differently. Here's what the R build failure looks like on
> that PR, and on master since then:
> [https://travis-ci.org/apache/arrow/jobs/539207245#L2520-L2640] The C++
> library is failing to build, so we're not even getting to the expected R
> failure.
> For reference, the "C++ & GLib & Ruby w/ gcc 5.4" build has the most similar
> setup to the R build, and it's still passing. One difference between the two
> jobs is that the GLib one has `ARROW_TRAVIS_USE_VENDORED_BOOST=1`, which
> sounds related to some open R issues, and `boost::filesystem` appears all
> over the error in the R job.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)