I just did a clean build on OpenSuse 12.3 with:

Gcc 4.7.2
Python 2.7.3
Scons 2.2.0
Swig 2.0.9

Works without any issues.

Have a look at http://www.mail-archive.com/[email protected]/msg06475.html as 
well.

Andreas

From: Maxime Chéramy <[email protected]<mailto:[email protected]>>
Reply-To: gem5 users mailing list 
<[email protected]<mailto:[email protected]>>
Date: Friday, 1 March 2013 12:46
To: gem5 users mailing list <[email protected]<mailto:[email protected]>>
Subject: Re: [gem5-users] Builded gem5 just fine but run into trouble when 
executing simple helloworld program...

Hello,

I had the bad idea of updating and rebuilding this morning and now I am facing 
the exact same problem than you. Do you have any idea on how I could solve this 
problem?

Debian Wheezy:

gcc 4.7.2
python 2.7.3
scons 2.1.0
swig 2.0.9

Thank you,

Maxime.

2013/2/28 mehmet basaran 
<[email protected]<mailto:[email protected]>>
I do not know the cause of this problem as well. I was just speculating from 
the link I provided. If you don't have much time, I recommend using apt-get. At 
least, it leaves you something to work with.


2013/2/28 ef <[email protected]<mailto:[email protected]>>
Any ideas on how to fix this without using apt-get? The email you sent didn't 
really solve the problem.

Thanks in advance!

I have gcc 4.7.1
python 2.7.3
Scons 2.2.0
Swig 2.0.9

And the output I get;

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/matara/gem5/src/python/importer.py", line 73, in load_module
    exec code in mod.__dict__
  File "/home/matara/gem5/src/python/m5/__init__.py", line 35, in <module>
    import internal
  File "/home/matara/gem5/src/python/importer.py", line 73, in load_module
    exec code in mod.__dict__
  File "/home/matara/gem5/src/python/m5/internal/__init__.py", line 31, in 
<module>
    import event
  File "/home/matara/gem5/src/python/importer.py", line 73, in load_module
    exec code in mod.__dict__
  File "/home/matara/gem5/build/X86/python/swig/event.py", line 107, in <module>
    class Event(m5.internal.serialize.Serializable):
AttributeError: 'module' object has no attribute 'internal'


On Tue, Feb 26, 2013 at 7:35 AM, mehmet basaran 
<[email protected]<mailto:[email protected]>> wrote:
Hi all,

I have found the problem. I was trying to install all dependencies from the 
source code. Unfortunately I had either one or more of the following cases;

1. my python was not compatible with libc
2. my gcc was incompatible with swig
3. or any combination of those 4...

source: http://www.mail-archive.com/[email protected]/msg06380.html

So, I have reinstalled using sudo apt-get install ... with the help of another 
gem5 struggler and it worked.

Thanks for the... oh wait a minute...

take care


2013/2/25 mehmet basaran 
<[email protected]<mailto:[email protected]>>
Hi all,

My computer messed up and I had to re-install gem5. I have been performing the 
same steps. I could build the system but for some reason I cannot run the 
simplest example. I am using ubuntu. Here is my command line;

build/X86/gem5.opt configs/example/se.py 
--cmd="tests/test-progs/hello/bin/x86/linux/hello"

And the output I get;

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/matara/gem5/src/python/importer.py", line 73, in load_module
    exec code in mod.__dict__
  File "/home/matara/gem5/src/python/m5/__init__.py", line 35, in <module>
    import internal
  File "/home/matara/gem5/src/python/importer.py", line 73, in load_module
    exec code in mod.__dict__
  File "/home/matara/gem5/src/python/m5/internal/__init__.py", line 31, in 
<module>
    import event
  File "/home/matara/gem5/src/python/importer.py", line 73, in load_module
    exec code in mod.__dict__
  File "/home/matara/gem5/build/X86/python/swig/event.py", line 107, in <module>
    class Event(m5.internal.serialize.Serializable):
AttributeError: 'module' object has no attribute 'internal'

I added new environment variables in .bashrc file as follows;

export JAVA_HOME="/home/matara/Tools/jdk1.7.0"
export PYTHONPATH="/home/matara/Tools/Python-2.7.3"
export SWIG="/home/matara/Tools/swig-2.0.9"
export BZ2="/home/matara/Tools/bzip2-1.0.6"
export MYSCONS="/home/matara/Tools/scons-src-2.2.0"
export LD_LIBRARY_PATH=$BZ2:$PYTHONPATH
export LIBRARY_PATH=$BZ2:$PYTHONPATH
export PATH="$PATH:$PYTHONPATH:$PYTHONPATH/scripts:SWIG:$BZ2:$JAVA_HOME/jre/bin"

------------------------------------------------------------------------------------------------------------------------------------------------

My first reaction was to install modules that come as missing in normal python. 
But that didn't work.
I tried to run scons-local, in case it is using a built-in python. Didn't work 
either.
I have tried re-installing stable and dev versions but still no progress.
Other than that I have tried reinstalling countless times on both 32bit and 
64bit machines, but got the same result.

And so passed 1 week. Don't know what is the problem but I successfully 
installed gem5 once without this much effort. I have also seen a ticket on 
gem5-dev maillist about python2.7 compatibility. But have no idea if this is it.

Any help, pointers, questions are welcome as usual. Thanks in advance.
Mehmet


_______________________________________________
gem5-users mailing list
[email protected]<mailto:[email protected]>
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users


_______________________________________________
gem5-users mailing list
[email protected]<mailto:[email protected]>
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users


_______________________________________________
gem5-users mailing list
[email protected]<mailto:[email protected]>
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users


-- IMPORTANT NOTICE: The contents of this email and any attachments are 
confidential and may also be privileged. If you are not the intended recipient, 
please notify the sender immediately and do not disclose the contents to any 
other person, use it for any purpose, or store or copy the information in any 
medium. Thank you.
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to