Replies: 8 comments 1 reply
-
| Hi, my first guess would be that maybe the |
Beta Was this translation helpful? Give feedback.
-
| Maybe you can try |
Beta Was this translation helpful? Give feedback.
-
| Hi, thanks for all your suggestions. I'm running just "scons" in most of my screenshots so it's faster to test the solution. @LujhCoconut @Harshil2107 I also tried running a virtual environment with another Python version, but that also didn't seem to work. |
Beta Was this translation helpful? Give feedback.
-
| Mine does not work either. |
Beta Was this translation helpful? Give feedback.
-
| I fixed the problem by simply running gem5 in a Ubuntu 20 container |
Beta Was this translation helpful? Give feedback.
-
| This problem is easy to encounter when using virtual python environment of Assuming you use conda create -n gem5-venv python=3.9 conda activate gem5-venv $(which pip) install SConsThen you can run the following bash script (please remember to change #!/bin/bash export LD_LIBRARY_PATH=/home/YourUsername/miniconda3/envs/gem5-venv/lib:$LD_LIBRARY_PATH # Change to your own username! # Set common variables CC="/opt/rh/devtoolset-10/root/bin/gcc" # Change to your own path! CXX="/opt/rh/devtoolset-10/root/bin/g++" # Change to your own path! SCONS_CMD="python3 $(which scons)" BUILD_DIR="build/X86" JOBS=32 # First, build gem5.opt CC="$CC" CXX="$CXX" $SCONS_CMD $BUILD_DIR/gem5.opt -j $JOBS # Only build compile_commands.json if it doesn't exist if [ ! -f "$BUILD_DIR/compile_commands.json" ]; then CC="$CC" CXX="$CXX" $SCONS_CMD $BUILD_DIR/compile_commands.json else echo "$BUILD_DIR/compile_commands.json already exists, skipping..." fiUsing Hope it helps you! |
Beta Was this translation helpful? Give feedback.
-
| I met the same problem. |
Beta Was this translation helpful? Give feedback.
-
| copy this scripts to your
|
Beta Was this translation helpful? Give feedback.



Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
Can anyone help point me in the right direction on how to fix this error? Or what might have caused it?
This is someone else's work, and it works on their computer. We have different Python versions, so I have tried changing my Python to match theirs (3.6.9), but that also didn't work.
We have the same version of scons.
When I tried running scons with the original gem5 (the one pulled from this repository), it worked fine. Not with this person's gem5.
This is running on Fedora 40.
Thanks a lot.
Beta Was this translation helpful? Give feedback.
All reactions