Rust 使用Nix通过jemallocator编译jemalloc时,在创建共享对象时不能使用重新定位R_X86_64_32

Rust 使用Nix通过jemallocator编译jemalloc时,在创建共享对象时不能使用重新定位R_X86_64_32,rust,allocator,nix,jemalloc,Rust,Allocator,Nix,Jemalloc,我正在尝试使用(jemallocator=“0.3.2”)。我在尝试使用nix环境在Linux上构建时遇到了这个问题(我发现了一个类似的未解决问题:): 有什么我可以尝试的吗?好的,中支持的平台中没有列出x86_64-unknown-linux-musl。这是原因吗?如果是的话,你知道这种支持是否随时会出现吗? ../jemalloc/src/malloc_io.c:581:5: note: in expansion of macro 'GET_ARG_NUMERIC' 581 |

我正在尝试使用(
jemallocator=“0.3.2”
)。我在尝试使用nix环境在Linux上构建时遇到了这个问题(我发现了一个类似的未解决问题:):


有什么我可以尝试的吗?

好的,中支持的平台中没有列出x86_64-unknown-linux-musl。这是原因吗?如果是的话,你知道这种支持是否随时会出现吗?
../jemalloc/src/malloc_io.c:581:5: note: in expansion of macro 'GET_ARG_NUMERIC'
  581 |     GET_ARG_NUMERIC(val, 'p');
      |     ^~~~~~~~~~~~~~~
x86_64-unknown-linux-musl-ar: `u' modifier ignored since `D' is the default (see `U')
/nix/store/b5cs9wypqyij45qn6nwrlxdm4hvnfc3i-x86_64-unknown-linux-musl-binutils-2.31.1/bin/x86_64-unknown-linux-musl-ld: /nix/store/vy9bz2k0qc1vj5p5wkk86vc79yf0bwcl-x86_64-unknown-linux-musl-stage-final-gcc-debug-9.2.0/lib/gcc/x86_64-unknown-linux-musl/9.2.0/crtbeginT.o: relocation R_X86_64_32 against hidden symbol `__TMC_END__' can not be used when making a shared object
/nix/store/b5cs9wypqyij45qn6nwrlxdm4hvnfc3i-x86_64-unknown-linux-musl-binutils-2.31.1/bin/x86_64-unknown-linux-musl-ld: /nix/store/vy9bz2k0qc1vj5p5wkk86vc79yf0bwcl-x86_64-unknown-linux-musl-stage-final-gcc-debug-9.2.0/lib/gcc/x86_64-unknown-linux-musl/9.2.0/crtend.o: relocation R_X86_64_32 against `.ctors' can not be used when making a shared object; recompile with -fPIC
/nix/store/b5cs9wypqyij45qn6nwrlxdm4hvnfc3i-x86_64-unknown-linux-musl-binutils-2.31.1/bin/x86_64-unknown-linux-musl-ld: final link failed: nonrepresentable section on output
collect2: error: ld returned 1 exit status
make: *** [Makefile:387: lib/libjemalloc.so.2] Error 1
make: *** Waiting for unfinished jobs....
thread 'main' panicked at 'command did not execute successfully: "make" "srcroot=../jemalloc/" "-j" "16"
expected success, got: exit code: 2', build.rs:392:9
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

builder for '/nix/store/kgs2bcmaf4d45dclpn1b4zn6xx8wp3vz-crate-jemalloc-sys-0.3.2-x86_64-unknown-linux-musl.drv' failed with exit code 101