Hello all,

I am getting started with the gem5 simulator on my Mac 10.15.3. I started
with "Building gem5" using commands mentioned on "
https://www.gem5.org/documentation/learning_gem5/part1/building/";.

However, I am having issues building it. Since the commands mentioned on
the page are for Ubuntu, I made some changes for "homebrew" on MAC.
For the commands mentioned in step 1
" sudo apt install build-essential git m4 scons zlib1g zlib1g-dev
libprotobuf-dev protobuf-compiler libprotoc-dev libgoogle-perftools-dev
python-dev python"

I modified and executed the following:
1. *build-essential : *I have installed xcode as it installs compilers and
supporting utilities.

xcode-select --install


Version 11.3.1


2. *git*


brew install git


3.* m4*


brew install m4


4. *scons*


brew install scons


5. *zlib*


brew install zlib


6. libprotobuf-dev


brew install libprotobuf-dev


For installing protobuf version 3.12 , I followed the commands mentioned
here:


https://medium.com/@erika_dike/installing-the-protobuf-compiler-on-a-mac-a0d397af46b8


7. perftools


brew install google-perftools


8. brew install libboost-all-dev



After all these steps, I did git clone :


git clone https://gem5.googlesource.com/public/gem5


After this I am trying to build it using scons with the following command :


scons build/X86/gem5.opt



This command results in the following error along with creating a "build"
folder with a file named "variables.global" :

scons: Reading SConscript files ...

Warning: Failed to find git repo directory: a bytes-like object is
required, not 'str'

TypeError: argument should be integer or bytes-like object, not 'str':

  File "/Users/niveditagaur/Documents/Internship_Projects/gem5/SConstruct",
line 355:

    main['GCC'] = CXX_version and CXX_version.find('g++') >= 0


The file variables.global has the following data written : PYTHON_CONFIG =
['python2.7-config', 'python-config']

I re-installed python but had no success.

Kindly advise on how to successfully build and compile gem5 on mac.

-- 
Nivedita Gaur
_______________________________________________
gem5-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

Reply via email to