title: Scons Throwing Syntax Errors when Building gem5 Simulator on Manjaro (Arch) Linux
body: <p>I need to setup a gem5 simulator for a computer architecture class. After downloading all the dependencies for Scons and running the build command for the ALPHA simulator, python throws a syntax error (shown below) flagging the use of a comma during the creation of a SystemExit exception. </p>
  
  <p>To remedy this I tried running scons with python2 and python3. I even tried running my assignment in a virtual machine to no avail. Can someone familiar with Scons explain where this error is coming from and how to remedy it. It would be greatly appreciated.</p>
  
  <p>Command Ran:</p>
  
  <pre><code>scons build/ALPHA/gem5.opt -j4
  </code></pre>
  
  <p>Error Message:</p>
  
  <pre><code>*** Error loading site_init file './site_scons/site_init.py':
    File "./site_scons/site_init.py", line 52
  
      except SystemExit, e:
  
                       ^
  
  SyntaxError: invalid syntax
  
  </code></pre>
  
  <p>OS: Manjaro Linux x86_64 </p>
  
  <p>Kernel: 4.19.66-1-MANJARO </p>
  
  <p>Python3 Version: Python 3.7.4</p>
  
  <p>Python2 Version: Python 2.7.16</p>
  
  <p>Latest Version of Scons</p>
  
  <p><strong>Edit</strong></p>
  
  <p><a href="https://www.mail-archive.com/gem5-dev@gem5.org/msg31011.html#" rel="nofollow noreferrer">Here's</a> a link to an archived conversation about the problem. It comes frustratingly close to providing a solution, but it's all I've found on the issue thus far. The search continues. </p>