Hi Kalai,

We currently use gcc 4.7.1 and python 2.7.3. The issues on the mailing list 
about incompatible versions is generally older versions of gcc and a set of 
incompatibilities between swig and gcc. I think you're still running into an 
issue that the python version used to run scons is not the same version as 
being used to run gem5 after it's compiled.

Thanks,
Ali



On Jan 15, 2013, at 1:22 PM, Kalai Narayanan-SSI <kalai.ra...@ssi.samsung.com> 
wrote:

> I had rebuilt the required tools from scratch and got gem5 to build. I see 
> that the linker is looking into the proper path to get the libraries. But 
> still I see the runtime error.
>  
> I was seeing a mail thread (prob. an year ago) which states that there were 
> some issues with particular combinations of gcc & python. Can someone let me 
> know what is a good version of gcc/python that is working.
>  
> I’m using gcc 4.7.2 and python 2.7.3
>  
> Error message:
> Traceback (most recent call last):
>   File "<string>", line 1, in <module>
>   File 
> "/share/projects10/IPproject/workspace/kalai.rajah/gem5/gem5-5532a1642108/src/python/importer.py",
>  line 73, in load_module
>     exec code in mod.__dict__
>   File 
> "/share/projects10/IPproject/workspace/kalai.rajah/gem5/gem5-5532a1642108/src/python/m5/__init__.py",
>  line 35, in <module>
>     import internal
>   File 
> "/share/projects10/IPproject/workspace/kalai.rajah/gem5/gem5-5532a1642108/src/python/importer.py",
>  line 73, in load_module
>     exec code in mod.__dict__
>   File 
> "/share/projects10/IPproject/workspace/kalai.rajah/gem5/gem5-5532a1642108/src/python/m5/internal/__init__.py",
>  line 31, in <module>
>     import event
>   File 
> "/share/projects10/IPproject/workspace/kalai.rajah/gem5/gem5-5532a1642108/src/python/importer.py",
>  line 73, in load_module
>     exec code in mod.__dict__
>   File 
> "/share/projects10/IPproject/workspace/kalai.rajah/gem5/gem5-5532a1642108/build/ARM/python/swig/event.py",
>  line 107, in <module>
>     class Event(m5.internal.serialize.Serializable):
> AttributeError: 'module' object has no attribute 'internal'
>  
> -Kalai
>  
>  
> From: gem5-users-boun...@gem5.org [mailto:gem5-users-boun...@gem5.org] On 
> Behalf Of Ali Saidi
> Sent: Thursday, January 10, 2013 7:53 AM
> To: gem5 users mailing list
> Subject: Re: [gem5-users] LD_LIBRARY_PATH & LIBRARY_PATH
>  
> Hi Kalai,
> 
> Please take a look at lines 775 through 807 in the SConstruct file. The 
> python interpreter that is being run is asked for what libraries are required 
> to run it and those are used (so it's based on the build of python). You 
> could play around with this if you believe those libraries aren't actually 
> needed for python.
> 
>  
> 
> Ali
> 
>  
> 
> On 09.01.2013 21:21, Kalai Narayanan-SSI wrote:
> 
> Here is what I'm stuck at:
>  
> Path:
> echo $PATH
> /share/projects/IP/local_2/bin/:/share/apps/sge62u2_1/bin/lx24-amd64:/usr/bin:/bin
>  
> Env:
> env | grep LIBRARY_PATH
> LD_LIBRARY_PATH=/share/projects/IP/local_2/lib64/
> LIBRARY_PATH=/share/projects/IP/local_2/lib64/
>  
> Command:
> ../../scons/scons-2.2.0/build/scripts/scons build/ARM/gem5.opt 
> SWIG=/share/projects10/IPproject/workspace/kalai.rajah/swig/swig-2.0.9/bin/swig
>  --verbose --no-colors PYTHONPATH=/share/projects/IP/local_2/lib64/ ; 
> ./build/ARM/gem5.opt -h
>  
> Verbose log:
> g++ -o build/ARM/gem5.opt -O3 build/ARM/sim/main.o 
> build/ARM/arch/arm/decoder.o build/ARM/arch/arm/faults.o 
> build/ARM/arch/arm/insts/macromem.o build/ARM/arch/arm/insts/mem.o 
> build/ARM/arch/arm/insts/misc.o build/ARM/arch/arm/insts/pred_inst.o 
> build/ARM/arch/arm/insts/static_inst.o ....  
> build/ARM/python/m5/internal/param_L1Cache_Controller.py.o 
> build/ARM/python/m5/internal/param_SimpleNetwork.py.o build/ARM/base/date.o 
> -Lbuild/gzstream -Lbuild/libelf -L/usr/lib64 -L/usr/lib64/python2.4/config 
> -lpthread -ldl -lutil -lm -lpython2.4 -lz -lrt -lelf -lgzstream
>  
> - why is /usr/lib64 still getting picked up for the python libs?
>  
> Ldd on exec:
>  ldd ./build/ARM/gem5.opt 
>         linux-vdso.so.1 =>  (0x00007fffec95d000)
>         libpthread.so.0 => /lib64/libpthread.so.0 (0x00000030a4e00000)
>         libdl.so.2 => /lib64/libdl.so.2 (0x00000030a4600000)
>         libutil.so.1 => /lib64/libutil.so.1 (0x00000030b0400000)
>         libpython2.4.so.1.0 => /usr/lib64/libpython2.4.so.1.0 
> (0x00000030b6c00000)
>         libz.so.1 => /share/projects/IP/local_2/lib64/libz.so.1 
> (0x00002b8190a27000)
>         librt.so.1 => /lib64/librt.so.1 (0x00000030a8a00000)
>         libstdc++.so.6 => /share/projects/IP/local_2/lib64/libstdc++.so.6 
> (0x00002b8190c40000)
>         libm.so.6 => /lib64/libm.so.6 (0x00000030a4a00000)
>         libgcc_s.so.1 => /share/projects/IP/local_2/lib64/libgcc_s.so.1 
> (0x00002b8190f45000)
>         libc.so.6 => /lib64/libc.so.6 (0x00000030a4200000)
>         /lib64/ld-linux-x86-64.so.2 (0x00000030a3a00000)
>  
> I had tried changing the compile command to include 
> "LD_LIBRARY_PATH=/share/projects/IP/local_2/lib64/ 
> LIBRARY_PATH=/share/projects/IP/local_2/lib64/ 
> PYTHONPATH=/share/projects/IP/local_2/lib64/python2.7", but still I'm seeing 
> the same issue.
>  
> -Kalai
>  
> -----Original Message-----
> From: gem5-users-boun...@gem5.org [mailto:gem5-users-boun...@gem5.org] On 
> Behalf Of Andreas Hansson
> Sent: Wednesday, January 09, 2013 3:17 PM
> To: gem5 users mailing list
> Subject: Re: [gem5-users] LD_LIBRARY_PATH & LIBRARY_PATH
>  
> Hi Kalai,
>  
> Check out the slides from
> http://gem5.org/dist/tutorials/hipeac2012/gem5_hipeac.pdf that mentions the 
> apt-get command line. This corresponds to what is mentioned on 
> http://www.m5sim.org/Dependencies
>  
> Good luck
>  
> Andreas
>  
> On 09/01/2013 23:07, "Kalai Narayanan-SSI" <kalai.ra...@ssi.samsung.com>
> wrote:
> Will pointing python to my local install of python (as discussed in 
> http://gem5.org/Using_a_non-default_Python_installation) help? Andreas, Can 
> you let me know the apt-get install command that I had to use on Ubuntu 12 
> machines? I can give a try. -Kalai -----Original Message----- From: 
> gem5-users-boun...@gem5.org[mailto:gem5-users-boun...@gem5.org] On Behalf Of 
> Andreas Hansson Sent: Wednesday, January 09, 2013 2:48 PM To: 
> sa...@umich.edu; gem5 users mailing list Subject: Re: [gem5-users] 
> LD_LIBRARY_PATH & LIBRARY_PATH Hi Kalai, Just a thought...while you are busy 
> making all the tools and libraries like each other, if you just want to get 
> going, an Ubuntu 12 virtual machine only needs a single apt-get install 
> command and you're good to go. The latter will not be as performant, but at 
> least you have something that works in the interim. Andreas From: Ali Saidi 
> <sa...@umich.edu<mailto:sa...@umich.edu>> Reply-To: 
> "sa...@umich.edu<mailto:sa...@umich.edu>" 
> <sa...@umich.edu<mailto:sa...@umich.edu>>, gem5 users mailing list 
> <gem5-users@gem5.org<mailto:gem5-users@gem5.org>> Date: Wednesday, 9 January 
> 2013 22:43 To: "gem5-users@gem5.org<mailto:gem5-users@gem5.org>" 
> <gem5-users@gem5.org<mailto:gem5-users@gem5.org>> Subject: Re: [gem5-users] 
> LD_LIBRARY_PATH & LIBRARY_PATH Hi Kalai, This I have seen before and is 
> caused by python not being compatible with the libc that is in the 
> LD_LIBRARY_PATH. Ali On 09.01.2013 17:37, Kalai Narayanan-SSI wrote: Hi Ali, 
> If I set LD_LIBRARY_PATH AND LIBRARY_PATH env variables, then executing 
> results in: Traceback (most recent call last): File "<string>", line 1, in ? 
> File "/share/projects10/IPproject/workspace/kalai.rajah/gem5/gem5-56610ab730 
> 40/ src/python/importer.py", line 73, in load_module exec code in 
> mod.__dict__ File 
> "/share/projects10/IPproject/workspace/kalai.rajah/gem5/gem5-56610ab730 40/ 
> src/python/m5/__init__.py", line 35, in ? import internal File 
> "/share/projects10/IPproject/workspace/kalai.rajah/gem5/gem5-56610ab730 40/ 
> src/python/importer.py", line 73, in load_module exec code in mod.__dict__ 
> File "/share/projects10/IPproject/workspace/kalai.rajah/gem5/gem5-56610ab730 
> 40/ src/python/m5/internal/__init__.py", line 31, in ? import event File 
> "/share/projects10/IPproject/workspace/kalai.rajah/gem5/gem5-56610ab730 40/ 
> src/python/importer.py", line 73, in load_module exec code in mod.__dict__ 
> File "/share/projects10/IPproject/workspace/kalai.rajah/gem5/gem5-56610ab730 
> 40/ build/ARM/python/swig/event.py", line 107, in ? class 
> Event(m5.internal.serialize.Serializable): AttributeError: 'module' object 
> has no attribute 'internal' -- 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 
> gem5-users@gem5.orghttp://m5sim.org/cgi-bin/mailman/listinfo/gem5-users 
> _______________________________________________ gem5-users mailing list 
> gem5-users@gem5.org 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
> gem5-users@gem5.org
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
> _______________________________________________
> gem5-users mailing list
> gem5-users@gem5.org
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>  
>  
> 
>  
> _______________________________________________
> gem5-users mailing list
> gem5-users@gem5.org
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

_______________________________________________
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to