Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tracking updates to dependencies #181

Closed
phyninja opened this issue Sep 28, 2020 · 1 comment
Closed

Tracking updates to dependencies #181

phyninja opened this issue Sep 28, 2020 · 1 comment

Comments

@phyninja
Copy link

phyninja commented Sep 28, 2020

On MacOS Catalina (10.15.7), bundle install failed on the following dependencies, with similar error codes:
ffi (1.9.18) [Dependency tree: guard-rspec (4.7.3) -> guard (2.14.1) -> listen (3.1.5) -> rb-inotify (0.9.10) -> ffi (1.9.18)]
pg (0.18.4)
thin (1.7.2)

As documented on several sites, the error relates to the fact that

Clang now enables -Werror=implicit-function-declaration by default:

Clang now reports an error when you use a function without an explicit declaration when building C or Objective-C code for macOS (-Werror=implicit-function-declaration flag is on). This additional error detection unifies Clang’s behavior for iOS/tvOS and macOS 64-bit targets for this diagnostic. (49917738)

I was able to workaround the issues by using the following commands:

bundle config build.ffi --with-cflags="-Wno-error=implicit-function-declaration"
bundle config build.pg --with-cflags="-Wno-error=implicit-function-declaration"
bundle config build.thin --with-cflags="-Wno-error=implicit-function-declaration"
bundle install

References:
ffi/ffi#611 (comment)
https://stackoverflow.com/questions/36455625/postgresql-gem-install-pg-0-18-4-passes-bundle-install-fails

Originally posted by @rylanb in #167 (comment)

@phyninja
Copy link
Author

Closed because the issue is tied to a particular machine['s configuration], and not the app.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant