You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "sthau (via GitHub)" <gi...@apache.org> on 2024/04/05 22:50:51 UTC

[I] R installation failing due to issue with C++ libraries [arrow]

sthau opened a new issue, #41046:
URL: https://github.com/apache/arrow/issues/41046

   ### Describe the usage question you have. Please include as many useful details as  possible.
   
   
   Hi! I'm trying to install the `arrow` package. When I initially installed it, it compiled as expected, but gave me the following when I ran `arrow_info()`:
   ```
   Arrow package version: 15.0.1
   
   Capabilities:
                  
   acero      TRUE
   dataset   FALSE
   substrait FALSE
   parquet   FALSE
   json      FALSE
   s3        FALSE
   gcs       FALSE
   utf8proc  FALSE
   re2       FALSE
   snappy    FALSE
   gzip      FALSE
   brotli    FALSE
   zstd      FALSE
   lz4       FALSE
   lz4_frame FALSE
   lzo       FALSE
   bz2       FALSE
   jemalloc  FALSE
   mimalloc  FALSE
   
   Memory:
                    
   Allocator  system
   Current   0 bytes
   Max       0 bytes
   
   Runtime:
                           
   SIMD Level          none
   Detected SIMD Level none
   
   Build:
                                       
   C++ Library Version           15.0.1
   C++ Compiler              AppleClang
   C++ Compiler Version 14.0.0.14000029
   ```
   I want to use the package to work with Parquet files, so this was clearly an issue. I tried to update by running `install_arrow(verbose = TRUE)`, and got the following: 
   ```
    trying URL 'https://cran.rstudio.com/src/contrib/arrow_15.0.1.tar.gz'
   Content type 'application/x-gzip' length 4373377 bytes (4.2 MB)
   ==================================================
   downloaded 4.2 MB
   
   * installing *source* package ‘arrow’ ...
   ** package ‘arrow’ successfully unpacked and MD5 sums checked
   ** using staged installation
   *** pkg-config found.
   *** Found libcurl and OpenSSL >= 3.0.0
   trying URL 'https://apache.jfrog.io/artifactory/arrow/r/15.0.1/libarrow/bin/darwin-arm64-openssl-3.0/arrow-15.0.1.zip'
   Content type 'application/zip' length 23042127 bytes (22.0 MB)
   ==================================================
   downloaded 22.0 MB
   
   *** Checksum validated successfully for libarrow
   *** Successfully retrieved libarrow (darwin-arm64-openssl-3.0)
   ------------------------- NOTE ---------------------------
   There was an issue preparing the Arrow C++ libraries.
   See https://arrow.apache.org/docs/r/articles/install.html
   ----------------------------------------------------------
   
   Test compile error: In file included from <stdin>:1:
   In file included from /private/var/folders/nr/7h_x37y5423fq36fcygb88d80000gn/T/RtmpaaNMdQ/R.INSTALL715b6f75d514/arrow/libarrow/arrow-15.0.1/include/arrow/api.h:22:
   In file included from /private/var/folders/nr/7h_x37y5423fq36fcygb88d80000gn/T/RtmpaaNMdQ/R.INSTALL715b6f75d514/arrow/libarrow/arrow-15.0.1/include/arrow/array.h:41:
   In file included from /private/var/folders/nr/7h_x37y5423fq36fcygb88d80000gn/T/RtmpaaNMdQ/R.INSTALL715b6f75d514/arrow/libarrow/arrow-15.0.1/include/arrow/array/array_base.h:20:
   /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cstdint:149:5: error: <cstdint> tried including <stdint.h> but didn't find libc++'s <stdint.h> header.           This usually means that your header search paths are not configured properly.           The header search paths should contain the C++ Standard Library headers before           any C Standard Library, and you are probably using compiler flags that make that           not be the case.
   #   error <cstdint> tried including <stdint.h> but didn't find libc++'s <stdint.h> header. \
       ^
   In file included from <stdin>:1:
   In file included from /private/var/folders/nr/7h_x37y5423fq36fcygb88d80000gn/T/RtmpaaNMdQ/R.INSTALL715b6f75d514/arrow/libarrow/arrow-15.0.1/include/arrow/api.h:22:
   In file included from /private/var/folders/nr/7h_x37y5423fq36fcygb88d80000gn/T/RtmpaaNMdQ/R.INSTALL715b6f75d514/arrow/libarrow/arrow-15.0.1/include/arrow/array.h:41:
   In file included from /private/var/folders/nr/7h_x37y5423fq36fcygb88d80000gn/T/RtmpaaNMdQ/R.INSTALL715b6f75d514/arrow/libarrow/arrow-15.0.1/include/arrow/array/array_base.h:22:
   In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/memory:883:
   In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/align.h:13:
   /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cstddef:46:5: error: <cstddef> tried including <stddef.h> but didn't find libc++'s <stddef.h> header.           This usually means that your header search paths are not configured properly.           The header search paths should contain the C++ Standard Library headers before           any C Standard Library, and you are probably using compiler flags that make that           not be the case.
   #   error <cstddef> tried including <stddef.h> but didn't find libc++'s <stddef.h> header. \
       ^
   In file included from <stdin>:1:
   In file included from /private/var/folders/nr/7h_x37y5423fq36fcygb88d80000gn/T/RtmpaaNMdQ/R.INSTALL715b6f75d514/arrow/libarrow/arrow-15.0.1/include/arrow/api.h:22:
   In file included from /private/var/folders/nr/7h_x37y5423fq36fcygb88d80000gn/T/RtmpaaNMdQ/R.INSTALL715b6f75d514/arrow/libarrow/arrow-15.0.1/include/arrow/array.h:41:
   In file included from /private/var/folders/nr/7h_x37y5423fq36fcygb88d80000gn/T/RtmpaaNMdQ/R.INSTALL715b6f75d514/arrow/libarrow/arrow-15.0.1/include/arrow/array/array_base.h:22:
   In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/memory:884:
   In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/allocate_at_least.h:13:
   In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/allocator_traits.h:14:
   In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/construct_at.h:23:
   In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/new:99:
   /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cstdlib:90:5: error: <cstdlib> tried including <stdlib.h> but didn't find libc++'s <stdlib.h> header.           This usually means that your header search paths are not configured properly.           The header search paths should contain the C++ Standard Library headers before           any C Standard Library, and you are probably using compiler flags that make that           not be the case.
   #   error <cstdlib> tried including <stdlib.h> but didn't find libc++'s <stdlib.h> header. \
       ^
   In file included from <stdin>:1:
   In file included from /private/var/folders/nr/7h_x37y5423fq36fcygb88d80000gn/T/RtmpaaNMdQ/R.INSTALL715b6f75d514/arrow/libarrow/arrow-15.0.1/include/arrow/api.h:22:
   In file included from /private/var/folders/nr/7h_x37y5423fq36fcygb88d80000gn/T/RtmpaaNMdQ/R.INSTALL715b6f75d514/arrow/libarrow/arrow-15.0.1/include/arrow/array.h:41:
   In file included from /private/var/folders/nr/7h_x37y5423fq36fcygb88d80000gn/T/RtmpaaNMdQ/R.INSTALL715b6f75d514/arrow/libarrow/arrow-15.0.1/include/arrow/array/array_base.h:22:
   In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/memory:898:
   In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/shared_ptr.h:31:
   In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/unique_ptr.h:17:
   In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/hash.h:28:
   /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cstring:66:5: error: <cstring> tried including <string.h> but didn't find libc++'s <string.h> header.           This usually means that your header search paths are not configured properly.           The header search paths should contain the C++ Standard Library headers before           any C Standard Library, and you are probably using compiler flags that make that           not be the case.
   #   error <cstring> tried including <string.h> but didn't find libc++'s <string.h> header. \
       ^
   In file included from <stdin>:1:
   In file included from /private/var/folders/nr/7h_x37y5423fq36fcygb88d80000gn/T/RtmpaaNMdQ/R.INSTALL715b6f75d514/arrow/libarrow/arrow-15.0.1/include/arrow/api.h:22:
   In file included from /private/var/folders/nr/7h_x37y5423fq36fcygb88d80000gn/T/RtmpaaNMdQ/R.INSTALL715b6f75d514/arrow/libarrow/arrow-15.0.1/include/arrow/array.h:41:
   In file included from /private/var/folders/nr/7h_x37y5423fq36fcygb88d80000gn/T/RtmpaaNMdQ/R.INSTALL715b6f75d514/arrow/libarrow/arrow-15.0.1/include/arrow/array/array_base.h:22:
   In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/memory:903:
   In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/uses_allocator_construction.h:20:
   In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/tuple:268:
   In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/compare:145:
   In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__compare/compare_partial_order_fallback.h:13:
   In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__compare/partial_order.h:14:
   In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__compare/weak_order.h:14:
   In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__compare/strong_order.h:20:
   /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:321:5: error: <cmath> tried including <math.h> but didn't find libc++'s <math.h> header.           This usually means that your header search paths are not configured properly.           The header search paths should contain the C++ Standard Library headers before           any C Standard Library, and you are probably using compiler flags that make that           not be the case.
   #   error <cmath> tried including <math.h> but didn't find libc++'s <math.h> header. \
       ^
   In file included from <stdin>:1:
   In file included from /private/var/folders/nr/7h_x37y5423fq36fcygb88d80000gn/T/RtmpaaNMdQ/R.INSTALL715b6f75d514/arrow/libarrow/arrow-15.0.1/include/arrow/api.h:22:
   In file included from /private/var/folders/nr/7h_x37y5423fq36fcygb88d80000gn/T/RtmpaaNMdQ/R.INSTALL715b6f75d514/arrow/libarrow/arrow-15.0.1/include/arrow/array.h:41:
   In file included from /private/var/folders/nr/7h_x37y5423fq36fcygb88d80000gn/T/RtmpaaNMdQ/R.INSTALL715b6f75d514/arrow/libarrow/arrow-15.0.1/include/arrow/array/array_base.h:22:
   In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/memory:916:
   In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/atomic:522:
   In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__atomic/aliases.h:12:
   In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__atomic/atomic.h:12:
   In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__atomic/atomic_base.h:12:
   In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__atomic/atomic_sync.h:16:
   In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__chrono/duration.h:21:
   In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/ratio:87:
   /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/climits:46:5: error: <climits> tried including <limits.h> but didn't find libc++'s <limits.h> header.           This usually means that your header search paths are not configured properly.           The header search paths should contain the C++ Standard Library headers before           any C Standard Library, and you are probably using compiler flags that make that           not be the case.
   #   error <climits> tried including <limits.h> but didn't find libc++'s <limits.h> header. \
       ^
   In file included from <stdin>:1:
   In file included from /private/var/folders/nr/7h_x37y5423fq36fcygb88d80000gn/T/RtmpaaNMdQ/R.INSTALL715b6f75d514/arrow/libarrow/arrow-15.0.1/include/arrow/api.h:22:
   In file included from /private/var/folders/nr/7h_x37y5423fq36fcygb88d80000gn/T/RtmpaaNMdQ/R.INSTALL715b6f75d514/arrow/libarrow/arrow-15.0.1/include/arrow/array.h:41:
   In file included from /private/var/folders/nr/7h_x37y5423fq36fcygb88d80000gn/T/RtmpaaNMdQ/R.INSTALL715b6f75d514/arrow/libarrow/arrow-15.0.1/include/arrow/array/array_base.h:23:
   In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/string:569:
   In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__algorithm/remove.h:12:
   In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__algorithm/find.h:21:
   In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cwchar:112:
   In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cwctype:54:
   /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cctype:43:5: error: <cctype> tried including <ctype.h> but didn't find libc++'s <ctype.h> header.           This usually means that your header search paths are not configured properly.            The header search paths should contain the C++ Standard Library headers before           any C Standard Library.
   #   error <cctype> tried including <ctype.h> but didn't find libc++'s <ctype.h> header. \
       ^
   In file included from <stdin>:1:
   In file included from /private/var/folders/nr/7h_x37y5423fq36fcygb88d80000gn/T/RtmpaaNMdQ/R.INSTALL715b6f75d514/arrow/libarrow/arrow-15.0.1/include/arrow/api.h:22:
   In file included from /private/var/folders/nr/7h_x37y5423fq36fcygb88d80000gn/T/RtmpaaNMdQ/R.INSTALL715b6f75d514/arrow/libarrow/arrow-15.0.1/include/arrow/array.h:41:
   In file included from /private/var/folders/nr/7h_x37y5423fq36fcygb88d80000gn/T/RtmpaaNMdQ/R.INSTALL715b6f75d514/arrow/libarrow/arrow-15.0.1/include/arrow/array/array_base.h:23:
   In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/string:569:
   In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__algorithm/remove.h:12:
   In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__algorithm/find.h:21:
   In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cwchar:112:
   /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cwctype:59:5: error: <cwctype> tried including <wctype.h> but didn't find libc++'s <wctype.h> header.           This usually means that your header search paths are not configured properly.           The header search paths should contain the C++ Standard Library headers before           any C Standard Library, and you are probably using compiler flags that make that           not be the case.
   #   error <cwctype> tried including <wctype.h> but didn't find libc++'s <wctype.h> header. \
       ^
   In file included from <stdin>:1:
   In file included from /private/var/folders/nr/7h_x37y5423fq36fcygb88d80000gn/T/RtmpaaNMdQ/R.INSTALL715b6f75d514/arrow/libarrow/arrow-15.0.1/include/arrow/api.h:22:
   In file included from /private/var/folders/nr/7h_x37y5423fq36fcygb88d80000gn/T/RtmpaaNMdQ/R.INSTALL715b6f75d514/arrow/libarrow/arrow-15.0.1/include/arrow/array.h:41:
   In file included from /private/var/folders/nr/7h_x37y5423fq36fcygb88d80000gn/T/RtmpaaNMdQ/R.INSTALL715b6f75d514/arrow/libarrow/arrow-15.0.1/include/arrow/array/array_base.h:23:
   In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/string:569:
   In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__algorithm/remove.h:12:
   In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__algorithm/find.h:21:
   /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cwchar:117:5: error: <cwchar> tried including <wchar.h> but didn't find libc++'s <wchar.h> header.           This usually means that your header search paths are not configured properly.           The header search paths should contain the C++ Standard Library headers before           any C Standard Library, and you are probably using compiler flags that make that           not be the case.
   #   error <cwchar> tried including <wchar.h> but didn't find libc++'s <wchar.h> header. \
       ^
   In file included from <stdin>:1:
   In file included from /private/var/folders/nr/7h_x37y5423fq36fcygb88d80000gn/T/RtmpaaNMdQ/R.INSTALL715b6f75d514/arrow/libarrow/arrow-15.0.1/include/arrow/api.h:22:
   In file included from /private/var/folders/nr/7h_x37y5423fq36fcygb88d80000gn/T/RtmpaaNMdQ/R.INSTALL715b6f75d514/arrow/libarrow/arrow-15.0.1/include/arrow/array.h:41:
   In file included from /private/var/folders/nr/7h_x37y5423fq36fcygb88d80000gn/T/RtmpaaNMdQ/R.INSTALL715b6f75d514/arrow/libarrow/arrow-15.0.1/include/arrow/array/array_base.h:23:
   In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/string:596:
   In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__string/char_traits.h:25:
   /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cstdio:104:5: error: <cstdio> tried including <stdio.h> but didn't find libc++'s <stdio.h> header.           This usually means that your header search paths are not configured properly.           The header search paths should contain the C++ Standard Library headers before           any C Standard Library, and you are probably using compiler flags that make that           not be the case.
   #   error <cstdio> tried including <stdio.h> but didn't find libc++'s <stdio.h> header. \
       ^
   In file included from <stdin>:1:
   In file included from /private/var/folders/nr/7h_x37y5423fq36fcygb88d80000gn/T/RtmpaaNMdQ/R.INSTALL715b6f75d514/arrow/libarrow/arrow-15.0.1/include/arrow/api.h:22:
   In file included from /private/var/folders/nr/7h_x37y5423fq36fcygb88d80000gn/T/RtmpaaNMdQ/R.INSTALL715b6f75d514/arrow/libarrow/arrow-15.0.1/include/arrow/array.h:41:
   In file included from /private/var/folders/nr/7h_x37y5423fq36fcygb88d80000gn/T/RtmpaaNMdQ/R.INSTALL715b6f75d514/arrow/libarrow/arrow-15.0.1/include/arrow/array/array_base.h:24:
   In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/vector:321:
   In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__format/formatter_bool.h:20:
   In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__format/formatter_integral.h:13:
   In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__charconv/to_chars_integral.h:17:
   In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__charconv/to_chars_result.h:14:
   In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__system_error/errc.h:104:
   /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cerrno:31:5: error: <cerrno> tried including <errno.h> but didn't find libc++'s <errno.h> header.           This usually means that your header search paths are not configured properly.           The header search paths should contain the C++ Standard Library headers before           any C Standard Library, and you are probably using compiler flags that make that           not be the case.
   #   error <cerrno> tried including <errno.h> but didn't find libc++'s <errno.h> header. \
       ^
   In file included from <stdin>:1:
   In file included from /private/var/folders/nr/7h_x37y5423fq36fcygb88d80000gn/T/RtmpaaNMdQ/R.INSTALL715b6f75d514/arrow/libarrow/arrow-15.0.1/include/arrow/api.h:22:
   In file included from /private/var/folders/nr/7h_x37y5423fq36fcygb88d80000gn/T/RtmpaaNMdQ/R.INSTALL715b6f75d514/arrow/libarrow/arrow-15.0.1/include/arrow/array.h:41:
   In file included from /private/var/folders/nr/7h_x37y5423fq36fcygb88d80000gn/T/RtmpaaNMdQ/R.INSTALL715b6f75d514/arrow/libarrow/arrow-15.0.1/include/arrow/array/array_base.h:24:
   In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/vector:321:
   In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__format/formatter_bool.h:20:
   In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__format/formatter_integral.h:32:
   In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/locale:202:
   In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__locale:18:
   /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/clocale:43:5: error: <clocale> tried including <locale.h> but didn't find libc++'s <locale.h> header.           This usually means that your header search paths are not configured properly.           The header search paths should contain the C++ Standard Library headers before           any C Standard Library, and you are probably using compiler flags that make that           not be the case.
   #   error <clocale> tried including <locale.h> but didn't find libc++'s <locale.h> header. \
       ^
   12 errors generated.
   Failing compile command: clang++ -arch arm64 -E -I/opt/R/arm64/include -I/opt/homebrew/opt/libomp/include -Xclang -fopenmp -DPARQUET_STATIC -DARROW_STATIC -I/private/var/folders/nr/7h_x37y5423fq36fcygb88d80000gn/T/RtmpaaNMdQ/R.INSTALL715b6f75d514/arrow/libarrow/arrow-15.0.1/include -I/usr/local/opt/openssl@3/include   -DARROW_R_WITH_PARQUET -DARROW_R_WITH_DATASET -DARROW_R_WITH_ACERO -DARROW_R_WITH_JSON -DARROW_R_WITH_S3 -DARROW_R_WITH_GCS -falign-functions=64 -Wall -g -O2 -std=gnu++17 -xc++ -
   PKG_CFLAGS=-DPARQUET_STATIC -DARROW_STATIC -I/private/var/folders/nr/7h_x37y5423fq36fcygb88d80000gn/T/RtmpaaNMdQ/R.INSTALL715b6f75d514/arrow/libarrow/arrow-15.0.1/include -I/usr/local/opt/openssl@3/include   -DARROW_R_WITH_PARQUET -DARROW_R_WITH_DATASET -DARROW_R_WITH_ACERO -DARROW_R_WITH_JSON -DARROW_R_WITH_S3 -DARROW_R_WITH_GCS
   PKG_LIBS=-larrow_dataset -lparquet -larrow_acero -larrow -larrow_bundled_dependencies -framework Security -lcurl -lssl -lcrypto 
   ERROR: configuration failed for package ‘arrow’
   * removing ‘/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/arrow’
   * restoring previous ‘/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/arrow’
   
   The downloaded source packages are in
   	‘/private/var/folders/nr/7h_x37y5423fq36fcygb88d80000gn/T/RtmpT5bxq7/downloaded_packages’
   
   Attaching package: ‘arrow’
   
   The following object is masked from ‘package:utils’:
   
       timestamp
   
   Warning message:
   In install.packages("arrow", repos = arrow_repos(repos, nightly),  :
     installation of package ‘arrow’ had non-zero exit status
   ```
   I also tried uninstalling the package via `remove.packages()` and then reinstalled from source, but got the same error message. I spent some time digging online and couldn't find a solution. Any idea what might be causing the problem?
   
   ### Component(s)
   
   R


