-
Notifications
You must be signed in to change notification settings - Fork 176
rust-lld: error: duplicate symbol in ci error: duplicate symbol #478
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
Comments
Thanks for reporting. Here @folkertdev might know what may be causing this. |
Well the problem is that the zlib symbols are included in your test binary twice. I suspect the culprit is this
you can see these diagrams with We run into this problem in zlib-rs itself when testing versus another implementation. We have two workarounds
These are feature flags of libz-rs-sys. You might be able to use a fake dependency on flate2 = { version = "1.1.0", default-features = false, features = ["zlib-rs"] }
# prefix the zlib symbols so they don't clash with other dependencies. update libz-rs-sys in lockstep with flate2
libz-rs-sys = { version = "0.4.2", default-features = false, features = ["testing-prefix"] } That testing prefix is an internal feature really, but might get you unstuck. We will add something more dedicated in the next release. |
Thank you very much |
Oh btw the latest version of zlib-rs (part of the latest release of flate2) no longer exports the symbols (by default), so the workaround with the |
Thank you |
Hi I just try to use features = ["zlib-rs"] in greptimedb
but it failed in ci:
patch link: https://github.com/GreptimeTeam/greptimedb/pull/5706/files
ci failed link: https://github.com/GreptimeTeam/greptimedb/actions/runs/13848925444/job/38752767800
some error message:
The text was updated successfully, but these errors were encountered: