YinOsu commented on issue #40632:
URL: https://github.com/apache/arrow/issues/40632#issuecomment-2043075757
> I wonder if something is misconfigured with your XCode/CommandLineTools
installation. I can install arrow from source linking against Homebrew's arrow
15.0.1 just fine. That said, installing from R-universe is a great option.
>
> If you want to try again @YinOsu, can you start a fresh R session, set
this environment variable, reinstall from source, and paste the results here in
a `<details></details>` block?
>
> ```r
> > Sys.setenv("ARROW_R_DEV"=TRUE)
> > install.packages("arrow", type="source")
> ```
>
> Mine is below for comparison:
>
> Output for `install.packages("arrow", type="source")`
Did as you instructed. I can't really figure out if it is a XCode issue. I
reinstalled the XCode/CommandLineTools.
`<details>
> Sys.setenv("ARROW_R_DEV"=TRUE)
> install.packages("arrow", type="source")
Installing package into ‘/usr/local/lib/R/4.3/site-library’
(as ‘lib’ is unspecified)
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.
*** Trying Arrow C++ found by pkg-config:
/usr/local/Cellar/apache-arrow/15.0.2_1
**** C++ library version 15.0.2 is supported by R version 15.0.1
------------------------- 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
/usr/local/Cellar/apache-arrow/15.0.2_1/include/arrow/api.h:22:
In file included from
/usr/local/Cellar/apache-arrow/15.0.2_1/include/arrow/array.h:41:
In file included from
/usr/local/Cellar/apache-arrow/15.0.2_1/include/arrow/array/array_base.h:20:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/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
/usr/local/Cellar/apache-arrow/15.0.2_1/include/arrow/api.h:22:
In file included from
/usr/local/Cellar/apache-arrow/15.0.2_1/include/arrow/array.h:41:
In file included from
/usr/local/Cellar/apache-arrow/15.0.2_1/include/arrow/array/array_base.h:22:
In file included from
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/memory:883:
In file included from
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/align.h:13:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/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
/usr/local/Cellar/apache-arrow/15.0.2_1/include/arrow/api.h:22:
In file included from
/usr/local/Cellar/apache-arrow/15.0.2_1/include/arrow/array.h:41:
In file included from
/usr/local/Cellar/apache-arrow/15.0.2_1/include/arrow/array/array_base.h:22:
In file included from
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/memory:884:
In file included from
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/allocate_at_least.h:13:
In file included from
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/allocator_traits.h:14:
In file included from
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/construct_at.h:23:
In file included from
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/new:96:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/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
/usr/local/Cellar/apache-arrow/15.0.2_1/include/arrow/api.h:22:
In file included from
/usr/local/Cellar/apache-arrow/15.0.2_1/include/arrow/array.h:41:
In file included from
/usr/local/Cellar/apache-arrow/15.0.2_1/include/arrow/array/array_base.h:22:
In file included from
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/memory:898:
In file included from
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/shared_ptr.h:31:
In file included from
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/unique_ptr.h:17:
In file included from
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/hash.h:28:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/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
/usr/local/Cellar/apache-arrow/15.0.2_1/include/arrow/api.h:22:
In file included from
/usr/local/Cellar/apache-arrow/15.0.2_1/include/arrow/array.h:41:
In file included from
/usr/local/Cellar/apache-arrow/15.0.2_1/include/arrow/array/array_base.h:22:
In file included from
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/memory:898:
In file included from
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/shared_ptr.h:42:
In file included from
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/atomic:523:
In file included from
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__chrono/duration.h:19:
In file included from
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/ratio:83:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/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
/usr/local/Cellar/apache-arrow/15.0.2_1/include/arrow/api.h:22:
In file included from
/usr/local/Cellar/apache-arrow/15.0.2_1/include/arrow/array.h:41:
In file included from
/usr/local/Cellar/apache-arrow/15.0.2_1/include/arrow/array/array_base.h:22:
In file included from
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/memory:898:
In file included from
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/shared_ptr.h:42:
In file included from
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/atomic:2668:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:320: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
/usr/local/Cellar/apache-arrow/15.0.2_1/include/arrow/api.h:22:
In file included from
/usr/local/Cellar/apache-arrow/15.0.2_1/include/arrow/array.h:41:
In file included from
/usr/local/Cellar/apache-arrow/15.0.2_1/include/arrow/array/array_base.h:23:
In file included from
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/string:561:
In file included from
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__string/char_traits.h:24:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/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
/usr/local/Cellar/apache-arrow/15.0.2_1/include/arrow/api.h:22:
In file included from
/usr/local/Cellar/apache-arrow/15.0.2_1/include/arrow/array.h:41:
In file included from
/usr/local/Cellar/apache-arrow/15.0.2_1/include/arrow/array/array_base.h:23:
In file included from
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/string:561:
In file included from
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__string/char_traits.h:29:
In file included from
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cwchar:108:
In file included from
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cwctype:54:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/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
/usr/local/Cellar/apache-arrow/15.0.2_1/include/arrow/api.h:22:
In file included from
/usr/local/Cellar/apache-arrow/15.0.2_1/include/arrow/array.h:41:
In file included from
/usr/local/Cellar/apache-arrow/15.0.2_1/include/arrow/array/array_base.h:23:
In file included from
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/string:561:
In file included from
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__string/char_traits.h:29:
In file included from
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cwchar:108:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/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
/usr/local/Cellar/apache-arrow/15.0.2_1/include/arrow/api.h:22:
In file included from
/usr/local/Cellar/apache-arrow/15.0.2_1/include/arrow/array.h:41:
In file included from
/usr/local/Cellar/apache-arrow/15.0.2_1/include/arrow/array/array_base.h:23:
In file included from
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/string:561:
In file included from
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__string/char_traits.h:29:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cwchar:113: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
/usr/local/Cellar/apache-arrow/15.0.2_1/include/arrow/api.h:22:
In file included from
/usr/local/Cellar/apache-arrow/15.0.2_1/include/arrow/array.h:41:
In file included from
/usr/local/Cellar/apache-arrow/15.0.2_1/include/arrow/array/array_base.h:26:
In file included from
/usr/local/Cellar/apache-arrow/15.0.2_1/include/arrow/array/data.h:27:
In file included from
/usr/local/Cellar/apache-arrow/15.0.2_1/include/arrow/buffer.h:29:
In file included from
/usr/local/Cellar/apache-arrow/15.0.2_1/include/arrow/device.h:26:
In file included from
/usr/local/Cellar/apache-arrow/15.0.2_1/include/arrow/result.h:27:
In file included from
/usr/local/Cellar/apache-arrow/15.0.2_1/include/arrow/status.h:25:
In file included from
/usr/local/Cellar/apache-arrow/15.0.2_1/include/arrow/util/string_builder.h:21:
In file included from
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/ostream:171:
In file included from
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/ios:221:
In file included from
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__locale:18:
In file included from
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/mutex:192:
In file included from
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__mutex_base:20:
In file included from
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/system_error:149:
In file included from
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__errc:104:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/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. \
^
11 errors generated.
Failing compile command: clang++ -E -I/include
-I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include
-I/usr/local/Cellar/apache-arrow/15.0.2_1/include -DARROW_R_WITH_PARQUET
-DARROW_R_WITH_DATASET -DARROW_R_WITH_ACERO -DARROW_R_WITH_JSON
-DARROW_R_WITH_S3 -g -O2 -std=gnu++17 -xc++ -
PKG_CFLAGS=-I/usr/local/Cellar/apache-arrow/15.0.2_1/include
-DARROW_R_WITH_PARQUET -DARROW_R_WITH_DATASET -DARROW_R_WITH_ACERO
-DARROW_R_WITH_JSON -DARROW_R_WITH_S3
PKG_LIBS=-larrow_dataset -lparquet -larrow_acero -larrow
ERROR: configuration failed for package ‘arrow’
* removing ‘/usr/local/lib/R/4.3/site-library/arrow’
* restoring previous ‘/usr/local/lib/R/4.3/site-library/arrow’
Warning in install.packages :
installation of package ‘arrow’ had non-zero exit status
</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]