Closed tom-dr closed 11 months ago
Ok I uninstall and reinstall ruby and it's good for me.
Update: solved it by renaming the llvm@11
folder inside /opt/homebrew/Cellar/
I'm having the same issue. Uninstalling and reinstalling did not work.
── external error ───────────────────────────────────────────────────────────────
Error coming from `bundle install`
Command failed with exit code 5: bundle install
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory:
/Users/tom/Library/Caches/shopify-gems-nodejs/ruby/3.3.0/gems/ffi-1.16.3/ext/ffi_c
/opt/homebrew/opt/ruby/bin/ruby extconf.rb
checking for pkg-config for libffi... *** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.
Provided configuration options:
--with-opt-dir
--with-opt-include=${opt-dir}/include
--without-opt-include
--with-opt-lib=${opt-dir}/lib
--without-opt-lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/opt/homebrew/Cellar/ruby/3.3.0/bin/$(RUBY_BASE_NAME)
--with-ffi_c-dir
--without-ffi_c-dir
--with-ffi_c-include=${ffi_c-dir}/include
--without-ffi_c-include
--with-ffi_c-lib=${ffi_c-dir}/lib
--without-ffi_c-lib
--enable-debug
--disable-debug
--enable-system-libffi
--disable-system-libffi
--with-libffi-dir
--without-libffi-dir
--with-libffi-include=${libffi-dir}/include
--without-libffi-include
--with-libffi-lib=${libffi-dir}/lib
--without-libffi-lib
--with-libffi-config
--without-libffi-config
--with-pkg-config
--without-pkg-config
/opt/homebrew/Cellar/ruby/3.3.0/lib/ruby/3.3.0/mkmf.rb:480:in `try_do': The
compiler failed to generate an executable file. (RuntimeError)
You have to install development tools first.
from /opt/homebrew/Cellar/ruby/3.3.0/lib/ruby/3.3.0/mkmf.rb:573:in `try_link0'
from /opt/homebrew/Cellar/ruby/3.3.0/lib/ruby/3.3.0/mkmf.rb:591:in `try_link'
from /opt/homebrew/Cellar/ruby/3.3.0/lib/ruby/3.3.0/mkmf.rb:683:in
`try_ldflags'
from /opt/homebrew/Cellar/ruby/3.3.0/lib/ruby/3.3.0/mkmf.rb:1896:in `block in
pkg_config'
from /opt/homebrew/Cellar/ruby/3.3.0/lib/ruby/3.3.0/mkmf.rb:983:in `block in
checking_for'
from /opt/homebrew/Cellar/ruby/3.3.0/lib/ruby/3.3.0/mkmf.rb:344:in `block (2
levels) in postpone'
from /opt/homebrew/Cellar/ruby/3.3.0/lib/ruby/3.3.0/mkmf.rb:314:in `open'
from /opt/homebrew/Cellar/ruby/3.3.0/lib/ruby/3.3.0/mkmf.rb:344:in `block in
postpone'
from /opt/homebrew/Cellar/ruby/3.3.0/lib/ruby/3.3.0/mkmf.rb:314:in `open'
from /opt/homebrew/Cellar/ruby/3.3.0/lib/ruby/3.3.0/mkmf.rb:340:in `postpone'
from /opt/homebrew/Cellar/ruby/3.3.0/lib/ruby/3.3.0/mkmf.rb:982:in
`checking_for'
from /opt/homebrew/Cellar/ruby/3.3.0/lib/ruby/3.3.0/mkmf.rb:1862:in
`pkg_config'
from extconf.rb:9:in `system_libffi_usable?'
from extconf.rb:46:in `<main>'
To see why this extension failed to compile, please check the mkmf.log which can
be found here:
/Users/tom/Library/Caches/shopify-gems-nodejs/ruby/3.3.0/extensions/arm64-darwin-23/3.3.0/ffi-1.16.3/mkmf.log
extconf failed, exit code 1
Gem files will remain installed in
/Users/tom/Library/Caches/shopify-gems-nodejs/ruby/3.3.0/gems/ffi-1.16.3 for
inspection.
Results logged to
/Users/tom/Library/Caches/shopify-gems-nodejs/ruby/3.3.0/extensions/arm64-darwin-23/3.3.0/ffi-1.16.3/gem_make.out
/opt/homebrew/Cellar/ruby/3.3.0/lib/ruby/3.3.0/rubygems/ext/builder.rb:125:in
`run'
/opt/homebrew/Cellar/ruby/3.3.0/lib/ruby/3.3.0/rubygems/ext/ext_conf_builder.rb:28:in
`build'
/opt/homebrew/Cellar/ruby/3.3.0/lib/ruby/3.3.0/rubygems/ext/builder.rb:193:in
`build_extension'
/opt/homebrew/Cellar/ruby/3.3.0/lib/ruby/3.3.0/rubygems/ext/builder.rb:227:in
`block in build_extensions'
/opt/homebrew/Cellar/ruby/3.3.0/lib/ruby/3.3.0/rubygems/ext/builder.rb:224:in
`each'
/opt/homebrew/Cellar/ruby/3.3.0/lib/ruby/3.3.0/rubygems/ext/builder.rb:224:in
`build_extensions'
/opt/homebrew/Cellar/ruby/3.3.0/lib/ruby/3.3.0/rubygems/installer.rb:852:in
`build_extensions'
/opt/homebrew/Cellar/ruby/3.3.0/lib/ruby/3.3.0/bundler/rubygems_gem_installer.rb:76:in
`build_extensions'
/opt/homebrew/Cellar/ruby/3.3.0/lib/ruby/3.3.0/bundler/rubygems_gem_installer.rb:28:in
`install'
/opt/homebrew/Cellar/ruby/3.3.0/lib/ruby/3.3.0/bundler/source/rubygems.rb:205:in
`install'
/opt/homebrew/Cellar/ruby/3.3.0/lib/ruby/3.3.0/bundler/installer/gem_installer.rb:54:in
`install'
/opt/homebrew/Cellar/ruby/3.3.0/lib/ruby/3.3.0/bundler/installer/gem_installer.rb:16:in
`install_from_spec'
/opt/homebrew/Cellar/ruby/3.3.0/lib/ruby/3.3.0/bundler/installer/parallel_installer.rb:132:in
`do_install'
/opt/homebrew/Cellar/ruby/3.3.0/lib/ruby/3.3.0/bundler/installer/parallel_installer.rb:123:in
`block in worker_pool'
/opt/homebrew/Cellar/ruby/3.3.0/lib/ruby/3.3.0/bundler/worker.rb:62:in
`apply_func'
/opt/homebrew/Cellar/ruby/3.3.0/lib/ruby/3.3.0/bundler/worker.rb:57:in `block
in process_queue'
<internal:kernel>:187:in `loop'
/opt/homebrew/Cellar/ruby/3.3.0/lib/ruby/3.3.0/bundler/worker.rb:54:in
`process_queue'
/opt/homebrew/Cellar/ruby/3.3.0/lib/ruby/3.3.0/bundler/worker.rb:90:in `block
(2 levels) in create_threads'
An error occurred while installing ffi (1.16.3), and Bundler cannot continue.
In Gemfile:
listen was resolved to 3.7.1, which depends on
rb-inotify was resolved to 0.10.1, which depends on
ffi
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory:
/Users/tom/Library/Caches/shopify-gems-nodejs/ruby/3.3.0/gems/racc-1.7.3/ext/racc/cparse
/opt/homebrew/opt/ruby/bin/ruby extconf.rb
creating Makefile
current directory:
/Users/tom/Library/Caches/shopify-gems-nodejs/ruby/3.3.0/gems/racc-1.7.3/ext/racc/cparse
make DESTDIR\= sitearchdir\=./.gem.20240111-72023-bmsce4
sitelibdir\=./.gem.20240111-72023-bmsce4 clean
current directory:
/Users/tom/Library/Caches/shopify-gems-nodejs/ruby/3.3.0/gems/racc-1.7.3/ext/racc/cparse
make DESTDIR\= sitearchdir\=./.gem.20240111-72023-bmsce4
sitelibdir\=./.gem.20240111-72023-bmsce4
compiling cparse.c
warning: unknown warning option '-Wno-cast-function-type'; did you mean
'-Wno-bad-function-cast'? [-Wunknown-warning-option]
1 warning generated.
linking shared-object racc/cparse.bundle
dyld[72134]: Symbol not found:
__ZNKSt3__115basic_stringbufIcNS_11char_traitsIcEENS_9allocatorIcEEE3strEv
Referenced from: <611B08D9-8ED8-341E-B8C7-3D646A6D4BC1>
/opt/homebrew/Cellar/llvm@11/11.1.0_4/lib/libLLVM.dylib
Expected in: <C84AC400-FE17-31D8-BE42-AF5C773A86D8>
/opt/homebrew/Cellar/llvm@11/11.1.0_4/lib/libc++.1.0.dylib
clang-11: error: unable to execute command: Abort trap: 6
clang-11: error: linker command failed due to signal (use -v to see invocation)
make: *** [cparse.bundle] Error 254
make failed, exit code 2
Gem files will remain installed in
/Users/tom/Library/Caches/shopify-gems-nodejs/ruby/3.3.0/gems/racc-1.7.3 for
inspection.
Results logged to
/Users/tom/Library/Caches/shopify-gems-nodejs/ruby/3.3.0/extensions/arm64-darwin-23/3.3.0/racc-1.7.3/gem_make.out
/opt/homebrew/Cellar/ruby/3.3.0/lib/ruby/3.3.0/rubygems/ext/builder.rb:125:in
`run'
/opt/homebrew/Cellar/ruby/3.3.0/lib/ruby/3.3.0/rubygems/ext/builder.rb:51:in
`block in make'
/opt/homebrew/Cellar/ruby/3.3.0/lib/ruby/3.3.0/rubygems/ext/builder.rb:43:in
`each'
/opt/homebrew/Cellar/ruby/3.3.0/lib/ruby/3.3.0/rubygems/ext/builder.rb:43:in
`make'
/opt/homebrew/Cellar/ruby/3.3.0/lib/ruby/3.3.0/rubygems/ext/ext_conf_builder.rb:42:in
`build'
/opt/homebrew/Cellar/ruby/3.3.0/lib/ruby/3.3.0/rubygems/ext/builder.rb:193:in
`build_extension'
/opt/homebrew/Cellar/ruby/3.3.0/lib/ruby/3.3.0/rubygems/ext/builder.rb:227:in
`block in build_extensions'
/opt/homebrew/Cellar/ruby/3.3.0/lib/ruby/3.3.0/rubygems/ext/builder.rb:224:in
`each'
/opt/homebrew/Cellar/ruby/3.3.0/lib/ruby/3.3.0/rubygems/ext/builder.rb:224:in
`build_extensions'
/opt/homebrew/Cellar/ruby/3.3.0/lib/ruby/3.3.0/rubygems/installer.rb:852:in
`build_extensions'
/opt/homebrew/Cellar/ruby/3.3.0/lib/ruby/3.3.0/bundler/rubygems_gem_installer.rb:76:in
`build_extensions'
/opt/homebrew/Cellar/ruby/3.3.0/lib/ruby/3.3.0/bundler/rubygems_gem_installer.rb:28:in
`install'
/opt/homebrew/Cellar/ruby/3.3.0/lib/ruby/3.3.0/bundler/source/rubygems.rb:205:in
`install'
/opt/homebrew/Cellar/ruby/3.3.0/lib/ruby/3.3.0/bundler/installer/gem_installer.rb:54:in
`install'
/opt/homebrew/Cellar/ruby/3.3.0/lib/ruby/3.3.0/bundler/installer/gem_installer.rb:16:in
`install_from_spec'
/opt/homebrew/Cellar/ruby/3.3.0/lib/ruby/3.3.0/bundler/installer/parallel_installer.rb:132:in
`do_install'
/opt/homebrew/Cellar/ruby/3.3.0/lib/ruby/3.3.0/bundler/installer/parallel_installer.rb:123:in
`block in worker_pool'
/opt/homebrew/Cellar/ruby/3.3.0/lib/ruby/3.3.0/bundler/worker.rb:62:in
`apply_func'
/opt/homebrew/Cellar/ruby/3.3.0/lib/ruby/3.3.0/bundler/worker.rb:57:in `block
in process_queue'
<internal:kernel>:187:in `loop'
/opt/homebrew/Cellar/ruby/3.3.0/lib/ruby/3.3.0/bundler/worker.rb:54:in
`process_queue'
/opt/homebrew/Cellar/ruby/3.3.0/lib/ruby/3.3.0/bundler/worker.rb:90:in `block
(2 levels) in create_threads'
An error occurred while installing racc (1.7.3), and Bundler cannot continue.
In Gemfile:
theme-check was resolved to 1.15.0, which depends on
nokogiri was resolved to 1.14.5, which depends on
racc
Fetching gem metadata from https://rubygems.org/..........
Resolving dependencies...
Installing racc 1.7.3 with native extensions
Installing ffi 1.16.3 with native extensions```
same issue with same logs, anyone find a solution?
facing same issue...please share solution if anyone have
Please confirm that you have:
In which of these areas are you experiencing a problem?
Theme, Other
Expected behavior
Run the dev serveur
Actual behavior
A error with rubby
Verbose output
Reproduction steps
shopify theme dev
commandOperating System
Windows 10
Shopify CLI version (check your project's
package.json
if you're not sure)3.52.0
Shell
Cygwin, poswershell
Node version (run
node -v
if you're not sure)v20.10.0
What language and version are you using in your application?
Ruby 3.1.3p185, Node 20.10.0, @shopify/cli/3.52.0