Skip to content

Apache DataFusion SQL Query Engine

ARROW-7804: [C++][R] Compile error on macOS 10.11

Neal Richardson421441667f99
diff --git a/dev/tasks/homebrew-formulae/travis.osx.r.yml b/dev/tasks/homebrew-formulae/travis.osx.r.yml
index 582370d341..d8e06e88fc 100644
--- a/dev/tasks/homebrew-formulae/travis.osx.r.yml
+++ b/dev/tasks/homebrew-formulae/travis.osx.r.yml
@@ -15,10 +15,13 @@
# limitations under the License.
os: osx
+# CRAN builds on macOS 10.11, so make sure that's what we're testing
+osx_image: xcode7.3
language: r
cache: packages
r: {{ r_version }}
fortran: false
+latex: false
cran: https://mac.r-project.org
# don't build twice
@@ -37,12 +40,16 @@ before_install:
- git -C arrow fetch -t {{ arrow.remote }} {{ arrow.branch }}
- if [ $CROSSBOW_USE_COMMIT_ID = true ]; then git -C arrow checkout {{ arrow.head }}; else git -C arrow checkout FETCH_HEAD; fi
- cd arrow/r
-# This script used to be inside r/tools/ but was moved
+# Put the formula inside r/ so that it's included in the package build
- cp ../dev/tasks/homebrew-formulae/autobrew/apache-arrow.rb tools/apache-arrow.rb
+before_script:
+# Hack for old macOS (10.11)
+# See https://travis-ci.community/t/library-developer-commandlinetools-sdks-macosx-sdk-missing-on-el-capitain/3213/3
+- sed -i.bak 's/-isysroot /-I/g' $(R RHOME)/etc/Makeconf
script:
-- travis_wait R CMD build .
+- travis_wait R CMD build --no-build-vignettes .
# Note that this is not --as-cran. CRAN doesn't do macOS checks --as-cran
-- travis_wait R CMD check arrow_*.tar.gz --install-args="--build"
+- travis_wait R CMD check arrow_*.tar.gz --no-manual --ignore-vignettes --install-args="--build"
after_failure:
# If there's a build failure, it's probably in this log
- cat arrow.Rcheck/00install.out