Just follow steps below:
step1: sudo apt-get update; sudo apt-get upgrade
step2: sudo apt-get install mercurial scons swig gcc m4 python python-dev libgoogle-perftools-dev g++
step 3: hg clone http://repo.gem5.org/gem5
step 4: cd gem5/
step5: scons build/ARM/gem5.opt -j2
step6: build/ARM/gem5.opt configs/example/se.py -c tests/test-progs/hello/bin/arm/linux/hel
lo
step1: sudo apt-get update; sudo apt-get upgrade
step2: sudo apt-get install mercurial scons swig gcc m4 python python-dev libgoogle-perftools-dev g++
step 3: hg clone http://repo.gem5.org/gem5
step 4: cd gem5/
step5: scons build/ARM/gem5.opt -j2
step6: build/ARM/gem5.opt configs/example/se.py -c tests/test-progs/hello/bin/arm/linux/hel
---
While running the command scons, below error may occur:
scons build/ARM/gem5.opt
scons: *** No SConstruct file found.
File "/usr/lib/scons/SCons/Script/Main.py", line 834, in _main
---> one of the solution to get rid of that error is to define environment variable as below:
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
If you encounter the error something like missing "zlib-dev", etc. Then just install it by command:
sudo apt-get update
sudo apt-get install zlib1g-dev
sudo apt-get install zlib1g-dev
after that, try to re-run "scons build/ARM/gem5.opt". Be careful with option -j2 if your RAM is less than 4Gb.
hi i am phd scholar working on memories when i install gems5 these errors comes after running step 5 as mentioned above can anyone help me to handle these errors
ReplyDeletecc1plus: all warnings being treated as errors
scons: *** [build/ARM/proto/inst_dep_record.pb.o] Error 1
scons: building terminated because of errors.