psadil commented on issue #39206:
URL: https://github.com/apache/arrow/issues/39206#issuecomment-1853230910

   FWIW, I'm encountering the same with versions newer than 13.0.0.1
   
   ### 14.0.0.2 (fails)
   ``` r
   install.packages('arrow'); library('arrow')
   #> Installing package into 
'/Users/psadil/git/arrow/renv/library/R-4.2/aarch64-apple-darwin20'
   #> (as 'lib' is unspecified)
   #> 
   #> The downloaded binary packages are in
   #>  
/var/folders/v_/kcpb096s1m3_37ctfd2sp2xm0000gn/T//Rtmp9NnRRv/downloaded_packages
   #> Error: package or namespace load failed for 'arrow' in dyn.load(file, 
DLLpath = DLLpath, ...):
   #>  unable to load shared object 
'/Users/psadil/git/arrow/renv/library/R-4.2/aarch64-apple-darwin20/arrow/libs/arrow.so':
   #>   
dlopen(/Users/psadil/git/arrow/renv/library/R-4.2/aarch64-apple-darwin20/arrow/libs/arrow.so,
 0x0006): symbol not found in flat namespace 
'__ZN5arrow12ArrayBuilder12AppendScalarERKNS_6ScalarEx'
   ```
   
   <sup>Created on 2023-12-12 with [reprex 
v2.0.2](https://reprex.tidyverse.org)</sup>
   
   ### 14.0.0.1 (fails)
   ``` r
   remotes::install_version("arrow", "14.0.0.1")
   #> Downloading package from url: 
https://packagemanager.posit.co/cran/latest/src/contrib/Archive/arrow/arrow_14.0.0.1.tar.gz
   #> Installing package into 
'/Users/psadil/git/arrow/renv/library/R-4.2/aarch64-apple-darwin20'
   #> (as 'lib' is unspecified)
   #> Warning in i.p(...): installation of package
   #> 
'/var/folders/v_/kcpb096s1m3_37ctfd2sp2xm0000gn/T//RtmpFv7S6a/remotes13556236975bd/arrow'
   #> had non-zero exit status
   ```
   
   
   <details style="margin-bottom:10px;">
   <summary>
   Longer Install Log
   </summary>
   
   ```r
   > remotes::install_version('arrow', "14.0.0.1")
   Downloading package from url: 
https://packagemanager.posit.co/cran/latest/src/contrib/Archive/arrow/arrow_14.0.0.1.tar.gz
   Installing package into 
‘/Users/psadil/git/arrow/renv/library/R-4.2/aarch64-apple-darwin20’
   (as ‘lib’ is unspecified)
   * installing *source* package ‘arrow’ ...
   ** package ‘arrow’ successfully unpacked and MD5 sums checked
   ** using staged installation
   *** OpenSSL not found
   *** Unable to find libcurl and openssl
   *** Found local C++ source: 'tools/cpp'
   *** Building libarrow from source
       For build options and troubleshooting, see the install guide:
       https://arrow.apache.org/docs/r/articles/install.html
   **** cmake
   **** pkg-config not installed, setting ARROW_DEPENDENCY_SOURCE=BUNDLED
   ****  S3/GCS  support  requires libcurl-devel (rpm) or libcurl4-openssl-dev 
(deb) ; building with  ARROW_S3=OFF and ARROW_GCS=OFF 
   **** arrow 
   **** Error building Arrow C++.
   **** Printing contents of build log because the build failed while 
ARROW_R_DEV was set to FALSE
   ++ pwd
   + : 
/private/var/folders/v_/kcpb096s1m3_37ctfd2sp2xm0000gn/T/RtmpaBXKm8/remotes1351f3d741409/arrow
   + : tools/cpp
   + : 
/var/folders/v_/kcpb096s1m3_37ctfd2sp2xm0000gn/T//RtmpjgVixX/file138d4f47f4aa
   + : libarrow/arrow-14.0.0
   + : 
/var/folders/v_/kcpb096s1m3_37ctfd2sp2xm0000gn/T//RtmpjgVixX/file138d4449acdf6/cmake-3.26.4-macos-universal/bin/cmake
   ++ cd tools/cpp
   ++ pwd
   + 
SOURCE_DIR=/private/var/folders/v_/kcpb096s1m3_37ctfd2sp2xm0000gn/T/RtmpaBXKm8/remotes1351f3d741409/arrow/tools/cpp
   ++ mkdir -p libarrow/arrow-14.0.0
   ++ cd libarrow/arrow-14.0.0
   ++ pwd
   + 
DEST_DIR=/private/var/folders/v_/kcpb096s1m3_37ctfd2sp2xm0000gn/T/RtmpaBXKm8/remotes1351f3d741409/arrow/libarrow/arrow-14.0.0
   + '[' 2 = '' ']'
   + '[' false '!=' '' ']'
   ++ echo false
   ++ tr '[:upper:]' '[:lower:]'
   + LIBARROW_MINIMAL=false
   + '[' false = false ']'
   + ARROW_DEFAULT_PARAM=ON
   + case "$CXX" in
   + mkdir -p 
/var/folders/v_/kcpb096s1m3_37ctfd2sp2xm0000gn/T//RtmpjgVixX/file138d4f47f4aa
   + pushd 
/var/folders/v_/kcpb096s1m3_37ctfd2sp2xm0000gn/T//RtmpjgVixX/file138d4f47f4aa
   /var/folders/v_/kcpb096s1m3_37ctfd2sp2xm0000gn/T/RtmpjgVixX/file138d4f47f4aa 
/private/var/folders/v_/kcpb096s1m3_37ctfd2sp2xm0000gn/T/RtmpaBXKm8/remotes1351f3d741409/arrow
   + 
/var/folders/v_/kcpb096s1m3_37ctfd2sp2xm0000gn/T//RtmpjgVixX/file138d4449acdf6/cmake-3.26.4-macos-universal/bin/cmake
 -DARROW_BOOST_USE_SHARED=OFF -DARROW_BUILD_TESTS=OFF -DARROW_BUILD_SHARED=OFF 
-DARROW_BUILD_STATIC=ON -DARROW_ACERO=ON -DARROW_COMPUTE=ON -DARROW_CSV=ON 
-DARROW_DATASET=ON -DARROW_DEPENDENCY_SOURCE=BUNDLED -DAWSSDK_SOURCE= 
-DARROW_FILESYSTEM=ON -DARROW_GCS=OFF -DARROW_JEMALLOC=ON -DARROW_MIMALLOC=ON 
-DARROW_JSON=ON -DARROW_PARQUET=ON -DARROW_S3=OFF -DARROW_WITH_BROTLI=ON 
-DARROW_WITH_BZ2=ON -DARROW_WITH_LZ4=ON -DARROW_WITH_RE2=ON 
-DARROW_WITH_SNAPPY=ON -DARROW_WITH_UTF8PROC=ON -DARROW_WITH_ZLIB=ON 
-DARROW_WITH_ZSTD=ON -DARROW_VERBOSE_THIRDPARTY_BUILD=OFF 
-DCMAKE_BUILD_TYPE=Release -DCMAKE_FIND_DEBUG_MODE=OFF 
-DCMAKE_INSTALL_LIBDIR=lib 
-DCMAKE_INSTALL_PREFIX=/private/var/folders/v_/kcpb096s1m3_37ctfd2sp2xm0000gn/T/RtmpaBXKm8/remotes1351f3d741409/arrow/libarrow/arrow-14.0.0
 -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON 
-DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON -DCMAKE_UN
 ITY_BUILD=OFF -Dxsimd_SOURCE= -Dzstd_SOURCE= -G 'Unix Makefiles' 
/private/var/folders/v_/kcpb096s1m3_37ctfd2sp2xm0000gn/T/RtmpaBXKm8/remotes1351f3d741409/arrow/tools/cpp
   inst/build_arrow_static.sh: line 67: 
/var/folders/v_/kcpb096s1m3_37ctfd2sp2xm0000gn/T//RtmpjgVixX/file138d4449acdf6/cmake-3.26.4-macos-universal/bin/cmake:
 No such file or directory
   **** Complete build log may still be present at 
/var/folders/v_/kcpb096s1m3_37ctfd2sp2xm0000gn/T//RtmpjgVixX/file138d4584a69f5.log
 
   Warning messages:
   1: In rep(yes, length.out = len) : 'x' is NULL so the result will be NULL
   2: In system(cmake_cmd, ignore.stdout = TRUE, ignore.stderr = TRUE) :
     error in running command
   ------------------------- NOTE ---------------------------
   There was an issue preparing the Arrow C++ libraries.
   See https://arrow.apache.org/docs/r/articles/install.html
   ----------------------------------------------------------
   
   Test compile error: <stdin>:1:10: fatal error: 'arrow/api.h' file not found
   #include <arrow/api.h>
            ^~~~~~~~~~~~~
   1 error generated.
   Failing compile command: clang++ -arch arm64 -E -I/opt/R/arm64/include  
-falign-functions=64 -Wall -g -O2 -std=gnu++17 -xc++ -
   PKG_CFLAGS=
   PKG_LIBS=
   ERROR: configuration failed for package ‘arrow’
   * removing 
‘/Users/psadil/git/arrow/renv/library/R-4.2/aarch64-apple-darwin20/arrow’
   * restoring previous 
‘/Users/psadil/git/arrow/renv/library/R-4.2/aarch64-apple-darwin20/arrow’
   Warning message:
   In i.p(...) :
     installation of package 
‘/var/folders/v_/kcpb096s1m3_37ctfd2sp2xm0000gn/T//RtmpaBXKm8/remotes1351f3d741409/arrow’
 had non-zero exit status
   ```
   </details>
   
   
   
   <sup>Created on 2023-12-12 with [reprex 
v2.0.2](https://reprex.tidyverse.org)</sup>
   
   ### 13.0.0.1 (works)
   ``` r
   remotes::install_version('arrow', "13.0.0.1")
   #> Downloading package from url: 
https://packagemanager.posit.co/cran/latest/src/contrib/Archive/arrow/arrow_13.0.0.1.tar.gz
   #> Installing package into 
'/Users/psadil/git/arrow/renv/library/R-4.2/aarch64-apple-darwin20'
   #> (as 'lib' is unspecified)
   ```
   
   <sup>Created on 2023-12-12 with [reprex 
v2.0.2](https://reprex.tidyverse.org)</sup>
   
   <details style="margin-bottom:10px;">
   <summary>
   Session info
   </summary>
   
   ``` r
   sessionInfo()
   #> R version 4.2.3 (2023-03-15)
   #> Platform: aarch64-apple-darwin20 (64-bit)
   #> Running under: macOS 14.1.1
   #> 
   #> Matrix products: default
   #> BLAS:   
/Library/Frameworks/R.framework/Versions/4.2-arm64/Resources/lib/libRblas.0.dylib
   #> LAPACK: 
/Library/Frameworks/R.framework/Versions/4.2-arm64/Resources/lib/libRlapack.dylib
   #> 
   #> locale:
   #> [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
   #> 
   #> attached base packages:
   #> [1] stats     graphics  grDevices utils     datasets  methods   base     
   #> 
   #> loaded via a namespace (and not attached):
   #>  [1] digest_0.6.33     withr_2.5.2       R.methodsS3_1.8.2 
lifecycle_1.0.4  
   #>  [5] magrittr_2.0.3    reprex_2.0.2      evaluate_0.23     rlang_1.1.2    
  
   #>  [9] cli_3.6.2         remotes_2.4.2.1   rstudioapi_0.15.0 fs_1.6.3       
  
   #> [13] R.utils_2.12.3    R.oo_1.25.0       vctrs_0.6.5       styler_1.10.2  
  
   #> [17] rmarkdown_2.25    tools_4.2.3       R.cache_0.16.0    glue_1.6.2     
  
   #> [21] purrr_1.0.2       xfun_0.41         yaml_2.3.8        fastmap_1.1.1  
  
   #> [25] compiler_4.2.3    htmltools_0.5.7   knitr_1.45
   ```
   
   </details>
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to