← Back to team overview

yade-users team mailing list archive

Re: error: bad value (native) for -march= switch, while compiling on a cluster


Have anyone ever met this problem while compiling YADE on a cluster? The scons check has passed but when begin compiling the source:

/data/DEM_CFD/build-svn1942/core/core.cpp:1: error: bad value (native) for -march= switch

You are using gcc older than 4.3 (IIRC), see man gcc, the -march switch and say

  scons march=opteron-sse3

using the right architecture for the machine you are ocmpiling in. Native was added in 4.3 and it means that it chooses the architecture of the host for the binary.