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

jemalloc (jemallocator) C toolchain / compilation issues #370494

Open
dpc opened this issue Jan 3, 2025 · 2 comments
Open

jemalloc (jemallocator) C toolchain / compilation issues #370494

dpc opened this issue Jan 3, 2025 · 2 comments
Labels
0.kind: bug Something is broken

Comments

@dpc
Copy link
Contributor

dpc commented Jan 3, 2025

Describe the bug

It seems like Rust tikv-jemalloc-sys crate fails on compilation of vendored C jemalloc code,
but only on NixOS, only with newer C toolchains and only when optimizations are NOT enabled.

The developers investigating it point out to odd behavior of the toolchains suggesting some misconfiguration/misbehavior. I have been experiencing it with clang, some other user with gcc, but both of us are on NixOS, and problem doesn't repro on other distros as far as we can tell.

Steps To Reproduce

Compile a Rust project using tikv-jemalloc crate in debug mode on NixOS.

Expected behavior

It should compile.

Screenshots

NA

Additional context

NA

Metadata

NA

Notify maintainers


Note for maintainers: Please tag this issue in your PR.


Add a 👍 reaction to issues you find important.

@jr1221
Copy link

jr1221 commented Jan 3, 2025

It looks like systemd carries a patch to build on musl, could be related:

(musl-patches + "/0012-distinguish-XSI-compliant-strerror_r-from-GNU-specif.patch")

@bkchr
Copy link
Contributor

bkchr commented Jan 6, 2025

#370498 this looks related.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug Something is broken
Projects
None yet
Development

No branches or pull requests

3 participants