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

duplicate symbol definition: _malloc_printf #12482

Open
serjflint opened this issue Jul 24, 2024 · 2 comments
Open

duplicate symbol definition: _malloc_printf #12482

serjflint opened this issue Jul 24, 2024 · 2 comments
Labels
question Asking for support or clarification

Comments

@serjflint
Copy link

Hello! Thank you for the great tool.

I am cross-compiling ruff 0.5.3 on Ubuntu 20.04 against x86_64-apple-darwin target using cargo-zigbuild. Other targets are fine, but for this one I got an error like this:

  = note: error: duplicate symbol definition: _malloc_printf
              note: defined by /opt/zig/lib/libc/darwin/libSystem.tbd
              note: defined by /tmp/rustcmNzciC/libtikv_jemalloc_sys-d0b27344258bf71e.rlib(malloc_io.pic.o)
          

error: could not compile `ruff` (bin "ruff") due to 1 previous error

Full trace here https://gist.github.com/serjflint/2e67f06207383c3fbddf97798dd103f8

Last time I was building ruff 0.3.4 (with tikv-jemallocator = { version = "0.5.0" }) about 4 months ago and it was working.My Mac OS SDK is about 1 year old.
The issue is probably related to the recent bump of tikv-jemallocator to "0.6.0"

It is not issue with ruff per se, just heads up.
I've filed issues tikv/jemallocator#97 and ziglang/zig#20694

@MichaReiser MichaReiser added the question Asking for support or clarification label Jul 24, 2024
@MichaReiser
Copy link
Member

Hi @serjflint. Have you been able to resolve this in the meantime?

@serjflint
Copy link
Author

Hi @serjflint. Have you been able to resolve this in the meantime?

Hi! I didn't have time yet. I pinned the version for Intel + Mac OS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Asking for support or clarification
Projects
None yet
Development

No branches or pull requests

2 participants