Why don't you just grep for mtune and march in the SConscript files and
remove those flags, since they're not required. Try to build with scons
pretty=0 to make sure they're being removed.

On Mon, Aug 20, 2012 at 1:36 PM, kuniors <[email protected]> wrote:

> **
> Hello,
>
> I am trying to compile the newest version of marss. However, I got the
> following error:
>
>  Compiling :: ptlsim/build/cache/bus.cpp ==> ptlsim/build/cache/bus.o
> ptlsim/build/cache/bus.cpp:1: error: bad value (native) for -march= switch
> ptlsim/build/cache/bus.cpp:1: error: bad value (native) for -mtune= switch
>
> Compiling :: ptlsim/build/cache/cacheController.cpp ==> 
> ptlsim/build/cache/cacheController.o
>
> ptlsim/build/cache/cacheController.cpp:1: error: bad value (native) for 
> -march= switch
>
> ptlsim/build/cache/cacheController.cpp:1: error: bad value (native) for 
> -mtune= switch
>
> Compiling :: ptlsim/build/cache/cacheTypes.cpp ==> 
> ptlsim/build/cache/cacheTypes.o
>
> ptlsim/build/cache/cacheTypes.cpp:1: error: bad value (native) for -march= 
> switch
>
> ptlsim/build/cache/cacheTypes.cpp:1: error: bad value (native) for -mtune= 
> switch
>
> Compiling :: ptlsim/build/cache/coherentCache.cpp ==> 
> ptlsim/build/cache/coherentCache.o
>
> ptlsim/build/cache/coherentCache.cpp:1: error: bad value (native) for -march= 
> switch
>
> ptlsim/build/cache/coherentCache.cpp:1: error: bad value (native) for -mtune= 
> switch
>
> Compiling :: ptlsim/build/cache/cpuController.cpp ==> 
> ptlsim/build/cache/cpuController.o
>
> ptlsim/build/cache/cpuController.cpp:1: error: bad value (native) for -march= 
> switch
>
> ptlsim/build/cache/cpuController.cpp:1: error: bad value (native) for -mtune= 
> switch
>
> Compiling :: ptlsim/build/cache/globalDirectory.cpp ==> 
> ptlsim/build/cache/globalDirectory.o
>
> ptlsim/build/cache/globalDirectory.cpp:1: error: bad value (native) for 
> -march= switch
>
> ptlsim/build/cache/globalDirectory.cpp:1: error: bad value (native) for 
> -mtune= switch
>
> Compiling :: ptlsim/build/cache/memoryController.cpp ==> 
> ptlsim/build/cache/memoryController.o
>
> ptlsim/build/cache/memoryController.cpp:1: error: bad value (native) for 
> -march= switch
>
> ptlsim/build/cache/memoryController.cpp:1: error: bad value (native) for 
> -mtune= switch
>
> Compiling :: ptlsim/build/cache/memoryHierarchy.cpp ==> 
> ptlsim/build/cache/memoryHierarchy.o
>
> ptlsim/build/cache/memoryHierarchy.cpp:1: error: bad value (native) for 
> -march= switch
>
> ptlsim/build/cache/memoryHierarchy.cpp:1: error: bad value (native) for 
> -mtune= switch
>
> Compiling :: ptlsim/build/cache/memoryRequest.cpp ==> 
> ptlsim/build/cache/memoryRequest.o
>
> ptlsim/build/cache/memoryRequest.cpp:1: error: bad value (native) for -march= 
> switch
>
> ptlsim/build/cache/memoryRequest.cpp:1: error: bad value (native) for -mtune= 
> switch
>
> Compiling :: ptlsim/build/cache/mesiLogic.cpp ==> 
> ptlsim/build/cache/mesiLogic.o
>
> ptlsim/build/cache/mesiLogic.cpp:1: error: bad value (native) for -march= 
> switch
>
> ptlsim/build/cache/mesiLogic.cpp:1: error: bad value (native) for -mtune= 
> switch
>
> My g++ version is 4.1.2
>
> Could you please help me out? What is the best version of G++ for
> marss? Or if there is any other way to work around since it is difficult to
> update g++ for me.
>
> Thank you so much.
>
> ------------------------------
> kuniors
>
> _______________________________________________
> http://www.marss86.org
> Marss86-Devel mailing list
> [email protected]
> https://www.cs.binghamton.edu/mailman/listinfo/marss86-devel
>
>
_______________________________________________
http://www.marss86.org
Marss86-Devel mailing list
[email protected]
https://www.cs.binghamton.edu/mailman/listinfo/marss86-devel

Reply via email to