{"action":"created","issue":{"url":"https://api.github.com/repos/ffi/ffi/issues/651","repository_url":"https://api.github.com/repos/ffi/ffi","labels_url":"https://api.github.com/repos/ffi/ffi/issues/651/labels{/name}","comments_url":"https://api.github.com/repos/ffi/ffi/issues/651/comments","events_url":"https://api.github.com/repos/ffi/ffi/issues/651/events","html_url":"https://github.com/ffi/ffi/issues/651","id":361513343,"node_id":"MDU6SXNzdWUzNjE1MTMzNDM=","number":651,"title":"Fails to install on OSX 10.14 (Mojave)","user":{"login":"jamie","id":1093,"node_id":"MDQ6VXNlcjEwOTM=","avatar_url":"https://avatars3.githubusercontent.com/u/1093?v=4","gravatar_id":"","url":"https://api.github.com/users/jamie","html_url":"https://github.com/jamie","followers_url":"https://api.github.com/users/jamie/followers","following_url":"https://api.github.com/users/jamie/following{/other_user}","gists_url":"https://api.github.com/users/jamie/gists{/gist_id}","starred_url":"https://api.github.com/users/jamie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamie/subscriptions","organizations_url":"https://api.github.com/users/jamie/orgs","repos_url":"https://api.github.com/users/jamie/repos","events_url":"https://api.github.com/users/jamie/events{/privacy}","received_events_url":"https://api.github.com/users/jamie/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2018-09-18T22:52:00Z","updated_at":"2018-10-21T11:01:24Z","closed_at":null,"author_association":"NONE","body":"So, I know I'm ahead of the curve by a week or so on Mojave, but... `gem install ffi` is failing for me:\r\n\r\n```\r\nFetching: ffi-1.9.25.gem (100%)\r\nBuilding native extensions. This could take a while...\r\nERROR:  Error installing ffi:\r\n\tERROR: Failed to build gem native extension.\r\n\r\n    current directory: /usr/local/Cellar/asdf/0.5.1/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi_c\r\n/usr/local/Cellar/asdf/0.5.1/installs/ruby/2.5.1/bin/ruby -r ./siteconf20180918-67280-1w53r1a.rb extconf.rb\r\nchecking for ffi.h... no\r\nchecking for ffi.h in /usr/local/include,/usr/include/ffi... no\r\nchecking for shlwapi.h... no\r\nchecking for ruby/thread.h... yes\r\nchecking for rb_thread_blocking_region()... no\r\nchecking for rb_thread_call_with_gvl()... yes\r\nchecking for rb_thread_call_without_gvl()... yes\r\ncreating extconf.h\r\ncreating Makefile\r\n\r\ncurrent directory: /usr/local/Cellar/asdf/0.5.1/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi_c\r\nmake \"DESTDIR=\" clean\r\n\r\ncurrent directory: /usr/local/Cellar/asdf/0.5.1/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi_c\r\nmake \"DESTDIR=\"\r\nmkdir -p \"/usr/local/Cellar/asdf/0.5.1/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi_c\"/libffi-x86_64; (if [ ! -f \"/usr/local/Cellar/asdf/0.5.1/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi_c/libffi\"/configure ]; then echo \"Running autoreconf for libffi\"; cd \"/usr/local/Cellar/asdf/0.5.1/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi_c/libffi\" && /bin/sh /usr/local/Cellar/asdf/0.5.1/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi_c/libffi/autogen.sh > /dev/null; fi); (if [ ! -f \"/usr/local/Cellar/asdf/0.5.1/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi_c\"/libffi-x86_64/Makefile ]; then echo \"Configuring libffi for x86_64\"; cd \"/usr/local/Cellar/asdf/0.5.1/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi_c\"/libffi-x86_64 && env CC=\" clang\" CFLAGS=\"-arch x86_64 \" LDFLAGS=\"-arch x86_64\" \"/usr/local/Cellar/asdf/0.5.1/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi_c/libffi\"/configure --disable-static --with-pic=yes --disable-dependency-tracking --disable-docs --host=x86_64-apple-darwin > /dev/null; fi); env MACOSX_DEPLOYMENT_TARGET=10.4 /Library/Developer/CommandLineTools/usr/bin/make -C \"/usr/local/Cellar/asdf/0.5.1/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi_c\"/libffi-x86_64\r\nConfiguring libffi for x86_64\r\nclang: error: unsupported option '-print-multi-os-directory'\r\nclang: error: no input files\r\n/Library/Developer/CommandLineTools/usr/bin/make 'AR_FLAGS=' 'CC_FOR_BUILD=' 'CFLAGS=-arch x86_64  -Wall -fexceptions' 'CXXFLAGS=-g -O2' 'CFLAGS_FOR_BUILD=' 'CFLAGS_FOR_TARGET=' 'INSTALL=/usr/local/bin/ginstall -c' 'INSTALL_DATA=/usr/local/bin/ginstall -c -m 644' 'INSTALL_PROGRAM=/usr/local/bin/ginstall -c' 'INSTALL_SCRIPT=/usr/local/bin/ginstall -c' 'JC1FLAGS=' 'LDFLAGS=-arch x86_64' 'LIBCFLAGS=' 'LIBCFLAGS_FOR_TARGET=' 'MAKE=/Library/Developer/CommandLineTools/usr/bin/make' 'MAKEINFO=/bin/sh /usr/local/Cellar/asdf/0.5.1/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi_c/libffi/missing makeinfo ' 'PICFLAG=' 'PICFLAG_FOR_TARGET=' 'RUNTESTFLAGS=' 'SHELL=/bin/sh' 'exec_prefix=/usr/local' 'infodir=/usr/local/share/info' 'libdir=/usr/local/lib' 'mandir=/usr/local/share/man' 'prefix=/usr/local' 'AR=ar' 'AS=as' 'CC=clang' 'CXX=g++' 'LD=/Library/Developer/CommandLineTools/usr/bin/ld' 'NM=nm' 'RANLIB=ranlib' 'DESTDIR=' all-recursive\r\nMaking all in include\r\nmake[3]: Nothing to be done for `all'.\r\nMaking all in testsuite\r\nmake[3]: Nothing to be done for `all'.\r\nMaking all in man\r\nmake[3]: Nothing to be done for `all'.\r\n/bin/sh ./libtool  --tag=CC   --mode=compile clang -DHAVE_CONFIG_H -I. -I/usr/local/Cellar/asdf/0.5.1/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi_c/libffi  -I. -I/usr/local/Cellar/asdf/0.5.1/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi_c/libffi/include -Iinclude -I/usr/local/Cellar/asdf/0.5.1/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi_c/libffi/src   -arch x86_64  -Wall -fexceptions -c -o src/prep_cif.lo /usr/local/Cellar/asdf/0.5.1/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi_c/libffi/src/prep_cif.c\r\nlibtool: compile:  clang -DHAVE_CONFIG_H -I. -I/usr/local/Cellar/asdf/0.5.1/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi_c/libffi -I. -I/usr/local/Cellar/asdf/0.5.1/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi_c/libffi/include -Iinclude -I/usr/local/Cellar/asdf/0.5.1/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi_c/libffi/src -arch x86_64 -Wall -fexceptions -c /usr/local/Cellar/asdf/0.5.1/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi_c/libffi/src/prep_cif.c  -fno-common -DPIC -o src/.libs/prep_cif.o\r\n/bin/sh ./libtool  --tag=CC   --mode=compile clang -DHAVE_CONFIG_H -I. -I/usr/local/Cellar/asdf/0.5.1/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi_c/libffi  -I. -I/usr/local/Cellar/asdf/0.5.1/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi_c/libffi/include -Iinclude -I/usr/local/Cellar/asdf/0.5.1/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi_c/libffi/src   -arch x86_64  -Wall -fexceptions -c -o src/types.lo /usr/local/Cellar/asdf/0.5.1/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi_c/libffi/src/types.c\r\nlibtool: compile:  clang -DHAVE_CONFIG_H -I. -I/usr/local/Cellar/asdf/0.5.1/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi_c/libffi -I. -I/usr/local/Cellar/asdf/0.5.1/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi_c/libffi/include -Iinclude -I/usr/local/Cellar/asdf/0.5.1/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi_c/libffi/src -arch x86_64 -Wall -fexceptions -c /usr/local/Cellar/asdf/0.5.1/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi_c/libffi/src/types.c  -fno-common -DPIC -o src/.libs/types.o\r\n/bin/sh ./libtool  --tag=CC   --mode=compile clang -DHAVE_CONFIG_H -I. -I/usr/local/Cellar/asdf/0.5.1/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi_c/libffi  -I. -I/usr/local/Cellar/asdf/0.5.1/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi_c/libffi/include -Iinclude -I/usr/local/Cellar/asdf/0.5.1/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi_c/libffi/src   -arch x86_64  -Wall -fexceptions -c -o src/raw_api.lo /usr/local/Cellar/asdf/0.5.1/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi_c/libffi/src/raw_api.c\r\nlibtool: compile:  clang -DHAVE_CONFIG_H -I. -I/usr/local/Cellar/asdf/0.5.1/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi_c/libffi -I. -I/usr/local/Cellar/asdf/0.5.1/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi_c/libffi/include -Iinclude -I/usr/local/Cellar/asdf/0.5.1/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi_c/libffi/src -arch x86_64 -Wall -fexceptions -c /usr/local/Cellar/asdf/0.5.1/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi_c/libffi/src/raw_api.c  -fno-common -DPIC -o src/.libs/raw_api.o\r\n/bin/sh ./libtool  --tag=CC   --mode=compile clang -DHAVE_CONFIG_H -I. -I/usr/local/Cellar/asdf/0.5.1/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi_c/libffi  -I. -I/usr/local/Cellar/asdf/0.5.1/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi_c/libffi/include -Iinclude -I/usr/local/Cellar/asdf/0.5.1/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi_c/libffi/src   -arch x86_64  -Wall -fexceptions -c -o src/java_raw_api.lo /usr/local/Cellar/asdf/0.5.1/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi_c/libffi/src/java_raw_api.c\r\nlibtool: compile:  clang -DHAVE_CONFIG_H -I. -I/usr/local/Cellar/asdf/0.5.1/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi_c/libffi -I. -I/usr/local/Cellar/asdf/0.5.1/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi_c/libffi/include -Iinclude -I/usr/local/Cellar/asdf/0.5.1/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi_c/libffi/src -arch x86_64 -Wall -fexceptions -c /usr/local/Cellar/asdf/0.5.1/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi_c/libffi/src/java_raw_api.c  -fno-common -DPIC -o src/.libs/java_raw_api.o\r\n/bin/sh ./libtool  --tag=CC   --mode=compile clang -DHAVE_CONFIG_H -I. -I/usr/local/Cellar/asdf/0.5.1/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi_c/libffi  -I. -I/usr/local/Cellar/asdf/0.5.1/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi_c/libffi/include -Iinclude -I/usr/local/Cellar/asdf/0.5.1/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi_c/libffi/src   -arch x86_64  -Wall -fexceptions -c -o src/closures.lo /usr/local/Cellar/asdf/0.5.1/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi_c/libffi/src/closures.c\r\nlibtool: compile:  clang -DHAVE_CONFIG_H -I. -I/usr/local/Cellar/asdf/0.5.1/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi_c/libffi -I. -I/usr/local/Cellar/asdf/0.5.1/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi_c/libffi/include -Iinclude -I/usr/local/Cellar/asdf/0.5.1/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi_c/libffi/src -arch x86_64 -Wall -fexceptions -c /usr/local/Cellar/asdf/0.5.1/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi_c/libffi/src/closures.c  -fno-common -DPIC -o src/.libs/closures.o\r\n/bin/sh ./libtool  --tag=CC   --mode=compile clang -DHAVE_CONFIG_H -I. -I/usr/local/Cellar/asdf/0.5.1/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi_c/libffi  -I. -I/usr/local/Cellar/asdf/0.5.1/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi_c/libffi/include -Iinclude -I/usr/local/Cellar/asdf/0.5.1/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi_c/libffi/src   -arch x86_64  -Wall -fexceptions -c -o src/x86/ffi64.lo /usr/local/Cellar/asdf/0.5.1/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi_c/libffi/src/x86/ffi64.c\r\nlibtool: compile:  clang -DHAVE_CONFIG_H -I. -I/usr/local/Cellar/asdf/0.5.1/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi_c/libffi -I. -I/usr/local/Cellar/asdf/0.5.1/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi_c/libffi/include -Iinclude -I/usr/local/Cellar/asdf/0.5.1/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi_c/libffi/src -arch x86_64 -Wall -fexceptions -c /usr/local/Cellar/asdf/0.5.1/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi_c/libffi/src/x86/ffi64.c  -fno-common -DPIC -o src/x86/.libs/ffi64.o\r\n/bin/sh ./libtool    --mode=compile clang -DHAVE_CONFIG_H -I. -I/usr/local/Cellar/asdf/0.5.1/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi_c/libffi  -I. -I/usr/local/Cellar/asdf/0.5.1/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi_c/libffi/include -Iinclude -I/usr/local/Cellar/asdf/0.5.1/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi_c/libffi/src  -I. -I/usr/local/Cellar/asdf/0.5.1/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi_c/libffi/include -Iinclude -I/usr/local/Cellar/asdf/0.5.1/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi_c/libffi/src -arch x86_64  -c -o src/x86/unix64.lo /usr/local/Cellar/asdf/0.5.1/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi_c/libffi/src/x86/unix64.S\r\nlibtool: compile:  clang -DHAVE_CONFIG_H -I. -I/usr/local/Cellar/asdf/0.5.1/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi_c/libffi -I. -I/usr/local/Cellar/asdf/0.5.1/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi_c/libffi/include -Iinclude -I/usr/local/Cellar/asdf/0.5.1/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi_c/libffi/src -I. -I/usr/local/Cellar/asdf/0.5.1/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi_c/libffi/include -Iinclude -I/usr/local/Cellar/asdf/0.5.1/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi_c/libffi/src -arch x86_64 -c /usr/local/Cellar/asdf/0.5.1/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi_c/libffi/src/x86/unix64.S  -fno-common -DPIC -o src/x86/.libs/unix64.o\r\n/bin/sh ./libtool  --tag=CC   --mode=compile clang -DHAVE_CONFIG_H -I. -I/usr/local/Cellar/asdf/0.5.1/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi_c/libffi  -I. -I/usr/local/Cellar/asdf/0.5.1/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi_c/libffi/include -Iinclude -I/usr/local/Cellar/asdf/0.5.1/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi_c/libffi/src   -arch x86_64  -Wall -fexceptions -c -o src/x86/ffiw64.lo /usr/local/Cellar/asdf/0.5.1/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi_c/libffi/src/x86/ffiw64.c\r\nlibtool: compile:  clang -DHAVE_CONFIG_H -I. -I/usr/local/Cellar/asdf/0.5.1/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi_c/libffi -I. -I/usr/local/Cellar/asdf/0.5.1/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi_c/libffi/include -Iinclude -I/usr/local/Cellar/asdf/0.5.1/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi_c/libffi/src -arch x86_64 -Wall -fexceptions -c /usr/local/Cellar/asdf/0.5.1/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi_c/libffi/src/x86/ffiw64.c  -fno-common -DPIC -o src/x86/.libs/ffiw64.o\r\n/bin/sh ./libtool    --mode=compile clang -DHAVE_CONFIG_H -I. -I/usr/local/Cellar/asdf/0.5.1/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi_c/libffi  -I. -I/usr/local/Cellar/asdf/0.5.1/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi_c/libffi/include -Iinclude -I/usr/local/Cellar/asdf/0.5.1/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi_c/libffi/src  -I. -I/usr/local/Cellar/asdf/0.5.1/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi_c/libffi/include -Iinclude -I/usr/local/Cellar/asdf/0.5.1/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi_c/libffi/src -arch x86_64  -c -o src/x86/win64.lo /usr/local/Cellar/asdf/0.5.1/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi_c/libffi/src/x86/win64.S\r\nlibtool: compile:  clang -DHAVE_CONFIG_H -I. -I/usr/local/Cellar/asdf/0.5.1/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi_c/libffi -I. -I/usr/local/Cellar/asdf/0.5.1/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi_c/libffi/include -Iinclude -I/usr/local/Cellar/asdf/0.5.1/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi_c/libffi/src -I. -I/usr/local/Cellar/asdf/0.5.1/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi_c/libffi/include -Iinclude -I/usr/local/Cellar/asdf/0.5.1/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi_c/libffi/src -arch x86_64 -c /usr/local/Cellar/asdf/0.5.1/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi_c/libffi/src/x86/win64.S  -fno-common -DPIC -o src/x86/.libs/win64.o\r\n/bin/sh ./libtool  --tag=CC   --mode=link clang  -arch x86_64  -Wall -fexceptions  -arch x86_64 -o libffi_convenience.la  src/prep_cif.lo src/types.lo src/raw_api.lo src/java_raw_api.lo src/closures.lo   src/x86/ffi64.lo src/x86/unix64.lo src/x86/ffiw64.lo src/x86/win64.lo\r\nlibtool: link: ar cru .libs/libffi_convenience.a src/.libs/prep_cif.o src/.libs/types.o src/.libs/raw_api.o src/.libs/java_raw_api.o src/.libs/closures.o src/x86/.libs/ffi64.o src/x86/.libs/unix64.o src/x86/.libs/ffiw64.o src/x86/.libs/win64.o\r\nlibtool: link: ranlib .libs/libffi_convenience.a\r\nlibtool: link: ( cd \".libs\" && rm -f \"libffi_convenience.la\" && ln -s \"../libffi_convenience.la\" \"libffi_convenience.la\" )\r\n/bin/sh ./libtool  --tag=CC   --mode=link clang  -arch x86_64  -Wall -fexceptions -no-undefined -version-info `grep -v '^#' /usr/local/Cellar/asdf/0.5.1/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi_c/libffi/libtool-version`   '-arch' 'x86_64'  -arch x86_64 -o libffi.la -rpath /usr/local/lib src/prep_cif.lo src/types.lo src/raw_api.lo src/java_raw_api.lo src/closures.lo  src/x86/ffi64.lo src/x86/unix64.lo src/x86/ffiw64.lo src/x86/win64.lo\r\nlibtool: link:  clang -dynamiclib  -o .libs/libffi.7.dylib  src/.libs/prep_cif.o src/.libs/types.o src/.libs/raw_api.o src/.libs/java_raw_api.o src/.libs/closures.o src/x86/.libs/ffi64.o src/x86/.libs/unix64.o src/x86/.libs/ffiw64.o src/x86/.libs/win64.o    -arch x86_64 -arch x86_64 -arch x86_64   -install_name  /usr/local/lib/libffi.7.dylib -compatibility_version 9 -current_version 9.0 -Wl,-single_module\r\nld: library not found for -lgcc_s.10.4\r\nclang: error: linker command failed with exit code 1 (use -v to see invocation)\r\nmake[3]: *** [libffi.la] Error 1\r\nmake[2]: *** [all-recursive] Error 1\r\nmake[1]: *** [all] Error 2\r\nmake: *** [\"/usr/local/Cellar/asdf/0.5.1/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi_c\"/libffi-x86_64/.libs/libffi_convenience.a] Error 2\r\n\r\nmake failed, exit code 2\r\n\r\nGem files will remain installed in /usr/local/Cellar/asdf/0.5.1/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/gems/ffi-1.9.25 for inspection.\r\nResults logged to /usr/local/Cellar/asdf/0.5.1/installs/ruby/2.5.1/lib/ruby/gems/2.5.0/extensions/x86_64-darwin-18/2.5.0-static/ffi-1.9.25/gem_make.out\r\n```\r\n\r\nI _am_ able to build other gems with native components (nokogiri went fine, for one) so I'm pretty sure my build chain is at least minimally sane:\r\n\r\n```\r\n$ sudo xcode-select -p\r\n/Library/Developer/CommandLineTools\r\n\r\n$ ruby --version\r\nruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-darwin18]\r\n\r\n$ gem --version\r\n2.7.6\r\n\r\n$ gcc --version\r\nConfigured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/c++/4.2.1\r\nApple LLVM version 10.0.0 (clang-1000.10.44.2)\r\nTarget: x86_64-apple-darwin18.0.0\r\nThread model: posix\r\nInstalledDir: /Library/Developer/CommandLineTools/usr/bin\r\n\r\n$ clang --version\r\nApple LLVM version 10.0.0 (clang-1000.10.44.2)\r\nTarget: x86_64-apple-darwin18.0.0\r\nThread model: posix\r\nInstalledDir: /Library/Developer/CommandLineTools/usr/bin\r\n```\r\n\r\nI do have `libffi` installed through brew, but I'm not exactly sure if that's relevant to anything.\r\n"},"comment":{"url":"https://api.github.com/repos/ffi/ffi/issues/comments/431659332","html_url":"https://github.com/ffi/ffi/issues/651#issuecomment-431659332","issue_url":"https://api.github.com/repos/ffi/ffi/issues/651","id":431659332,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMTY1OTMzMg==","user":{"login":"sandergroen","id":479208,"node_id":"MDQ6VXNlcjQ3OTIwOA==","avatar_url":"https://avatars3.githubusercontent.com/u/479208?v=4","gravatar_id":"","url":"https://api.github.com/users/sandergroen","html_url":"https://github.com/sandergroen","followers_url":"https://api.github.com/users/sandergroen/followers","following_url":"https://api.github.com/users/sandergroen/following{/other_user}","gists_url":"https://api.github.com/users/sandergroen/gists{/gist_id}","starred_url":"https://api.github.com/users/sandergroen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sandergroen/subscriptions","organizations_url":"https://api.github.com/users/sandergroen/orgs","repos_url":"https://api.github.com/users/sandergroen/repos","events_url":"https://api.github.com/users/sandergroen/events{/privacy}","received_events_url":"https://api.github.com/users/sandergroen/received_events","type":"User","site_admin":false},"created_at":"2018-10-21T11:01:24Z","updated_at":"2018-10-21T11:01:24Z","author_association":"NONE","body":"@rahearn I tried that already but with no luck."}}
{"actor":{"display_login":"sandergroen"}}