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

Disable chained fixups on macOS to fix M1 build errors with C extensions #7086

Closed
wants to merge 1 commit into from

Conversation

stanhu
Copy link
Contributor

@stanhu stanhu commented Jan 7, 2023

With XCode 14, building with -undefined dynamic_lookup results in this warning message:

ld: warning: -undefined dynamic_lookup may not work with chained fixups

This warning causes the configure script to believe that -undefined dynamic_lookup is not available on the system since stderr is not empty. However, omitting this flag breaks some gems with C extensions that are not ready for this change.

Relates to https://bugs.ruby-lang.org/issues/19005

With XCode 14, building with `-undefined dynamic_lookup` results in
this warning message:

```
ld: warning: -undefined dynamic_lookup may not work with chained fixups
```

This warning causes the `configure` script to believe that `-undefined
dynamic_lookup` is not available on the system since stderr is not
empty. However, omitting this flag breaks some gems with C extensions
that are not ready for this change.

Relates to https://bugs.ruby-lang.org/issues/19005
@stanhu
Copy link
Contributor Author

stanhu commented May 23, 2023

@nobu Could you take a look at this? Our team is now hitting this failure now that we've updated to Ruby 3.1.4.

@hsbt
Copy link
Member

hsbt commented May 24, 2023

Xcode 14.3 reverted behavior of dynamic_lookup. We need to consider how we handle bundle_loader and dynamic_lookup.

@stanhu
Copy link
Contributor Author

stanhu commented Aug 23, 2023

Closing because this is no longer needed with XCode 14.3, which ships with clang 14.0.3: python/cpython#97524 (comment)

@stanhu stanhu closed this Aug 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants