Skip to content

make is unsuccessful on MacOS #3

@abhipras

Description

@abhipras

When I run make, I get the following error

                                             ^~~~~~~~~~~~~~~~~~~
error: linking with `cc` failed: exit code: 1
note: "cc" "-m64" "-L" "/usr/local/lib/rustlib/x86_64-apple-darwin/lib" "-o" "/Users/macpro/erlang_projects/erlang-rust-nif/rust_src/target/debug/liber-75adb9f2bb77bd1a.dylib" "/Users/macpro/erlang_projects/erlang-rust-nif/rust_src/target/debug/er-75adb9f2bb77bd1a.o" "-Wl,-force_load,/usr/local/lib/rustlib/x86_64-apple-darwin/lib/libmorestack.a" "/Users/macpro/erlang_projects/erlang-rust-nif/rust_src/target/debug/er-75adb9f2bb77bd1a.metadata.o" "-Wl,-dead_strip" "-nodefaultlibs" "/usr/local/lib/rustlib/x86_64-apple-darwin/lib/libstd-4e7c5e5c.rlib" "/usr/local/lib/rustlib/x86_64-apple-darwin/lib/libcollections-4e7c5e5c.rlib" "/usr/local/lib/rustlib/x86_64-apple-darwin/lib/libunicode-4e7c5e5c.rlib" "/usr/local/lib/rustlib/x86_64-apple-darwin/lib/librand-4e7c5e5c.rlib" "/usr/local/lib/rustlib/x86_64-apple-darwin/lib/liballoc-4e7c5e5c.rlib" "/usr/local/lib/rustlib/x86_64-apple-darwin/lib/liblibc-4e7c5e5c.rlib" "/usr/local/lib/rustlib/x86_64-apple-darwin/lib/libcore-4e7c5e5c.rlib" "-L" "/Users/macpro/erlang_projects/erlang-rust-nif/rust_src/target/debug" "-L" "/Users/macpro/erlang_projects/erlang-rust-nif/rust_src/target/debug/deps" "-L" "/usr/local/lib/rustlib/x86_64-apple-darwin/lib" "-L" "/Users/macpro/erlang_projects/erlang-rust-nif/rust_src/.rust/lib/x86_64-apple-darwin" "-L" "/Users/macpro/erlang_projects/erlang-rust-nif/rust_src/lib/x86_64-apple-darwin" "-lSystem" "-lpthread" "-lc" "-lm" "-dynamiclib" "-Wl,-dylib" "-lcompiler-rt"
note: ld: warning: directory not found for option '-L/Users/macpro/erlang_projects/erlang-rust-nif/rust_src/.rust/lib/x86_64-apple-darwin'
ld: warning: directory not found for option '-L/Users/macpro/erlang_projects/erlang-rust-nif/rust_src/lib/x86_64-apple-darwin'
Undefined symbols for architecture x86_64:
  "_enif_make_badarg", referenced from:
      native_add::__rust_abi in er-75adb9f2bb77bd1a.o
  "_enif_get_int", referenced from:
      native_add::__rust_abi in er-75adb9f2bb77bd1a.o
  "_enif_make_int", referenced from:
      native_add::__rust_abi in er-75adb9f2bb77bd1a.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

error: aborting due to previous error
Could not compile `er`.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions