Csound Csound-dev Csound-tekno Search About

[Cs-dev] build from latest git fails with python error

Date2012-09-26 13:43
FromDave Phillips
Subject[Cs-dev] build from latest git fails with python error
Greetings,

Actually, I'm not sure it's a Python problem, it's more likely a GCC 
problem. Compiling Cs5 from GIT on AVLinux (Debian Squeeze) I get this 
error:

     interfaces/python_interface_wrap.cc:3403:13: error: 'ptrdiff_t' 
does not name a type

(Followed by many similar messages.)

GCC is 4.6, and at least one Google'd solution involved adding '#include 
' but I'm not sure where it should go. (It gets erased on 
recompile if I add it to the offending file).

Any suggestions other than upgrading the system ?

Best,

dp


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2012-09-26 14:52
FromMichael Gogins
SubjectRe: [Cs-dev] build from latest git fails with python error
 needs to be scanned when the wrappers are generated and/or compiled.

It should be #included in the relevant headers that SWIG is scanning
in the %-delimited section. Probably your problem arises because
 is #included for gcc but not for  SWIG.

Hope this helps,
Mike

On Wed, Sep 26, 2012 at 8:43 AM, Dave Phillips  wrote:
> Greetings,
>
> Actually, I'm not sure it's a Python problem, it's more likely a GCC
> problem. Compiling Cs5 from GIT on AVLinux (Debian Squeeze) I get this
> error:
>
>      interfaces/python_interface_wrap.cc:3403:13: error: 'ptrdiff_t'
> does not name a type
>
> (Followed by many similar messages.)
>
> GCC is 4.6, and at least one Google'd solution involved adding '#include
> ' but I'm not sure where it should go. (It gets erased on
> recompile if I add it to the offending file).
>
> Any suggestions other than upgrading the system ?
>
> Best,
>
> dp
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel



-- 
Michael Gogins
Irreducible Productions
http://www.michael-gogins.com
Michael dot Gogins at gmail dot com

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2012-09-26 14:54
FromVictor Lazzarini
SubjectRe: [Cs-dev] build from latest git fails with python error
#include   is there, but after the offending line. So maybe you need to move these lines in
interfaces/python_interface.i 

%{
    #include 
    #include "csound.h"
    #include "cfgvar.h"
    #include "csound.hpp"
    #include "cs_glue.hpp"
    #include "csPerfThread.hpp"
    #include "CsoundFile.hpp"
    #include "CppSound.hpp"
    #include "filebuilding.h"
    #include "Soundfile.hpp" 
%}

to the top of that file?

Victor

On 26 Sep 2012, at 13:43, Dave Phillips wrote:

> Greetings,
> 
> Actually, I'm not sure it's a Python problem, it's more likely a GCC 
> problem. Compiling Cs5 from GIT on AVLinux (Debian Squeeze) I get this 
> error:
> 
>     interfaces/python_interface_wrap.cc:3403:13: error: 'ptrdiff_t' 
> does not name a type
> 
> (Followed by many similar messages.)
> 
> GCC is 4.6, and at least one Google'd solution involved adding '#include 
> ' but I'm not sure where it should go. (It gets erased on 
> recompile if I add it to the offending file).
> 
> Any suggestions other than upgrading the system ?
> 
> Best,
> 
> dp
> 
> 
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and 
> threat landscape has changed and how IT managers can respond. Discussions 
> will include endpoint security, mobile security and the latest in malware 
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie




------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2012-09-26 14:55
FromMichael Gogins
SubjectRe: [Cs-dev] build from latest git fails with python error
I think Victor is correct... This is what I was talking about, the
#includes within %{ ... }% are scanned by SWIG and #included in the
generated wrapper. And as Victor says order is important.

But of course these files have to be in the include path not only for
gcc but also for SWIG.

Regards,,
Mike

On Wed, Sep 26, 2012 at 9:54 AM, Victor Lazzarini
 wrote:
