Open raulcd opened 5 months ago
Could you show the output of the following command line after you install pkg-config
gem by PATH=$(brew --prefix ruby)/bin:$PATH gem install pkg-config
?
PATH=$(brew --prefix ruby)/bin:$PATH ruby -r pkg-config -e 'p PKGConfig.cflags("gobject-introspection-1.0")'
Could you also show the output of the following command line?
pkg-config --debug --cflags libffi
Sorry @kou , I forgot about this:
raul@raul-MacBook-Pro release % PATH=$(brew --prefix ruby)/bin:$PATH ruby -r pkg-config -e 'p PKGConfig.cflags("gobject-introspection-1.0")'
"-I/opt/homebrew/Cellar/gobject-introspection/1.78.1/include/gobject-introspection-1.0 -I/opt/homebrew/Cellar/glib/2.78.4/include/glib-2.0 -I/opt/homebrew/Cellar/glib/2.78.4/lib/glib-2.0/include -I/opt/homebrew/opt/gettext/include -I/opt/homebrew/Cellar/pcre2/10.42/include -I/opt/homebrew/Cellar/glib/2.78.4/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/ffi"
raul@raul-MacBook-Pro release % pkg-config --debug --cflags libffi
Error printing enabled by default due to use of output options besides --exists, --atleast/exact/max-version or --list-all. Value of --silence-errors: 0
Error printing enabled
Adding virtual 'pkg-config' package to list of known packages
Looking for package 'libffi'
Looking for package 'libffi-uninstalled'
Reading 'libffi' from file '/opt/homebrew/Library/Homebrew/os/mac/pkgconfig/12/libffi.pc'
Parsing package file '/opt/homebrew/Library/Homebrew/os/mac/pkgconfig/12/libffi.pc'
line>homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk
Variable declaration, 'homebrew_sdkroot' has value '/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk'
line>prefix=${homebrew_sdkroot}/usr
Variable declaration, 'prefix' has value '/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr'
line>exec_prefix=/usr
Variable declaration, 'exec_prefix' has value '/usr'
line>libdir=${exec_prefix}/lib
Variable declaration, 'libdir' has value '/usr/lib'
line>toolexeclibdir=${libdir}
Variable declaration, 'toolexeclibdir' has value '/usr/lib'
line>includedir=${prefix}/include/ffi
Variable declaration, 'includedir' has value '/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/ffi'
line>
line>Name: libffi
line>Description: Library supporting Foreign Function Interfaces
line>Version: 3.4-rc1
line>Libs: -L${toolexeclibdir} -lffi
line>Cflags: -I${includedir}
Path position of 'libffi' is 5
Adding 'libffi' to list of known packages
Package libffi has -L /usr/lib in Libs
Removing -L /usr/lib from libs for libffi
post-recurse: libffi
adding CFLAGS_OTHER string ""
post-recurse: libffi
original: libffi
sorted: libffi
adding CFLAGS_I string "-I/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/ffi "
returning flags string "-I/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/ffi"
-I/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/ffi
raul@raul-MacBook-Pro release %
Thanks for remembering this!
It seems that detected -I
s are expected. ffi.h
may not exist in /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/ffi
.
Could you show the output of the following command lines?
ls -lah /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include
ls -lah /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/ffi
Describe the bug, including details regarding any error messages, version, and platform.
As discussed here: https://github.com/apache/arrow/pull/39960#discussion_r1491520898
I did require to add:
In order to run verification successfully on a new macOS ARM (M2). Otherwise we got the following error:
Some info on the same comment thread:
After manually adding the link
sudo ln -s MacOSX12.3.sdk /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk
it still failed.Component(s)
Release, Ruby