Bobby Bruce has submitted this change. (
https://gem5-review.googlesource.com/c/public/gem5/+/70860?usp=email )
Change subject: tests,systemc: Fix nightly systemc test
......................................................................
tests,systemc: Fix nightly systemc test
This fixes these nightly failing tests:
https://jenkins.gem5.org/job/nightly/609/
Due to this commit:
https://gem5-review.googlesource.com/c/public/gem5/+/68758
The source files are not copied to the "build" directory by default.
This caused the systemc tests to fail as the
"util/systemc/gem5_within_systemc/Makefile" depends on generated source
files in the "build" directory.
This patch adds the "--duplicate-sources" flag to the building of the
ARM binaries necessisary for running systemc. The README has been
updated to reflect this.
M tests/nightly.sh
M util/systemc/gem5_within_systemc/README
2 files changed, 12 insertions(+), 6 deletions(-)
Approvals:
kokoro: Regressions pass
Jason Lowe-Power: Looks good to me, approved; Looks good to me, approved
Bobby Bruce: Looks good to me, approved
diff --git a/tests/nightly.sh b/tests/nightly.sh
index 9286c54..cea1ad0 100755
--- a/tests/nightly.sh
+++ b/tests/nightly.sh
@@ -173,9 +173,11 @@
docker run -u $UID:$GID --volume "${gem5_root}":"${gem5_root}" -w
"${gem5_root}" --memory="${docker_mem_limit}" --rm
gcr.io/gem5-test/ubuntu-22.04_min-dependencies:${tag} bash -c "
-scons -j${compile_threads} --ignore-style build/ARM/gem5.opt &&
-scons --with-cxx-config --without-python --without-tcmalloc USE_SYSTEMC=0 \
-j${compile_threads} build/ARM/libgem5_opt.so
+scons -j${compile_threads} --ignore-style --duplicate-sources
+build/ARM/gem5.opt &&
+scons --with-cxx-config --without-python --without-tcmalloc
+--duplicate-sources USE_SYSTEMC=0
+-j${compile_threads} build/ARM/libgem5_opt.so
"
docker run -u $UID:$GID --volume "${gem5_root}":"${gem5_root}" -w
diff --git a/util/systemc/gem5_within_systemc/README
b/util/systemc/gem5_within_systemc/README
index b50ed71..bcaacee 100644
--- a/util/systemc/gem5_within_systemc/README
+++ b/util/systemc/gem5_within_systemc/README
@@ -28,17 +28,21 @@
First build gem5 as a library with cxx-config support and (optionally)
without python. When building the library, disable gem5's native SystemC
API support, as that will conflict with the external version. Also build a
-normal gem5 (cxx-config not needed, Python needed):
+normal gem5 (cxx-config not needed, Python needed)
+Note: The --duplicate-source
option is also needed as
+"util/systemc/gem5_within_systemc" depends on generated source files to be
+present in the "build" directory.
cd ../../..
scons build/ARM/gem5.opt
scons --with-cxx-config --without-python --without-tcmalloc
USE_SYSTEMC=0
-> build/ARM/libgem5_opt.so
+> --duplicate-source build/ARM/libgem5_opt.so
cd util/systemc
Note: For MAC / OSX this command should be used:
scons --with-cxx-config --without-python --without-tcmalloc
USE_SYSTEMC=0
-> build/ARM/libgem5_opt.dylib
+> --duplicate-sources build/ARM/libgem5_opt.dylib
Set a proper LD_LIBRARY_PATH e.g. for bash:
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/path/to/gem5/build/ARM/"
--
To view, visit
https://gem5-review.googlesource.com/c/public/gem5/+/70860?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gem5-review.googlesource.com/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: public/gem5
Gerrit-Branch: develop
Gerrit-Change-Id: I3006005e43276097be98f7d4685f3d98c180d3f9
Gerrit-Change-Number: 70860
Gerrit-PatchSet: 2
Gerrit-Owner: Bobby Bruce bbruce@ucdavis.edu
Gerrit-Reviewer: Bobby Bruce bbruce@ucdavis.edu
Gerrit-Reviewer: Gabe Black gabe.black@gmail.com
Gerrit-Reviewer: Jason Lowe-Power power.jg@gmail.com
Gerrit-Reviewer: kokoro noreply+kokoro@google.com