> #include   is there, but after the offending line. So maybe you need to move these lines in
> interfaces/python_interface.i
>
> %{
>     #include 
>     #include "csound.h"
>     #include "cfgvar.h"
>     #include "csound.hpp"
>     #include "cs_glue.hpp"
>     #include "csPerfThread.hpp"
>     #include "CsoundFile.hpp"
>     #include "CppSound.hpp"
>     #include "filebuilding.h"
>     #include "Soundfile.hpp"
> %}
>
> to the top of that file?
>
> Victor
>
> On 26 Sep 2012, at 13:43, Dave Phillips wrote:
>
>> Greetings,
>>
>> Actually, I'm not sure it's a Python problem, it's more likely a GCC
>> problem. Compiling Cs5 from GIT on AVLinux (Debian Squeeze) I get this
>> error:
>>
>>     interfaces/python_interface_wrap.cc:3403:13: error: 'ptrdiff_t'
>> does not name a type
>>
>> (Followed by many similar messages.)
>>
>> GCC is 4.6, and at least one Google'd solution involved adding '#include
>> ' but I'm not sure where it should go. (It gets erased on
>> recompile if I add it to the offending file).
>>
>> Any suggestions other than upgrading the system ?
>>
>> Best,
>>
>> dp
>>
>>
>> ------------------------------------------------------------------------------
>> Live Security Virtual Conference
>> Exclusive live event will cover all the ways today's security and
>> threat landscape has changed and how IT managers can respond. Discussions
>> will include endpoint security, mobile security and the latest in malware
>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
> Dr Victor Lazzarini
> Senior Lecturer
> Dept. of Music
> NUI Maynooth Ireland
> tel.: +353 1 708 3545
> Victor dot Lazzarini AT nuim dot ie
>
>
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel



-- 
Michael Gogins
Irreducible Productions
http://www.michael-gogins.com
Michael dot Gogins at gmail dot com

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2012-09-26 14:57
FromVictor Lazzarini
SubjectRe: [Cs-dev] build from latest git fails with python error
No, that does not do it.
On 26 Sep 2012, at 14:54, Victor Lazzarini wrote:

> #include   is there, but after the offending line. So maybe you need to move these lines in
> interfaces/python_interface.i 
> 
> %{
>    #include 
>    #include "csound.h"
>    #include "cfgvar.h"
>    #include "csound.hpp"
>    #include "cs_glue.hpp"
>    #include "csPerfThread.hpp"
>    #include "CsoundFile.hpp"
>    #include "CppSound.hpp"
>    #include "filebuilding.h"
>    #include "Soundfile.hpp" 
> %}
> 
> to the top of that file?
> 
> Victor
> 
> On 26 Sep 2012, at 13:43, Dave Phillips wrote:
> 
>> Greetings,
>> 
>> Actually, I'm not sure it's a Python problem, it's more likely a GCC 
>> problem. Compiling Cs5 from GIT on AVLinux (Debian Squeeze) I get this 
>> error:
>> 
>>    interfaces/python_interface_wrap.cc:3403:13: error: 'ptrdiff_t' 
>> does not name a type
>> 
>> (Followed by many similar messages.)
>> 
>> GCC is 4.6, and at least one Google'd solution involved adding '#include 
>> ' but I'm not sure where it should go. (It gets erased on 
>> recompile if I add it to the offending file).
>> 
>> Any suggestions other than upgrading the system ?
>> 
>> Best,
>> 
>> dp
>> 
>> 
>> ------------------------------------------------------------------------------
>> Live Security Virtual Conference
>> Exclusive live event will cover all the ways today's security and 
>> threat landscape has changed and how IT managers can respond. Discussions 
>> will include endpoint security, mobile security and the latest in malware 
>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 
> Dr Victor Lazzarini
> Senior Lecturer
> Dept. of Music
> NUI Maynooth Ireland
> tel.: +353 1 708 3545
> Victor dot Lazzarini AT nuim dot ie
> 
> 
> 
> 
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and 
> threat landscape has changed and how IT managers can respond. Discussions 
> will include endpoint security, mobile security and the latest in malware 
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie




------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2012-09-26 15:00
FromVictor Lazzarini
SubjectRe: [Cs-dev] build from latest git fails with python error
In fact, cstddef occurs before line 3403, so that is not the fix you are looking for.

On 26 Sep 2012, at 14:57, Victor Lazzarini wrote:

