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

FrameworkNotFound error when building for Apple using maturin #1353

Open
kamilglod opened this issue Nov 6, 2023 · 1 comment
Open

FrameworkNotFound error when building for Apple using maturin #1353

kamilglod opened this issue Nov 6, 2023 · 1 comment

Comments

@kamilglod
Copy link

When using chrono lib in project that is build by maturin for Python bindings by running:

maturin build --zig --target aarch64-apple-darwin -i python3.11

I'm getting

  = note: warning(link): framework not found for '-framework CoreFoundation'
          warning(link): Framework search paths:
          error: FrameworkNotFound
          

error: could not compile `XXX` (lib) due to previous error
💥 maturin failed
  Caused by: Failed to build a native library through cargo
  Caused by: Cargo build finished with "exit status: 101": `"cargo" "rustc" "--features" "pyo3/extension-module" "--target" "aarch64-apple-darwin" "--message-format" "json-render-diagnostics" "--manifest-path" "/app/Cargo.toml" "--lib" "--crate-type" "cdylib" "--" "-C" "link-arg=-undefined" "-C" "link-arg=dynamic_lookup" "-C" "link-args=-Wl,-install_name,@rpath/XXX.cpython-311-darwin.so"`

I guess it might be connected with this issue #1341 but not directly. When installing chrono without default features it works but I need Utc::now() feature, how can I handle it?

@djc
Copy link
Contributor

djc commented Nov 6, 2023

I think that basically comes down to #1341, yes. I don't think there's much of an alternative.

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