Setting gcc3opt should be done as a commandline arguments to Scons. For myself, I have a simple build.sh file that just calls scons with the commandline flags I use, i.e.: #!/bin/sh scons gcc3opt=pentium3 noDebug=1 ... (I'm not on my linux computer at the moment so can't recall what args I use) I use my build.sh whenever I build and if I experiment with flags I edit it there, not the Sconstruct file or custom.py. You can see the commandline options for the build system by running: scons -h Hope that helps! steven On 4/9/06, Iain Duncan wrote: > > >>>So, do you mean the code works OK without optimization, but crashes if > >>>compiled with optimization ? That sounds like a possible compiler bug; > >>>what compiler version is used in your current distribution ? You could > >>>also experiment with various compiler flags to see when the crash occurs > >>>and when it does not (example customCCFLAGS settings: "-O", "-O2", > >>>"-O2 -fno-strict-aliasing"). > >> > >>Can you tell me what I should be using for the gcc3opt flags? > > > > > > For debugging, gcc3opt should not be used. Otherwise, the gcc manual > > documents these CPU types for -march: > > > > _k8, opteron, athlon64, athlon-fx_ > > AMD K8 core based CPUs with x86-64 instruction set support. > > (This supersets MMX, SSE, SSE2, 3dNOW!, enhanced 3dNOW! and > > 64-bit instruction set extensions.) > > > > Try using one of the above (for example, gcc3opt=k8), and see if that > > works. Or, if these all fail, just add buildRelease=1 or use customCCFLAGS. > > Sorry, I'm still confused. Where do I set that option? ( gcc3opt=k8 ) I > assume I set it to 1 in SConstruct, and then in one of the custom.py > options? > > Thanks > Iain > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting language > that extends applications into web and mobile media. Attend the live webcast > and join the prime developer group breaking into this new coding territory! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > _______________________________________________ > Csound-devel mailing list > Csound-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/csound-devel > ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net