下記のエラーで困っています。
xcodeはインストールしていますが、解決しません。
Ruby
1Building native extensions. This could take a while... 2ERROR: Error installing ffi: 3 ERROR: Failed to build gem native extension. 4 5 current directory: /Users/keitatsukaguchi/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/ffi-1.9.18/ext/ffi_c 6/Users/keitatsukaguchi/.rbenv/versions/2.7.2/bin/ruby -I /Users/keitatsukaguchi/.rbenv/versions/2.7.2/lib/ruby/2.7.0 -r ./siteconf20201213-9752-f24x5l.rb extconf.rb 7checking for ffi_call() in -lffi... yes 8checking for ffi_prep_closure()... yes 9checking for ffi_raw_call()... yes 10checking for ffi_prep_raw_closure()... yes 11checking for shlwapi.h... no 12checking for rb_thread_blocking_region()... no 13checking for rb_thread_call_with_gvl()... yes 14checking for rb_thread_call_without_gvl()... yes 15checking for ffi_prep_cif_var()... yes 16creating extconf.h 17creating Makefile 18 19current directory: /Users/keitatsukaguchi/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/ffi-1.9.18/ext/ffi_c 20make "DESTDIR=" clean 21 22current directory: /Users/keitatsukaguchi/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/ffi-1.9.18/ext/ffi_c 23make "DESTDIR=" 24compiling AbstractMemory.c 25compiling ArrayType.c 26compiling Buffer.c 27compiling Call.c 28Call.c:355:5: error: implicit declaration of function 'rb_thread_call_without_gvl' is invalid in C99 [-Werror,-Wimplicit-function-declaration] 29 rbffi_thread_blocking_region(call_blocking_function, data, (void *) -1, NULL); 30 ^ 31./Thread.h:78:39: note: expanded from macro 'rbffi_thread_blocking_region' 32# define rbffi_thread_blocking_region rb_thread_call_without_gvl 33 ^ 34Call.c:409:20: warning: incompatible pointer types passing 'VALUE (void *)' (aka 'unsigned long (void *)') to parameter of type 'VALUE (*)(VALUE)' (aka 'unsigned long (*)(unsigned long)') [-Wincompatible-pointer-types] 35 rb_rescue2(rbffi_do_blocking_call, (VALUE) bc, rbffi_save_frame_exception, (VALUE) &frame, rb_eException, (VALUE) 0); 36 ^~~~~~~~~~~~~~~~~~~~~~ 37/Users/keitatsukaguchi/.rbenv/versions/2.7.2/include/ruby-2.7.0/ruby/ruby.h:1988:25: note: passing argument to parameter here 38VALUE rb_rescue2(VALUE(*)(VALUE),VALUE,VALUE(*)(VALUE,VALUE),VALUE,...); 39 ^ 40Call.c:409:56: warning: incompatible pointer types passing 'VALUE (void *, VALUE)' (aka 'unsigned long (void *, unsigned long)') to parameter of type 'VALUE (*)(VALUE, VALUE)' (aka 'unsigned long (*)(unsigned long, unsigned long)') [-Wincompatible-pointer-types] 41 rb_rescue2(rbffi_do_blocking_call, (VALUE) bc, rbffi_save_frame_exception, (VALUE) &frame, rb_eException, (VALUE) 0); 42 ^~~~~~~~~~~~~~~~~~~~~~~~~~ 43/Users/keitatsukaguchi/.rbenv/versions/2.7.2/include/ruby-2.7.0/ruby/ruby.h:1988:47: note: passing argument to parameter here 44VALUE rb_rescue2(VALUE(*)(VALUE),VALUE,VALUE(*)(VALUE,VALUE),VALUE,...); 45 ^ 462 warnings and 1 error generated. 47make: *** [Call.o] Error 1 48 49make failed, exit code 2 50 51Gem files will remain installed in /Users/keitatsukaguchi/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/ffi-1.9.18 for inspection. 52Results logged to /Users/keitatsukaguchi/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/extensions/x86_64-darwin-19/2.7.0/ffi-1.9.18/gem_make.out
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。