-- 
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: issues-unsubscribe@arrow.apache.org.apache.org

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


Re: [I] [R] installation failing due to issue with C++ libraries [arrow]

Posted by "sthau (via GitHub)" <gi...@apache.org>.
sthau commented on issue #41046:
URL: https://github.com/apache/arrow/issues/41046#issuecomment-2041170760

   I've tried that -- unfortunately doesn't do anything. I'll try to figure out what's going on with xcode. 


-- 
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-unsubscribe@arrow.apache.org

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


Re: [I] R installation failing due to issue with C++ libraries [arrow]

Posted by "sthau (via GitHub)" <gi...@apache.org>.
sthau commented on issue #41046:
URL: https://github.com/apache/arrow/issues/41046#issuecomment-2040763373

   Sure thing: I got the following. 
   
   ```
   trying URL 'https://cran.rstudio.com/src/contrib/arrow_15.0.1.tar.gz'
   Content type 'application/x-gzip' length 4373377 bytes (4.2 MB)
   ==================================================
   downloaded 4.2 MB
   
   * installing *source* package ‘arrow’ ...
   ** package ‘arrow’ successfully unpacked and MD5 sums checked
   ** using staged installation
   *** pkg-config found.
   *** Found libcurl and OpenSSL >= 3.0.0
   trying URL 'https://apache.jfrog.io/artifactory/arrow/r/15.0.1/libarrow/bin/darwin-arm64-openssl-3.0/arrow-15.0.1.zip'
   Content type 'application/zip' length 23042127 bytes (22.0 MB)
   ==================================================
   downloaded 22.0 MB
   
   *** Checksum validated successfully for libarrow
   *** Successfully retrieved libarrow (darwin-arm64-openssl-3.0)
   ------------------------- NOTE ---------------------------
   There was an issue preparing the Arrow C++ libraries.
   See https://arrow.apache.org/docs/r/articles/install.html
   ----------------------------------------------------------
   
   Test compile error: In file included from <stdin>:1:
   In file included from /private/var/folders/nr/7h_x37y5423fq36fcygb88d80000gn/T/RtmpJ0Pm8W/R.INSTALL84095054496f/arrow/libarrow/arrow-15.0.1/include/arrow/api.h:22:
   In file included from /private/var/folders/nr/7h_x37y5423fq36fcygb88d80000gn/T/RtmpJ0Pm8W/R.INSTALL84095054496f/arrow/libarrow/arrow-15.0.1/include/arrow/array.h:41:
   In file included from /private/var/folders/nr/7h_x37y5423fq36fcygb88d80000gn/T/RtmpJ0Pm8W/R.INSTALL84095054496f/arrow/libarrow/arrow-15.0.1/include/arrow/array/array_base.h:20:
   /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cstdint:149:5: error: <cstdint> tried including <stdint.h> but didn't find libc++'s <stdint.h> header.           This usually means that your header search paths are not configured properly.           The header search paths should contain the C++ Standard Library headers before           any C Standard Library, and you are probably using compiler flags that make that           not be the case.
   #   error <cstdint> tried including <stdint.h> but didn't find libc++'s <stdint.h> header. \
       ^
   In file included from <stdin>:1:
   In file included from /private/var/folders/nr/7h_x37y5423fq36fcygb88d80000gn/T/RtmpJ0Pm8W/R.INSTALL84095054496f/arrow/libarrow/arrow-15.0.1/include/arrow/api.h:22:
   In file included from /private/var/folders/nr/7h_x37y5423fq36fcygb88d80000gn/T/RtmpJ0Pm8W/R.INSTALL84095054496f/arrow/libarrow/arrow-15.0.1/include/arrow/array.h:41:
   In file included from /private/var/folders/nr/7h_x37y5423fq36fcygb88d80000gn/T/RtmpJ0Pm8W/R.INSTALL84095054496f/arrow/libarrow/arrow-15.0.1/include/arrow/array/array_base.h:22:
   In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/memory:883:
   In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/align.h:13:
   /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cstddef:46:5: error: <cstddef> tried including <stddef.h> but didn't find libc++'s <stddef.h> header.           This usually means that your header search paths are not configured properly.           The header search paths should contain the C++ Standard Library headers before           any C Standard Library, and you are probably using compiler flags that make that           not be the case.
   #   error <cstddef> tried including <stddef.h> but didn't find libc++'s <stddef.h> header. \
       ^
   In file included from <stdin>:1:
   In file included from /private/var/folders/nr/7h_x37y5423fq36fcygb88d80000gn/T/RtmpJ0Pm8W/R.INSTALL84095054496f/arrow/libarrow/arrow-15.0.1/include/arrow/api.h:22:
   In file included from /private/var/folders/nr/7h_x37y5423fq36fcygb88d80000gn/T/RtmpJ0Pm8W/R.INSTALL84095054496f/arrow/libarrow/arrow-15.0.1/include/arrow/array.h:41:
   In file included from /private/var/folders/nr/7h_x37y5423fq36fcygb88d80000gn/T/RtmpJ0Pm8W/R.INSTALL84095054496f/arrow/libarrow/arrow-15.0.1/include/arrow/array/array_base.h:22:
   In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/memory:884:
   In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/allocate_at_least.h:13:
   In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/allocator_traits.h:14:
   In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/construct_at.h:23:
   In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/new:99:
   /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cstdlib:90:5: error: <cstdlib> tried including <stdlib.h> but didn't find libc++'s <stdlib.h> header.           This usually means that your header search paths are not configured properly.           The header search paths should contain the C++ Standard Library headers before           any C Standard Library, and you are probably using compiler flags that make that           not be the case.
   #   error <cstdlib> tried including <stdlib.h> but didn't find libc++'s <stdlib.h> header. \
       ^
   In file included from <stdin>:1:
   In file included from /private/var/folders/nr/7h_x37y5423fq36fcygb88d80000gn/T/RtmpJ0Pm8W/R.INSTALL84095054496f/arrow/libarrow/arrow-15.0.1/include/arrow/api.h:22:
   In file included from /private/var/folders/nr/7h_x37y5423fq36fcygb88d80000gn/T/RtmpJ0Pm8W/R.INSTALL84095054496f/arrow/libarrow/arrow-15.0.1/include/arrow/array.h:41:
   In file included from /private/var/folders/nr/7h_x37y5423fq36fcygb88d80000gn/T/RtmpJ0Pm8W/R.INSTALL84095054496f/arrow/libarrow/arrow-15.0.1/include/arrow/array/array_base.h:22:
   In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/memory:898:
   In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/shared_ptr.h:31:
   In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/unique_ptr.h:17:
   In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/hash.h:28:
   /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cstring:66:5: error: <cstring> tried including <string.h> but didn't find libc++'s <string.h> header.           This usually means that your header search paths are not configured properly.           The header search paths should contain the C++ Standard Library headers before           any C Standard Library, and you are probably using compiler flags that make that           not be the case.
   #   error <cstring> tried including <string.h> but didn't find libc++'s <string.h> header. \
       ^
   In file included from <stdin>:1:
   In file included from /private/var/folders/nr/7h_x37y5423fq36fcygb88d80000gn/T/RtmpJ0Pm8W/R.INSTALL84095054496f/arrow/libarrow/arrow-15.0.1/include/arrow/api.h:22:
   In file included from /private/var/folders/nr/7h_x37y5423fq36fcygb88d80000gn/T/RtmpJ0Pm8W/R.INSTALL84095054496f/arrow/libarrow/arrow-15.0.1/include/arrow/array.h:41:
   In file included from /private/var/folders/nr/7h_x37y5423fq36fcygb88d80000gn/T/RtmpJ0Pm8W/R.INSTALL84095054496f/arrow/libarrow/arrow-15.0.1/include/arrow/array/array_base.h:22:
   In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/memory:903:
   In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/uses_allocator_construction.h:20:
   In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/tuple:268:
   In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/compare:145:
   In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__compare/compare_partial_order_fallback.h:13:
   In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__compare/partial_order.h:14:
   In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__compare/weak_order.h:14:
   In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__compare/strong_order.h:20:
   /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:321:5: error: <cmath> tried including <math.h> but didn't find libc++'s <math.h> header.           This usually means that your header search paths are not configured properly.           The header search paths should contain the C++ Standard Library headers before           any C Standard Library, and you are probably using compiler flags that make that           not be the case.
   #   error <cmath> tried including <math.h> but didn't find libc++'s <math.h> header. \
       ^
   In file included from <stdin>:1:
   In file included from /private/var/folders/nr/7h_x37y5423fq36fcygb88d80000gn/T/RtmpJ0Pm8W/R.INSTALL84095054496f/arrow/libarrow/arrow-15.0.1/include/arrow/api.h:22:
   In file included from /private/var/folders/nr/7h_x37y5423fq36fcygb88d80000gn/T/RtmpJ0Pm8W/R.INSTALL84095054496f/arrow/libarrow/arrow-15.0.1/include/arrow/array.h:41:
   In file included from /private/var/folders/nr/7h_x37y5423fq36fcygb88d80000gn/T/RtmpJ0Pm8W/R.INSTALL84095054496f/arrow/libarrow/arrow-15.0.1/include/arrow/array/array_base.h:22:
   In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/memory:916:
   In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/atomic:522:
   In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__atomic/aliases.h:12:
   In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__atomic/atomic.h:12:
   In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__atomic/atomic_base.h:12:
   In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__atomic/atomic_sync.h:16:
   In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__chrono/duration.h:21:
   In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/ratio:87:
   /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/climits:46:5: error: <climits> tried including <limits.h> but didn't find libc++'s <limits.h> header.           This usually means that your header search paths are not configured properly.           The header search paths should contain the C++ Standard Library headers before           any C Standard Library, and you are probably using compiler flags that make that           not be the case.
   #   error <climits> tried including <limits.h> but didn't find libc++'s <limits.h> header. \
       ^
   In file included from <stdin>:1:
   In file included from /private/var/folders/nr/7h_x37y5423fq36fcygb88d80000gn/T/RtmpJ0Pm8W/R.INSTALL84095054496f/arrow/libarrow/arrow-15.0.1/include/arrow/api.h:22:
   In file included from /private/var/folders/nr/7h_x37y5423fq36fcygb88d80000gn/T/RtmpJ0Pm8W/R.INSTALL84095054496f/arrow/libarrow/arrow-15.0.1/include/arrow/array.h:41:
   In file included from /private/var/folders/nr/7h_x37y5423fq36fcygb88d80000gn/T/RtmpJ0Pm8W/R.INSTALL84095054496f/arrow/libarrow/arrow-15.0.1/include/arrow/array/array_base.h:23:
   In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/string:569:
   In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__algorithm/remove.h:12:
   In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__algorithm/find.h:21:
   In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cwchar:112:
   In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cwctype:54:
   /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cctype:43:5: error: <cctype> tried including <ctype.h> but didn't find libc++'s <ctype.h> header.           This usually means that your header search paths are not configured properly.            The header search paths should contain the C++ Standard Library headers before           any C Standard Library.
   #   error <cctype> tried including <ctype.h> but didn't find libc++'s <ctype.h> header. \
       ^
   In file included from <stdin>:1:
   In file included from /private/var/folders/nr/7h_x37y5423fq36fcygb88d80000gn/T/RtmpJ0Pm8W/R.INSTALL84095054496f/arrow/libarrow/arrow-15.0.1/include/arrow/api.h:22:
   In file included from /private/var/folders/nr/7h_x37y5423fq36fcygb88d80000gn/T/RtmpJ0Pm8W/R.INSTALL84095054496f/arrow/libarrow/arrow-15.0.1/include/arrow/array.h:41:
   In file included from /private/var/folders/nr/7h_x37y5423fq36fcygb88d80000gn/T/RtmpJ0Pm8W/R.INSTALL84095054496f/arrow/libarrow/arrow-15.0.1/include/arrow/array/array_base.h:23:
   In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/string:569:
   In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__algorithm/remove.h:12:
   In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__algorithm/find.h:21:
   In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cwchar:112:
   /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cwctype:59:5: error: <cwctype> tried including <wctype.h> but didn't find libc++'s <wctype.h> header.           This usually means that your header search paths are not configured properly.           The header search paths should contain the C++ Standard Library headers before           any C Standard Library, and you are probably using compiler flags that make that           not be the case.
   #   error <cwctype> tried including <wctype.h> but didn't find libc++'s <wctype.h> header. \
       ^
   In file included from <stdin>:1:
   In file included from /private/var/folders/nr/7h_x37y5423fq36fcygb88d80000gn/T/RtmpJ0Pm8W/R.INSTALL84095054496f/arrow/libarrow/arrow-15.0.1/include/arrow/api.h:22:
   In file included from /private/var/folders/nr/7h_x37y5423fq36fcygb88d80000gn/T/RtmpJ0Pm8W/R.INSTALL84095054496f/arrow/libarrow/arrow-15.0.1/include/arrow/array.h:41:
   In file included from /private/var/folders/nr/7h_x37y5423fq36fcygb88d80000gn/T/RtmpJ0Pm8W/R.INSTALL84095054496f/arrow/libarrow/arrow-15.0.1/include/arrow/array/array_base.h:23:
   In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/string:569:
   In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__algorithm/remove.h:12:
   In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__algorithm/find.h:21:
   /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cwchar:117:5: error: <cwchar> tried including <wchar.h> but didn't find libc++'s <wchar.h> header.           This usually means that your header search paths are not configured properly.           The header search paths should contain the C++ Standard Library headers before           any C Standard Library, and you are probably using compiler flags that make that           not be the case.
   #   error <cwchar> tried including <wchar.h> but didn't find libc++'s <wchar.h> header. \
       ^
   In file included from <stdin>:1:
   In file included from /private/var/folders/nr/7h_x37y5423fq36fcygb88d80000gn/T/RtmpJ0Pm8W/R.INSTALL84095054496f/arrow/libarrow/arrow-15.0.1/include/arrow/api.h:22:
   In file included from /private/var/folders/nr/7h_x37y5423fq36fcygb88d80000gn/T/RtmpJ0Pm8W/R.INSTALL84095054496f/arrow/libarrow/arrow-15.0.1/include/arrow/array.h:41:
   In file included from /private/var/folders/nr/7h_x37y5423fq36fcygb88d80000gn/T/RtmpJ0Pm8W/R.INSTALL84095054496f/arrow/libarrow/arrow-15.0.1/include/arrow/array/array_base.h:23:
   In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/string:596:
   In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__string/char_traits.h:25:
   /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cstdio:104:5: error: <cstdio> tried including <stdio.h> but didn't find libc++'s <stdio.h> header.           This usually means that your header search paths are not configured properly.           The header search paths should contain the C++ Standard Library headers before           any C Standard Library, and you are probably using compiler flags that make that           not be the case.
   #   error <cstdio> tried including <stdio.h> but didn't find libc++'s <stdio.h> header. \
       ^
   In file included from <stdin>:1:
   In file included from /private/var/folders/nr/7h_x37y5423fq36fcygb88d80000gn/T/RtmpJ0Pm8W/R.INSTALL84095054496f/arrow/libarrow/arrow-15.0.1/include/arrow/api.h:22:
   In file included from /private/var/folders/nr/7h_x37y5423fq36fcygb88d80000gn/T/RtmpJ0Pm8W/R.INSTALL84095054496f/arrow/libarrow/arrow-15.0.1/include/arrow/array.h:41:
   In file included from /private/var/folders/nr/7h_x37y5423fq36fcygb88d80000gn/T/RtmpJ0Pm8W/R.INSTALL84095054496f/arrow/libarrow/arrow-15.0.1/include/arrow/array/array_base.h:24:
   In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/vector:321:
   In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__format/formatter_bool.h:20:
   In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__format/formatter_integral.h:13:
   In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__charconv/to_chars_integral.h:17:
   In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__charconv/to_chars_result.h:14:
   In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__system_error/errc.h:104:
   /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/cerrno:31:5: error: <cerrno> tried including <errno.h> but didn't find libc++'s <errno.h> header.           This usually means that your header search paths are not configured properly.           The header search paths should contain the C++ Standard Library headers before           any C Standard Library, and you are probably using compiler flags that make that           not be the case.
   #   error <cerrno> tried including <errno.h> but didn't find libc++'s <errno.h> header. \
       ^
   In file included from <stdin>:1:
   In file included from /private/var/folders/nr/7h_x37y5423fq36fcygb88d80000gn/T/RtmpJ0Pm8W/R.INSTALL84095054496f/arrow/libarrow/arrow-15.0.1/include/arrow/api.h:22:
   In file included from /private/var/folders/nr/7h_x37y5423fq36fcygb88d80000gn/T/RtmpJ0Pm8W/R.INSTALL84095054496f/arrow/libarrow/arrow-15.0.1/include/arrow/array.h:41:
   In file included from /private/var/folders/nr/7h_x37y5423fq36fcygb88d80000gn/T/RtmpJ0Pm8W/R.INSTALL84095054496f/arrow/libarrow/arrow-15.0.1/include/arrow/array/array_base.h:24:
   In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/vector:321:
   In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__format/formatter_bool.h:20:
   In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__format/formatter_integral.h:32:
   In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/locale:202:
   In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__locale:18:
   /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/clocale:43:5: error: <clocale> tried including <locale.h> but didn't find libc++'s <locale.h> header.           This usually means that your header search paths are not configured properly.           The header search paths should contain the C++ Standard Library headers before           any C Standard Library, and you are probably using compiler flags that make that           not be the case.
   #   error <clocale> tried including <locale.h> but didn't find libc++'s <locale.h> header. \
       ^
   12 errors generated.
   Failing compile command: clang++ -arch arm64 -E -I/opt/R/arm64/include -I/opt/homebrew/opt/libomp/include -Xclang -fopenmp -DPARQUET_STATIC -DARROW_STATIC -I/private/var/folders/nr/7h_x37y5423fq36fcygb88d80000gn/T/RtmpJ0Pm8W/R.INSTALL84095054496f/arrow/libarrow/arrow-15.0.1/include -I/usr/local/opt/openssl@3/include   -DARROW_R_WITH_PARQUET -DARROW_R_WITH_DATASET -DARROW_R_WITH_ACERO -DARROW_R_WITH_JSON -DARROW_R_WITH_S3 -DARROW_R_WITH_GCS -falign-functions=64 -Wall -g -O2 -std=gnu++17 -xc++ -
   PKG_CFLAGS=-DPARQUET_STATIC -DARROW_STATIC -I/private/var/folders/nr/7h_x37y5423fq36fcygb88d80000gn/T/RtmpJ0Pm8W/R.INSTALL84095054496f/arrow/libarrow/arrow-15.0.1/include -I/usr/local/opt/openssl@3/include   -DARROW_R_WITH_PARQUET -DARROW_R_WITH_DATASET -DARROW_R_WITH_ACERO -DARROW_R_WITH_JSON -DARROW_R_WITH_S3 -DARROW_R_WITH_GCS
   PKG_LIBS=-larrow_dataset -lparquet -larrow_acero -larrow -larrow_bundled_dependencies -framework Security -lcurl -lssl -lcrypto 
   ERROR: configuration failed for package ‘arrow’
   * removing ‘/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/arrow’
   * restoring previous ‘/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/arrow’
   
   The downloaded source packages are in
   	‘/private/var/folders/nr/7h_x37y5423fq36fcygb88d80000gn/T/Rtmp9jgkbq/downloaded_packages’
   Warning message:
   In install.packages("arrow", repos = arrow_repos(repos, nightly),  :
     installation of package ‘arrow’ had non-zero exit status
   ```


