Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

ld: symbol(s) not found for architecture x86_64 #15

Copy link
Copy link
@phdoerfler

Description

@phdoerfler
Issue body actions

I'm on macOS and ran into this issue:

rustup update
git clone https://github.com/rochacbruno/rust-python-example
cd rust-python-example
make compile-rust

then I was greeted by this:

image

which after a lot of scrolling ended in this:

image

error: linking with `cc` failed: exit code: 1
  |
  = note: "cc" "-m64" "-L" …

…

 "-lSystem" "-lresolv" "-lpthread" "-lc" "-lm" "-dynamiclib" "-Wl,-dylib"
  = note: Undefined symbols for architecture x86_64:
            "_PyModule_GetFilename", referenced from:

…

                cpython::err::result_cast_from_owned_ptr::h1ac7cdf8da86aadd in libcpython-27991f0cb68c1b96.rlib(cpython-27991f0cb68c1b96.cpython0-1ffe5a9ffc73bff7490d17c35d3f3537.rs.rcgu.o)
                ...
          ld: symbol(s) not found for architecture x86_64
          clang: error: linker command failed with exit code 1 (use -v to see invocation)

What am I missing?

alexfromapex, laertispappas, alexandrebrg and JustAnotherCodemonkeyphdoerfler, RTLS and RickyEsclapon

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.