Skip to content

Unable to cross compile on Ubuntu Jammy (amd64 -> aarch64) #2858

Answered by gabrik
gabrik asked this question in Questions
Discussion options

You must be logged in to vote

Seems that the PYO3_CROSS_LIB_DIR=/lib/aarch64-linux-gnu/ was not needed.

And that I need to change my build.rs to :

fn main() {
  pyo3_build_config::add_extension_module_link_args();
}

But now I have Symbols not found errors coming from one of the libraries loaded within Python, similar to what we experienced in #2024
And seems that the workaround we where using there is not working when cross-building.

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
3 replies
@gabrik
Comment options

@messense
Comment options

@gabrik
Comment options

Comment options

You must be logged in to vote
4 replies
@davidhewitt
Comment options

@gabrik
Comment options

@davidhewitt
Comment options

@gabrik
Comment options

Answer selected by gabrik
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants