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

The Compilation In Mac M1 is Failing because some missing config after updating rustler to 0.24 0r 0.25 #119

Open
edwardcashmere opened this issue Apr 29, 2022 · 0 comments

Comments

@edwardcashmere
Copy link

==> ex_secp256k1
Compiling 1 file (.ex)
Compiling crate exsecp256k1 in release mode (native/exsecp256k1)

== Compilation error in file lib/ex_secp256k1.ex ==
** (RuntimeError) Compiling on macOS requires special link args in order to compile
correctly.

To remove this error, please create .cargo/config
with the following content:

   [target.'cfg(target_os = "macos")']
   rustflags = [
       "-C", "link-arg=-undefined",
       "-C", "link-arg=dynamic_lookup",
   ]

See https://developer.apple.com/library/archive/documentation/DeveloperTools/Conceptual/MachOTopics/1-Articles/executing_files.html
for more details.

(rustler 0.25.0) lib/rustler/compiler.ex:100: Rustler.Compiler.ensure_platform_requirements!/3
(rustler 0.25.0) lib/rustler/compiler.ex:25: Rustler.Compiler.compile_crate/2
@edwardcashmere edwardcashmere changed the title The Compilation In Mac is Failing because some missing config after updating rustler to 0.24 0r 0.25 The Compilation In Mac M1 is Failing because some missing config after updating rustler to 0.24 0r 0.25 Apr 29, 2022
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