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 [3]
that mentions the apt-get command line. This corresponds to what is
mentioned on http://www.m5sim.org/Dependencies [4]
> 
> 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 [1]) 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.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users [2]
_______________________________________________ gem5-users mailing list
gem5-users@gem5.org http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
[2]
> 
> -- 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 [2]
>
_______________________________________________
> gem5-users mailing
list
> gem5-users@gem5.org
>
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users [2]




Links:
------
[1]
http://gem5.org/Using_a_non-default_Python_installation
[2]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
[3]
http://gem5.org/dist/tutorials/hipeac2012/gem5_hipeac.pdf
[4]
http://www.m5sim.org/Dependencies
_______________________________________________
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to