[ovs-dev] Building OVN with jemalloc

Seena Fallah seenafallah at gmail.com
Thu Oct 7 15:08:52 UTC 2021


Hi,

When building OVN with jemalloc and ddlog it will face an issue with
jemalloc:

Compiling const-random v0.1.13
     Running `rustc --crate-name const_random --edition=2018
/root/.cargo/registry/src/github.com-1ecc6299db9ec823/const-random-0.1.13/src/
lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts
--crate-type lib --emit=dep-info,metadata,link -C opt-level=2 -C
embed-bitcode=no -C metadata=d86530bcb628bebd -C
extra-filename=-d86530bcb628bebd --out-dir
/root/ovn/northd/ovn_northd_ddlog/target/release/deps -L
dependency=/root/ovn/northd/ovn_northd_ddlog/target/release/deps --extern
const_random_macro=/root/ovn/northd/ovn_northd_ddlog/target/release/deps/libconst_random_macro-a3a914d828ae97cc.so
--extern
proc_macro_hack=/root/ovn/northd/ovn_northd_ddlog/target/release/deps/libproc_macro_hack-f801c04b47fa343a.so
--cap-lints allow -L ../../lib/.libs -L /root/ovn/ovs/lib/.libs -lssl
-lcrypto -lcap-ng -lpthread -lrt -lm -ljemalloc -lpthread -lrt -lm
-ljemalloc -lssl -lcrypto -lcap-ng -lpthread -lrt -lm -ljemalloc -lpthread
-lrt -lm -ljemalloc -lssl -lcrypto -lcap-ng -lpthread -lrt -lm -ljemalloc
-lpthread -lrt -lm -ljemalloc -Awarnings`
error: /lib64/libjemalloc.so.2: cannot allocate memory in static TLS block
  -->
/root/.cargo/registry/src/github.com-1ecc6299db9ec823/const-random-0.1.13/src/lib.rs:16
:9
   |
16 | pub use const_random_macro::const_random;
   |         ^^^^^^^^^^^^^^^^^^

error: could not compile `const-random` due to previous error


Using OVN 21.09.0 and jemalloc  5.2.1 on centos 8


More information about the dev mailing list