Thanks for your reply~
My G++ version is 4.2.4.
The SWIG version is 1.3.29

However, I have successfully built M5 on another machine with G++ 4.1.1
If you still need my core_wrap.cc, please let me know.

By the way, the release note mentioned that M5-2.0b6 supports gcc 4.3 or
upper. 
Does it mean that we can run the benchmark compiled by gcc 4.3 cross
compiler on M5 FS mode?
I have built my own cross compiler using gcc 4.2.4 with the crosstool.
However, the executable could not correctly run on the M5-2.0b5 FS mode.
Could you provide the gcc 4.2 (or 4.3) cross compiler which could correctly
compile on the website? 

Thanks again!!

Dennis 

Date: Fri, 10 Oct 2008 04:27:59 -0700
From: "nathan binkert" <[EMAIL PROTECTED]>
Subject: Re: [m5-users] M5-2.0b6 Compilation Problem
To: "M5 users mailing list" <[email protected]>
Message-ID:
        <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1

You can certainly remove the -Werror.  I'd like to know more if
possible. What version of G++?  What version of swig?  Can you send me
a copy of core_wrap.cc?

Thanks,
  Nate

On Fri, Oct 10, 2008 at 12:09 AM, Dennis Yang <[EMAIL PROTECTED]> wrote:
> Hi~
>
> I try to install the new M5-2.0b6 simulator on my workstation.
>
> However, there is an error during the compilation work.
>
> Here comes the error message:
>
>
>
> g++ -o build/ALPHA_FS/python/swig/core_wrap.o -c -pipe
-fno-strict-aliasing
> -Wall -Wno-sign-compare -Werror -Wundef -g -O3 -Wno-uninitialized
> -Wno-sign-compare -Wno-parentheses -Wno-deprecated -DTHE_ISA=ALPHA_ISA
> -DTRACING_ON=1 -Iext/dnet -I/usr/include/python2.4 -Ibuild/libelf
> -Ibuild/ALPHA_FS build/ALPHA_FS/python/swig/core_wrap.cc
>
> cc1plus: warnings being treated as errors
>
> build/ALPHA_FS/python/swig/core_wrap.cc: In function 'void
> SWIG_Python_SetSwigThis(PyObject*, PyObject*)':
>
> build/ALPHA_FS/python/swig/core_wrap.cc:2172: warning: deprecated
conversion
> from string constant to 'char*'
>
> build/ALPHA_FS/arch/alpha/isa_traits.hh: At global scope:
>
> build/ALPHA_FS/arch/alpha/isa_traits.hh:159: warning:
> 'AlphaISA::SyscallPseudoReturnReg' defined but not used
>
> scons: *** [build/ALPHA_FS/python/swig/core_wrap.o] Error 1
>
> scons: building terminated because of errors.
>
>
>
> Could I just remove the "-Werror" flag to finish this compilation?
>
> If I miss any possible step, please let me know. Thanks
>
>
>
> Thanks for your reading.
>
> Any help would be grateful.
>
>
>
> Dennis
>
> _______________________________________________
> m5-users mailing list
> [email protected]
> http://m5sim.org/cgi-bin/mailman/listinfo/m5-users
>




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

Reply via email to