diff --git a/ext/sst/INSTALL.md b/ext/sst/INSTALL.md index 1034d7dd3f..91f92eb7ff 100644 --- a/ext/sst/INSTALL.md +++ b/ext/sst/INSTALL.md @@ -61,9 +61,12 @@ echo "export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$SST_CORE_HOME/lib/pkgconfig/" >> At the root of gem5 folder, ```sh -scons build/RISCV/libgem5_opt.so -j $(nproc) --without-tcmalloc +scons build/RISCV/libgem5_opt.so -j $(nproc) --without-tcmalloc --duplicate-sources ``` +**Note:** `--without-tcmalloc` is required to avoid a conflict with SST's malloc. +`--duplicate-sources` is required as the compilation of SST depends on sources to be present in the "build" directory. + ### Compiling the SST integration At the root of gem5 folder, diff --git a/tests/nightly.sh b/tests/nightly.sh index f5f9295f3b..9286c545cd 100755 --- a/tests/nightly.sh +++ b/tests/nightly.sh @@ -159,7 +159,7 @@ build_and_run_SST () { "${gem5_root}" --rm --memory="${docker_mem_limit}" \ gcr.io/gem5-test/sst-env:${tag} bash -c "\ scons build/${isa}/libgem5_${variant}.so -j${compile_threads} \ ---without-tcmalloc --ignore-style && \ +--without-tcmalloc --duplicate-sources --ignore-style && \ cd ext/sst && \ make clean; make -j ${compile_threads} && \ sst --add-lib-path=./ sst/example.py && \