There are some issues with gcc 4.6 and python 2.7 that break compilation. We're 
trying to get these fixed, but in the mean time please use gcc 4.5 and python 
2.6. 

Ali

Sent from my ARM powered device

On Oct 28, 2011, at 9:08 PM, Digant <[email protected]> wrote:

> I had the same error , try gcc-4.5 , I don't know whats wrong with 4.6 .
> 
> 
> Regards,
> Digant Desai.
> 
> 
> 
> On Fri, Oct 28, 2011 at 18:29, Marios Michael <[email protected]> wrote:
> Hi , when i try to compile i always see this error : 
> 
> marios@ubuntu:~/gem5$ scons build/POWER_SE/gem5.opt
> scons: Reading SConscript files ...
> Checking for leading underscore in global variables...(cached) no
> Checking for C header file Python.h... (cached) yes
> Checking for C library pthread... (cached) yes
> Checking for C library dl... (cached) yes
> Checking for C library util... (cached) yes
> Checking for C library m... (cached) yes
> Checking for C library python2.7... (cached) yes
> Checking for accept(0,0,0) in C++ library None... (cached) yes
> Checking for zlibVersion() in C++ library z... (cached) yes
> Checking for clock_nanosleep(0,0,NULL,NULL) in C library None... (cached) no
> Checking for clock_nanosleep(0,0,NULL,NULL) in C library rt... (cached) yes
> Checking for C header file fenv.h... (cached) yes
> Reading SConsopts
> Building in /home/marios/gem5/build/POWER_SE
> Variables file /home/marios/gem5/build/variables/POWER_SE not found,
>   using defaults in /home/marios/gem5/build_opts/POWER_SE
> Generating LALR tables
> WARNING: 1 shift/reduce conflict
> scons: done reading SConscript files.
> scons: Building targets ...
>  [     CXX] POWER_SE/sim/main.cc -> .o
>  [     CXX] POWER_SE/base/atomicio.cc -> .o
>  [     CXX] POWER_SE/base/bigint.cc -> .o
>  [     CXX] POWER_SE/base/bitmap.cc -> .o
>  [     CXX] POWER_SE/base/callback.cc -> .o
>  [     CXX] POWER_SE/base/circlebuf.cc -> .o
>  [     CXX] POWER_SE/base/cprintf.cc -> .o
>  [     CXX] POWER_SE/base/debug.cc -> .o
>  [CONFIG H] FAST_ALLOC_STATS, 0 -> POWER_SE/config/fast_alloc_stats.hh
>  [CONFIG H] FORCE_FAST_ALLOC, 0 -> POWER_SE/config/force_fast_alloc.hh
>  [CONFIG H] NO_FAST_ALLOC, 0 -> POWER_SE/config/no_fast_alloc.hh
>  [     CXX] POWER_SE/base/fast_alloc.cc -> .o
>  [      CC] POWER_SE/base/fenv.c -> .o
>  [     CXX] POWER_SE/base/hostinfo.cc -> .o
>  [     CXX] POWER_SE/base/inet.cc -> .o
> build/POWER_SE/base/inet.cc: In member function 'bool 
> Net::TcpOpt::sack(std::vector<Range<short unsigned int> >&) const':
> build/POWER_SE/base/inet.cc:262:39: error: expected primary-expression before 
> ',' token
> build/POWER_SE/base/inet.cc:262:54: error: 'offsetof' was not declared in 
> this scope
> scons: *** [build/POWER_SE/base/inet.o] Error 1
> scons: building terminated because of errors.
> 
> 
> 
> gcc version 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3) 
> OS Ubuntu 10.11
> SWING Version 2.0.4 and after i installed 2.0.3 
> Python 2.7.2+
> 
> 
> I always get this error no matter what i use (POWER_SE,X86_SE,ALPHA_SE 
> etc...) and i don't know what is the problem as i am new around here. Can you 
> please help me?
> 
> Thanks
> 
> 
> Marios Michael
> [email protected]
> 
> 
> 
> 
> 
> 
> 
> 
> 
> _______________________________________________
> 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
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to