Thanks to visit codestin.com
Credit goes to github.com

Skip to content

1.17.1-x86_64-linux-gnu, LoadError: cannot load such file -- ffi_c #1139

@tpowell-progress

Description

@tpowell-progress

Getting an error with 1.17.1 that rolling back to 1.17.0 resolves:

Failure/Error: require "ffi" unless defined?(FFI)
 
LoadError:
  cannot load such file -- ffi_c
# /hab/pkgs/ci/chef-infra-client/18.6.3/20250107202505/vendor/gems/ffi-1.17.1-x86_64-linux-gnu/lib/ffi.rb:5:in `rescue in <top (required)>'
# /hab/pkgs/ci/chef-infra-client/18.6.3/20250107202505/vendor/gems/ffi-1.17.1-x86_64-linux-gnu/lib/ffi.rb:2:in `<top (required)>'
# ./lib/chef/win32/api.rb:20:in `<top (required)>'
# ./lib/chef/win32/registry.rb:20:in `require_relative'
# ./lib/chef/win32/registry.rb:20:in `<top (required)>'
# ./lib/chef/http/authenticator.rb:22:in `require_relative'
# ./lib/chef/http/authenticator.rb:22:in `<top (required)>'
# ./lib/chef/server_api.rb:20:in `require_relative'
# ./lib/chef/server_api.rb:20:in `<top (required)>'
# ./lib/chef/search/query.rb:21:in `require_relative'
# ./lib/chef/search/query.rb:21:in `<top (required)>'
# ./lib/chef/dsl/data_query.rb:19:in `require_relative'

Link to log

This is also showing up as an error with chef/ffi-libarchive loading.

ffi-libarchive could not be loaded, libarchive is probably not installed on system, archive_file will not be available

ffi is installed via a post-bundle-install.rb step in our tests, which does a

    system("gem build #{gem_name}.gemspec") or raise "gem build failed"
    system("gem install #{gem_name}*.gem --conservative --minimal-deps --no-document") or raise "gem install failed"

which may be part of the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions