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 #20694

Open
serjflint opened this issue Jul 20, 2024 · 0 comments
Open

duplicate symbol definition: _malloc_printf #20694

serjflint opened this issue Jul 20, 2024 · 0 comments
Labels
bug Observed behavior contradicts documented or intended behavior os-macos regression It worked in a previous version of Zig, but stopped working.
Milestone

Comments

@serjflint
Copy link

Zig Version

0.13.0

Steps to Reproduce and Observed Behavior

Hello! Thank you for the great language and tools.

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 about 4 months ago and it was working.
My Mac OS SDK is about 1 year old.

Do you have an idea how to better solve this issue? Should I better look into jemalloc?

Expected Behavior

It compiles without errors.

@serjflint serjflint added the bug Observed behavior contradicts documented or intended behavior label Jul 20, 2024
@andrewrk andrewrk added os-macos regression It worked in a previous version of Zig, but stopped working. labels Jul 26, 2024
@andrewrk andrewrk added this to the 0.15.0 milestone Jul 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Observed behavior contradicts documented or intended behavior os-macos regression It worked in a previous version of Zig, but stopped working.
Projects
None yet
Development

No branches or pull requests

2 participants