Skip to content

Commit

Permalink
Fix dyld: lazy symbol binding failed: Symbol not found error
Browse files Browse the repository at this point in the history
Build fails with:

```
dyld: lazy symbol binding failed: Symbol not found: _ffi_prep_closure_loc
  Referenced from: /Users/christopherashton/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/ffi-1.13.1/lib/ffi_c.bundle
  Expected in: /usr/lib/libffi.dylib

dyld: Symbol not found: _ffi_prep_closure_loc
  Referenced from: /Users/christopherashton/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/ffi-1.13.1/lib/ffi_c.bundle
  Expected in: /usr/lib/libffi.dylib

[1]    66481 abort      GITHUB_TOKEN=$(cat ~/github_token.txt) NO_CONTRACTS=true bundle exec middlema
```

Downgrading to lower version fixes it.
It looks as though this should have been fixed in
ffi/ffi#787, but we're seeing the same
error as originally reported.
  • Loading branch information
ChrisBAshton committed Jun 24, 2020
1 parent 886ddcb commit 9bc604e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions Gemfile
Expand Up @@ -4,6 +4,7 @@ ruby File.read(".ruby-version").chomp

gem "activesupport", "~> 5.2"
gem "capybara", "~> 3.33.0"
gem "ffi", "1.12"
gem "rake"
gem "rspec", "~> 3.9"
gem "rubocop-govuk"
Expand Down
3 changes: 2 additions & 1 deletion Gemfile.lock
Expand Up @@ -63,7 +63,7 @@ GEM
faraday (~> 1.0)
fast_blank (1.0.0)
fastimage (2.1.7)
ffi (1.13.1)
ffi (1.12.0)
github-markdown (0.6.9)
govuk_schemas (4.0.0)
json-schema (~> 2.8.0)
Expand Down Expand Up @@ -278,6 +278,7 @@ DEPENDENCIES
capybara (~> 3.33.0)
faraday-http-cache (~> 2.2.0)
faraday_middleware (~> 1.0.0)
ffi (= 1.12)
github-markdown
govuk_schemas (~> 4.0.0)
govuk_tech_docs
Expand Down

0 comments on commit 9bc604e

Please sign in to comment.