-- 
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-unsubscribe@arrow.apache.org

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


Re: [I] [R] installation failing due to issue with C++ libraries [arrow]

Posted by "amoeba (via GitHub)" <gi...@apache.org>.
amoeba commented on issue #41046:
URL: https://github.com/apache/arrow/issues/41046#issuecomment-2041317090

   @sthau what does `xcode-select -p` report? If you have XCode installed that might be a factor in the problem. You might download the latest Command Line Tools for your OS version (https://developer.apple.com/download/more/) and then point `xcode-select -s $PATH` at it. 


-- 
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-unsubscribe@arrow.apache.org

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


Re: [I] [R] installation failing due to issue with C++ libraries [arrow]

Posted by "amoeba (via GitHub)" <gi...@apache.org>.
amoeba commented on issue #41046:
URL: https://github.com/apache/arrow/issues/41046#issuecomment-2043399410

   Thanks for the report @drdphn. In my experience, reinstalling either XCode or the CLT helps in these scenarios.
   
   The best way to install arrow R at the moment is still via https://apache.r-universe.dev/arrow which should work regardless of whether XCode/CLT are set up correctly. 


-- 
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-unsubscribe@arrow.apache.org

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


Re: [I] [R] installation failing due to issue with C++ libraries [arrow]

Posted by "assignUser (via GitHub)" <gi...@apache.org>.
assignUser commented on issue #41046:
URL: https://github.com/apache/arrow/issues/41046#issuecomment-2040847582

   Yeah seems like your xcode setup is broken. Can you compile other packages or things outside R? Maybe you need to `xcode-select --install`? As that's not an issue with arrow it's pretty hard to troubleshoot from here :/ sorry. 


-- 
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-unsubscribe@arrow.apache.org

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


Re: [I] [R] installation failing due to issue with C++ libraries [arrow]

Posted by "drdphn (via GitHub)" <gi...@apache.org>.
drdphn commented on issue #41046:
URL: https://github.com/apache/arrow/issues/41046#issuecomment-2042055123

   I am having the same issue here. Any method to install a previous arrow library? Would like to try that out. I have been using arrow for ages and suddenly it does not work anymore.


-- 
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-unsubscribe@arrow.apache.org

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


Re: [I] [R] installation failing due to issue with C++ libraries [arrow]

Posted by "drdphn (via GitHub)" <gi...@apache.org>.
drdphn commented on issue #41046:
URL: https://github.com/apache/arrow/issues/41046#issuecomment-2042084241

   Somehow I had it work. What I did were: 1. install X-Code. 2. install arrow by: arrow::install_arrow(verbose = TRUE)
   


-- 
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-unsubscribe@arrow.apache.org

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


Re: [I] R installation failing due to issue with C++ libraries [arrow]

Posted by "assignUser (via GitHub)" <gi...@apache.org>.
assignUser commented on issue #41046:
URL: https://github.com/apache/arrow/issues/41046#issuecomment-2040762290

   I can't reproduce your issue on my arm mac but it looks like there is an issue with your xcode/clt setup. Can you run `arrow::install_arrow(verbose = TRUE)`, this will print more details. As a quick workaround you can install the fully-featured binary package from https://apache.r-universe.dev/arrow


-- 
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-unsubscribe@arrow.apache.org

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