Csound Csound-dev Csound-tekno Search About

[Cs-dev] PThreads

Date2014-11-27 18:17
FromMichael Gogins
Subject[Cs-dev] PThreads
AttachmentsNone  None  
So what should I do about linking with the pthread library when building Csound and the Windows installer for Csound? Keep in mind, this includes Csound as an application, Csound as a VST plugin for VST, and the Csound shared library and headers to be used by other programs. A lot of plugin opcodes that use pthreads (as a shared library) also are included. 

Right now, I'm just going to revert to building everything including Csound and csnd6 using pthreads as a shared library.

Regards,
Mike

-----------------------------------------------------
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com

Date2014-11-27 18:27
FromRory Walsh
SubjectRe: [Cs-dev] PThreads
I'm still wrangling with this myself. It doesn't appear to be as
straight forward as I had imagined. I can get it working fine for
Cabbage, but when I try to build a basic csound.exe I keep getting a
runtime termination. For now perhaps, in the interest of this release,
you should just run off your usual build. It works out of the box. The
use of csound~ with max4Live might well remain an issue, but it is
only one issue. If users really want to use csound~ in Live i can
provide a working build for them. I'll keep digging away at this.

On 27 November 2014 at 18:17, Michael Gogins  wrote:
> So what should I do about linking with the pthread library when building
> Csound and the Windows installer for Csound? Keep in mind, this includes
> Csound as an application, Csound as a VST plugin for VST, and the Csound
> shared library and headers to be used by other programs. A lot of plugin
> opcodes that use pthreads (as a shared library) also are included.
>
> Right now, I'm just going to revert to building everything including Csound
> and csnd6 using pthreads as a shared library.
>
> Regards,
> Mike
>
> -----------------------------------------------------
> Michael Gogins
> Irreducible Productions
> http://michaelgogins.tumblr.com
> Michael dot Gogins at gmail dot com
>
> ------------------------------------------------------------------------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
> http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-11-27 18:42
FromRory Walsh
SubjectRe: [Cs-dev] PThreads
I've noticed some other things. I just did a clean clone of
csound/devel and built with as many options as possible. I get the
following error on exit when I run csound.exe:

This application has requested the Runtime to terminate it in an
unusual way. Please contact the application's support team for more
information.

I then removed the  '-static-libgcc -static' I had added to
CMakeLists.txt (lines 260, 261) and my csound.exe no longer fails on
exit and appears to work just fine. I suggest that those lines now be
removed so we can move forward with the release. I find it odd that
the changes I have made locally to address the pthreads issue work
fine with Cabbage, but cause a problem with csound.exe. I'll keep
digging and we can look to make better progress on a future release.

On 27 November 2014 at 18:27, Rory Walsh  wrote:
> I'm still wrangling with this myself. It doesn't appear to be as
> straight forward as I had imagined. I can get it working fine for
> Cabbage, but when I try to build a basic csound.exe I keep getting a
> runtime termination. For now perhaps, in the interest of this release,
> you should just run off your usual build. It works out of the box. The
> use of csound~ with max4Live might well remain an issue, but it is
> only one issue. If users really want to use csound~ in Live i can
> provide a working build for them. I'll keep digging away at this.
>
> On 27 November 2014 at 18:17, Michael Gogins  wrote:
>> So what should I do about linking with the pthread library when building
>> Csound and the Windows installer for Csound? Keep in mind, this includes
>> Csound as an application, Csound as a VST plugin for VST, and the Csound
>> shared library and headers to be used by other programs. A lot of plugin
>> opcodes that use pthreads (as a shared library) also are included.
>>
>> Right now, I'm just going to revert to building everything including Csound
>> and csnd6 using pthreads as a shared library.
>>
>> Regards,
>> Mike
>>
>> -----------------------------------------------------
>> Michael Gogins
>> Irreducible Productions
>> http://michaelgogins.tumblr.com
>> Michael dot Gogins at gmail dot com
>>
>> ------------------------------------------------------------------------------
>> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
>> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
>> with Interactivity, Sharing, Native Excel Exports, App Integration & more
>> Get technology previously reserved for billion-dollar corporations, FREE
>> http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-11-27 23:39
FromRory Walsh
SubjectRe: [Cs-dev] PThreads
I've finally managed to build most things with a static link to
pthread, but csound.exe continues to crash on exit so I think perhaps
we can let this go. It seems that it might be more hassle than it's
worth.

I'm happy to make these changes locally for Cabbage builds, and if
anyone has an issue with csound~ they can use the one I bundle with
Cabbage. I can hack the source so that its OPCODE6DIR64 points to my
dlls rather than the ones in Mike's installer. Therefore users can
have both packages installed side by side without any problems.

On 27 November 2014 at 18:42, Rory Walsh  wrote:
> I've noticed some other things. I just did a clean clone of
> csound/devel and built with as many options as possible. I get the
> following error on exit when I run csound.exe:
>
> This application has requested the Runtime to terminate it in an
> unusual way. Please contact the application's support team for more
> information.
>
> I then removed the  '-static-libgcc -static' I had added to
> CMakeLists.txt (lines 260, 261) and my csound.exe no longer fails on
> exit and appears to work just fine. I suggest that those lines now be
> removed so we can move forward with the release. I find it odd that
> the changes I have made locally to address the pthreads issue work
> fine with Cabbage, but cause a problem with csound.exe. I'll keep
> digging and we can look to make better progress on a future release.
>
> On 27 November 2014 at 18:27, Rory Walsh  wrote:
>> I'm still wrangling with this myself. It doesn't appear to be as
>> straight forward as I had imagined. I can get it working fine for
>> Cabbage, but when I try to build a basic csound.exe I keep getting a
>> runtime termination. For now perhaps, in the interest of this release,
>> you should just run off your usual build. It works out of the box. The
>> use of csound~ with max4Live might well remain an issue, but it is
>> only one issue. If users really want to use csound~ in Live i can
>> provide a working build for them. I'll keep digging away at this.
>>
>> On 27 November 2014 at 18:17, Michael Gogins  wrote:
>>> So what should I do about linking with the pthread library when building
>>> Csound and the Windows installer for Csound? Keep in mind, this includes
>>> Csound as an application, Csound as a VST plugin for VST, and the Csound
>>> shared library and headers to be used by other programs. A lot of plugin
>>> opcodes that use pthreads (as a shared library) also are included.
>>>
>>> Right now, I'm just going to revert to building everything including Csound
>>> and csnd6 using pthreads as a shared library.
>>>
>>> Regards,
>>> Mike
>>>
>>> -----------------------------------------------------
>>> Michael Gogins
>>> Irreducible Productions
>>> http://michaelgogins.tumblr.com
>>> Michael dot Gogins at gmail dot com
>>>
>>> ------------------------------------------------------------------------------
>>> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
>>> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
>>> with Interactivity, Sharing, Native Excel Exports, App Integration & more
>>> Get technology previously reserved for billion-dollar corporations, FREE
>>> http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net