> No, that does not do it.
> On 26 Sep 2012, at 14:54, Victor Lazzarini wrote:
> 
>> #include   is there, but after the offending line. So maybe you need to move these lines in
>> interfaces/python_interface.i 
>> 
>> %{
>>   #include 
>>   #include "csound.h"
>>   #include "cfgvar.h"
>>   #include "csound.hpp"
>>   #include "cs_glue.hpp"
>>   #include "csPerfThread.hpp"
>>   #include "CsoundFile.hpp"
>>   #include "CppSound.hpp"
>>   #include "filebuilding.h"
>>   #include "Soundfile.hpp" 
>> %}
>> 
>> to the top of that file?
>> 
>> Victor
>> 
>> On 26 Sep 2012, at 13:43, Dave Phillips wrote:
>> 
>>> Greetings,
>>> 
>>> Actually, I'm not sure it's a Python problem, it's more likely a GCC 
>>> problem. Compiling Cs5 from GIT on AVLinux (Debian Squeeze) I get this 
>>> error:
>>> 
>>>   interfaces/python_interface_wrap.cc:3403:13: error: 'ptrdiff_t' 
>>> does not name a type
>>> 
>>> (Followed by many similar messages.)
>>> 
>>> GCC is 4.6, and at least one Google'd solution involved adding '#include 
>>> ' but I'm not sure where it should go. (It gets erased on 
>>> recompile if I add it to the offending file).
>>> 
>>> Any suggestions other than upgrading the system ?
>>> 
>>> Best,
>>> 
>>> dp
>>> 
>>> 
>>> ------------------------------------------------------------------------------
>>> Live Security Virtual Conference
>>> Exclusive live event will cover all the ways today's security and 
>>> threat landscape has changed and how IT managers can respond. Discussions 
>>> will include endpoint security, mobile security and the latest in malware 
>>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> 
>> Dr Victor Lazzarini
>> Senior Lecturer
>> Dept. of Music
>> NUI Maynooth Ireland
>> tel.: +353 1 708 3545
>> Victor dot Lazzarini AT nuim dot ie
>> 
>> 
>> 
>> 
>> ------------------------------------------------------------------------------
>> Live Security Virtual Conference
>> Exclusive live event will cover all the ways today's security and 
>> threat landscape has changed and how IT managers can respond. Discussions 
>> will include endpoint security, mobile security and the latest in malware 
>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 
> Dr Victor Lazzarini
> Senior Lecturer
> Dept. of Music
> NUI Maynooth Ireland
> tel.: +353 1 708 3545
> Victor dot Lazzarini AT nuim dot ie
> 
> 
> 
> 
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and 
> threat landscape has changed and how IT managers can respond. Discussions 
> will include endpoint security, mobile security and the latest in malware 
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie




------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2012-09-26 15:00
FromVictor Lazzarini
SubjectRe: [Cs-dev] build from latest git fails with python error
and indeed it is present in python_interface.i
On 26 Sep 2012, at 14:52, Michael Gogins wrote:

>  needs to be scanned when the wrappers are generated and/or compiled.
> 
> It should be #included in the relevant headers that SWIG is scanning
> in the %-delimited section. Probably your problem arises because
>  is #included for gcc but not for  SWIG.
> 
> Hope this helps,
> Mike
> 
> On Wed, Sep 26, 2012 at 8:43 AM, Dave Phillips  wrote:
>> Greetings,
>> 
>> Actually, I'm not sure it's a Python problem, it's more likely a GCC
>> problem. Compiling Cs5 from GIT on AVLinux (Debian Squeeze) I get this
>> error:
>> 
>>     interfaces/python_interface_wrap.cc:3403:13: error: 'ptrdiff_t'
>> does not name a type
>> 
>> (Followed by many similar messages.)
>> 
>> GCC is 4.6, and at least one Google'd solution involved adding '#include
>> ' but I'm not sure where it should go. (It gets erased on
>> recompile if I add it to the offending file).
>> 
>> Any suggestions other than upgrading the system ?
>> 
>> Best,
>> 
>> dp
>> 
>> 
>> ------------------------------------------------------------------------------
>> Live Security Virtual Conference
>> Exclusive live event will cover all the ways today's security and
>> threat landscape has changed and how IT managers can respond. Discussions
>> will include endpoint security, mobile security and the latest in malware
>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 
> 
> 
> -- 
> Michael Gogins
> Irreducible Productions
> http://www.michael-gogins.com
> Michael dot Gogins at gmail dot com
> 
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and 
> threat landscape has changed and how IT managers can respond. Discussions 
> will include endpoint security, mobile security and the latest in malware 
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie




------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net