On Sep 22, 2011, at 1:58 AM, shu wrote:

> Thank your for the reply. 
> 
> Actually, I am not the administrator of the system and the root permission. 
> So I can't update and install any package in the root account.

Usually if you ask administrators they may install gcc4.5/4.4 in the system. 
May be its already installed. Check /usr/bin/ location of your filesystem.

> I want to install a gcc 4.5 on my account and compile the gem5. I think it 
> just like a cross compiler.

Its not cross-compiling.

> However I don't find out how to use a external gcc to compile the gem5.

Download gcc source from 
http://mirrors-us.seosue.com/gcc/releases/gcc-4.5.3/gcc-4.5.3.tar.bz2 . Compile 
the source using your default gcc. Keep the compiled gcc4.5 binary in some 
location at your home folder. Now create CC and CXX environment variables and 
point them to your gcc4.5 binary located in your home path. Source your .bashrc 
script. And check if CC and CXX variables are correct. Compile the GEM5 source 
using --verbose option. This way you can see the every file compilation command 
in detail.

> Could you please give some advice to solve the problem?
> 
> Thanks in advance.
> 
> Regards,
> Shu.
> _______________________________________________
> gem5-users mailing list
> [email protected]
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

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

Reply via email to