Hi, I've solve the issue. It seems like I had to reinstall cpp with yum reinstall cpp and cc1 file was restored. Thanks for all the help.
Best, Zheng On 2013-01-23, at 12:35 PM, Zheng Wu <z...@uwaterloo.ca> wrote: > Hi Andreas, > > Thank you for your reply. > > Yes the header file is indeed there. I opened it and read the contents. > > I've tired rebuilding and removing the build directory. I've read the > scone_config.log file [1] and it seems like it's complaining about gcc not > being installed. However I did install gcc as well as gcc-c++. Is there > anything else I am missing that needs to be installed? > > Thanks, > Zheng > > [1] > [root@rpsrvr1 build]# cat scons_config.log > file /home/rpellizz/zheng/gem5/gem5/SConstruct,line 743: > Configure(confdir = build/.scons_config) > scons: Configure: Checking for leading underscore in global variables... > build/.scons_config/conftest_0.c <- > | > | asm(".globl _x; _x: .byte 0"); > | extern int x; > | int main() { return x; } > | > [ CC] .scons_config/conftest_0.c -> .o > gcc: error trying to exec 'cc1': execvp: No such file or directory > scons: Configure: no > > scons: Configure: Checking for C header file Python.h... > build/.scons_config/conftest_1.c <- > | > |#include <Python.h> > | > | > [ CC] .scons_config/conftest_1.c -> .o > gcc: error trying to exec 'cc1': execvp: No such file or directory > scons: Configure: no > > On 2013-01-23, at 12:17 PM, Andreas Hansson <andreas.hans...@arm.com> wrote: > >> Hi Zheng, >> >> Could you make sure that the Python.h header is in fact there and that you >> can read it (e.g. using less). Next, have a look in the build directory >> where there is a file named scons_config.log. At the end of this file you >> should hopefully see some more detailed information about what is going >> wrong. >> >> As a precaution, also remove the build directory before you try again. >> >> Andreas >> >> From: Zheng Wu <z...@uwaterloo.ca<mailto:z...@uwaterloo.ca>> >> Reply-To: gem5 users mailing list >> <gem5-users@gem5.org<mailto:gem5-users@gem5.org>> >> Date: Wednesday, 23 January 2013 16:40 >> To: gem5 users mailing list <gem5-users@gem5.org<mailto:gem5-users@gem5.org>> >> Subject: [gem5-users] Error: can't find Python.h header >> >> Hi All, >> >> When I try to build gem5 for X86, I am getting the error shown in [1]. I've >> read about this problem in the previous threads >> (http://comments.gmane.org/gmane.comp.emulators.m5.users/10463 and >> http://comments.gmane.org/gmane.comp.emulators.m5.users/9296). >> >> However, I tried all the suggestions in those thread such as using the >> -no-cache and -config=force options but I am still getting this error. I've >> installed python-dev and my distribution of linux is shown in [2]. The >> version of tools that I am using is shown in [3]. >> >> Can someone please help, I really need to get gem5 to build and run some >> benchmarks. Any suggestions are much appreciated. >> >> Thanks, >> Zheng >> >> [1] >> [root@rpsrvr1 gem5]# scons build/X86/gem5.opt >> scons: Reading SConscript files ... >> Warning: Protocol buffer compiler (protoc) not found. >> Please install protobuf-compiler for tracing support. >> 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'] >> Install Python headers (package python-dev on Ubuntu and RedHat) >> >> [2] >> [root@rpsrvr1 gem5]# cat /etc/*-release >> Scientific Linux release 6.1 (Carbon) >> >> [root@rpsrvr1 gem5]# uname -a >> Linux rpsrvr1.uwaterloo.ca<http://rpsrvr1.uwaterloo.ca/> >> 2.6.32-220.17.1.el6.x86_64 #1 SMP Tue May 15 17:16:46 CDT 2012 x86_64 x86_64 >> x86_64 GNU/Linux >> >> [3] >> python 2.6.6 >> gcc 4.4.5 >> scons 2.0.1 >> swig 1.3.40 >> zlib 1.2.3 >> >> >> -- 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