Hi Amine, 

Could you try removing your build directory (rm -r
build) and re-running the first command (note: unless you're using
gem5-stable you'll want to run scons build/ALPHA/gem5.opt)? 

Could you
make sure that you have all the following packages installed: 

apt-get
install gcc g++ build-essential python python-dev 

You might see that
error if there is trouble finding your compiler. 

Another thing you may
want to try is looking at build/scons_config.log as it might have some
clues as to why python.h isn't being found. 

Hope that helps, 

Ali


On 14.05.2012 15:08, Amine Marref wrote: 

> Hi,
> 
> This question
relates to the process of configuring/building M5 on Ubuntu 10. This
question has already been asked, answered, but the provided answers
don't solve the problem.
> 
> After downloading the source code of M5
via Mercurial, the README file suggests that I run the command [1], but
I am getting error [2]. Now, Python.h is definitely inside the folder
'/usr/include/python2.6'. So any help on this question should be based
on the fact that the file is inside the required folder.
> 
> Initially
I did not have python-dev installed which logically caused the error
since Python.h was missing. After that I installed python-dev which
resulted in Python.h being created in the required folder. However for
reasons beyond my understanding, scons seems to not see Python.h in the
folder. My guess was that scons is using some cached configuration that
has not been updated after installing python-dev and hence still cannot
see Python.h.
> 
> What I did was run [3] but I did not get much luck. I
also uninstalled and installed scons using [4] but the problem
persists.
> 
> Can anybody suggest anything to solve this issue as I
have run out of logical solutions.
> 
> Thanks,
> A.
> 
> [1]
> scons
build/ALPHA_SE/tests/debug/ 
> quick
> [2]
> scons: Reading SConscript
files ...
> Checking for leading underscore in global variables...no
>
Checking for C header file Python.h... no
> Error: can't find Python.h
header in ['/usr/include/python2.6']
> [3]
> scons --no-cache
build/ALPHA_SE/tests/debug/quick
> [4]
> sudo apt-get --purge remove
scons
> sudo autoremove
> sudo autoclean

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

Reply via email to