Disable the thread local storage model in jemalloc 5 to prevent
shared libraries linked to libjemalloc from crashing on dlopen().
https://github.com/jemalloc/jemalloc/issues/937
This bug affects both Java JNI and python libraries which link to
jemalloc 5, such as RocksDB, which will crash the program when loaded.
* gnu/packages/jemalloc.scm (jemalloc)[arguments]: Add --disable-initial-exec-tls
configure flag.
Co-authored-by: Ludovic Courtès <ludo@gnu.org>
* gnu/packages/patches/jemalloc-arm-address-bits.patch: New patch.
* gnu/packages/jemalloc.scm (jemalloc)[source]: Use it.
* gnu/local.mk (dist_patch_DATA): Add it.
* gnu/packages/rust.scm (%rust-bootstrap-binaries-version): Update version.
(%rust-bootstrap-binaries): Use x86_64 rust bootstrap package for x86_64 build.
(%cargo-reference-project-file): Use specific file as "project" file when
patching rust vendored sources.
(%cargo-reference-hash): sha256 sum for %cargo-reference-project-file.
(rustc-bootstrap): Use bootstrap package with host architecture.
(cargo-bootstrap): Use bootstrap package with host architecture.
(rustc): Add new test dependency, fix build issues, use "./x.py" script for
build instead of "./configure".
(cargo): Update dependencies, patch shebangs for vendored sources
* gnu/packages/jemalloc.scm: Add jemalloc-4.5.0 release.
Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org>
* gnu/packages/jemalloc.scm (jemalloc)[arguments]: On non-Intel systems
add '--disable-thp' to #:configure-flags. Adjust #:phases to remove
offending test which incorrectly tests transparent huge pages.