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

Linking errors when running cargo build from root #541

Open
jkoppel opened this issue Jan 19, 2024 · 1 comment
Open

Linking errors when running cargo build from root #541

jkoppel opened this issue Jan 19, 2024 · 1 comment

Comments

@jkoppel
Copy link
Collaborator

jkoppel commented Jan 19, 2024

When I run cargo build from the root, I get this linker error:

error: linking with `cc` failed: exit status: 1
  |
  = note: env -u = <long line elided>
  = note: Undefined symbols for architecture x86_64:
            "_PyBaseObject_Type", referenced from:
                _$LT$pyo3..pycell..PyCellBase$LT$U$GT$$u20$as$u20$pyo3..pycell..PyCellLayout$LT$T$GT$$GT$::tp_dealloc::h5fec098c6e823769 in trustfall.4c9ugojfh5lrbt6o.rcgu.o
                _$LT$pyo3..types..any..PyAny$u20$as$u20$pyo3..type_object..PyTypeInfo$GT$::type_object_raw::_$u7b$$u7b$closure$u7d$$u7d$::h3fb28d9833d40bab in trustfall.4fxvjwornba5q3xr.rcgu.o
                _$LT$pyo3..pyclass_init..PyNativeTypeInitializer$LT$T$GT$$u20$as$u20$pyo3..pyclass_init..PyObjectInit$LT$T$GT$$GT$::into_new_object::inner::h44b7bd0984c2c766 in libpyo3-a4ddd6ce7ffb6c45.rlib(pyo3-a4ddd6ce7ffb6c45.pyo3.962d540f06d960ce-cgu.05.rcgu.o)
            "_PyBool_Type", referenced from:
                pyo3_ffi::object::Py_SIZE::ha565dac28a9062d5 in libpyo3-a4ddd6ce7ffb6c45.rlib(pyo3-a4ddd6ce7ffb6c45.pyo3.962d540f06d960ce-cgu.12.rcgu.o)
                pyo3_ffi::boolobject::PyBool_Check::h1c8916ee522f527a in libpyo3-a4ddd6ce7ffb6c45.rlib(pyo3-a4ddd6ce7ffb6c45.pyo3.962d540f06d960ce-cgu.08.rcgu.o)
            "_PyBytes_AsString", referenced from:

The full error is here: https://gist.github.com/jkoppel/28fb6d4148866153711ac2ce1feab084

@obi1kenobi
Copy link
Owner

This looks like a missing set of Python dynamic libraries. They are only needed if you are planning on contributing to the Python bindings, which I believe you are not trying to do at the moment.

We should add this to a troubleshooting section of CONTRIBUTING.

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

2 participants