Csound Csound-dev Csound-tekno Search About

Re: [Cs-dev] Bad SConstruct, slow csound

Date2005-07-04 04:34
From"Michael Gogins"
SubjectRe: [Cs-dev] Bad SConstruct, slow csound
I take back what I said about spaces and tabs. The problem is that noDebug 
is not consistent with gcc3Opt (I don't know why it can't be).  If one 
speciefies gcc3opt=0, one must specify noDebug=1, otherwise, no build.

Can the SConstruct file written to change the noDebug option to match the 
gcc Opt options, or failing that, work with either debugging or no debugging 
if not optimized?

Regards,
Mike

----- Original Message ----- 
From: "Michael Gogins" 
To: 
Sent: Sunday, July 03, 2005 10:37 PM
Subject: [Cs-dev] Bad SConstruct, slow csound


>I can't build Csound 5 any more for MinGW. Something got screwed up in 
>SConstruct after 1.224 or so. I've been trying to pin down the problem to 
>no avail. None of the header files can be found, starting with sndfile.h, 
>even though they are installed on my system in /usr/local/include, which is 
>also part of the SCons environment.
>
> I do see that there are tabs, spaces, and varying sizes of indentation. 
> For Python, this is bad practice. Please use tabs not spaces and the 
> indentation sizes that are present in the majority of the file. Better 
> yet, use Idle or a Python editor to edit the file.
>
> Even with SConstruct 1.224, Csound runs much, much, much more slowly than 
> it used to.
>
> What gives?
>
> Mike
>
>
>
> -------------------------------------------------------
> SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
> from IBM. Find simple to follow Roadmaps, straightforward articles,
> informative Webcasts and more! Get everything you need to get up to
> speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 




-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-07-04 12:54
FromIstvan Varga
SubjectRe: [Cs-dev] Bad SConstruct, slow csound
Michael Gogins wrote:

> I take back what I said about spaces and tabs. The problem is that 
> noDebug is not consistent with gcc3Opt (I don't know why it can't be).  
> If one speciefies gcc3opt=0, one must specify noDebug=1, otherwise, no 
> build.

I do not have this error, and can build with noDebug=0 and noDebug=1
if gcc3opt=0 is set. If gcc3opt is not disabled, then noDebug is ignored
as optimized code (particulary with -fomit-frame-pointer) is generally
not well suited for debugging.
Here is the relevant part of SConstruct:

if (commonEnvironment['useLrint'] != '0'):
   commonEnvironment.Prepend(CCFLAGS = ['-DUSE_LRINT'])
if (commonEnvironment['gcc3opt'] != '0' or commonEnvironment['gcc4opt'] != '0'):
...
elif (commonEnvironment['noDebug']=='0'):
   if (getPlatform() == 'darwin'):
     commonEnvironment.Prepend(CCFLAGS = Split('-g -O2'))
   else:
     commonEnvironment.Prepend(CCFLAGS = Split('-g -gstabs -O2'))
else:
   commonEnvironment.Prepend(CCFLAGS = ['-O2'])


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-07-04 19:03
FromIstvan Varga
SubjectRe: [Cs-dev] Bad SConstruct, slow csound
Michael Gogins wrote:

> I take back what I said about spaces and tabs. The problem is that 
> noDebug is not consistent with gcc3Opt (I don't know why it can't be).  
> If one speciefies gcc3opt=0, one must specify noDebug=1, otherwise, no 
> build.

It may be of some help to have a look at the config.log file that is
generated with the settings that result in the error.


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net