Csound Csound-dev Csound-tekno Search About

Re: [Cs-dev] windows build fails...

Date2014-11-18 15:06
FromSteven Yi
SubjectRe: [Cs-dev] windows build fails...
AttachmentsNone  None  
I'd like a solution as it fails for building here.  Why was pthreads removed again for this library?  Whatever the reason, I think we'll need a better solution for this so it builds for everyone. 

On Tue Nov 18 2014 at 10:04:28 AM Rory Walsh <rorywalsh@ear.ie> wrote:
If I disable the building of csnd.dll all is fine. This is just an
auxiliary interfaces library right? It's not actually needed in any
way for Csound to run is it?

On 18 November 2014 14:59, Michael Gogins <michael.gogins@gmail.com> wrote:
> One possible cause is that I removed the pthread library from the csnd6 link
> line. But this does not happen for me.
>
> Regards,
> Mike
>
>
> -----------------------------------------------------
> Michael Gogins
> Irreducible Productions
> http://michaelgogins.tumblr.com
> Michael dot Gogins at gmail dot com
>
> On Tue, Nov 18, 2014 at 9:53 AM, Rory Walsh <rorywalsh@ear.ie> wrote:
>>
>> Just did a git pull on the dev branch and can no longer build on Windows:
>>
>> Linking CXX shared library ..\csnd6.dll
>> cd /d
>> C:\Users\rory\Documents\sourcecode\cabbageaudio\csound\build\interfaces &&
>>  "C:\Program Files (x86)\CMake\bin\cmake.exe" -E cmake_link_script
>> CMakeFiles\li
>> bcsnd6.dir\link.txt --verbose=1
>> "C:\Program Files (x86)\CMake\bin\cmake.exe" -E remove -f
>> CMakeFiles\libcsnd6.di
>> r/objects.a
>> C:\mingw32\bin\ar.exe cr CMakeFiles\libcsnd6.dir/objects.a
>> @CMakeFiles\libcsnd6.
>> dir\objects1.rsp
>> C:\mingw32\bin\g++.exe     -static-libstdc++ -static-libgcc -static
>> -shared -o .
>> .\csnd6.dll -Wl,--out-implib,..\libcsnd6.dll.a
>> -Wl,--major-image-version,0,--min
>> or-image-version,0 -Wl,--whole-archive CMakeFiles\libcsnd6.dir/objects.a
>> -Wl,--n
>> o-whole-archive "C:\Program Files
>> (x86)\Mega-Nerd\libsndfile64\bin\libsndfile-1.
>> dll" ..\libcsound64.dll.a -lkernel32 -luser32 -lgdi32 -lwinspool -lshell32
>> -lole
>> 32 -loleaut32 -luuid -lcomdlg32 -ladvapi32
>>
>> CMakeFiles\libcsnd6.dir/objects.a(csPerfThread.cpp.obj):csPerfThread.cpp:(.text+
>> 0x43): undefined reference to `pthread_mutex_lock'
>>
>> CMakeFiles\libcsnd6.dir/objects.a(csPerfThread.cpp.obj):csPerfThread.cpp:(.text+
>> 0x63): undefined reference to `pthread_cond_wait'
>>
>> CMakeFiles\libcsnd6.dir/objects.a(csPerfThread.cpp.obj):csPerfThread.cpp:(.text+
>> 0xd9): undefined reference to `pthread_mutex_unlock'
>>
>> CMakeFiles\libcsnd6.dir/objects.a(csPerfThread.cpp.obj):csPerfThread.cpp:(.text+
>> 0x37b): undefined reference to `pthread_cond_signal'
>>
>> CMakeFiles\libcsnd6.dir/objects.a(csPerfThread.cpp.obj):csPerfThread.cpp:(.text+
>> 0x616): undefined reference to `pthread_mutex_init'
>>
>> CMakeFiles\libcsnd6.dir/objects.a(csPerfThread.cpp.obj):csPerfThread.cpp:(.text+
>> 0x62d): undefined reference to `pthread_cond_init'
>>
>> CMakeFiles\libcsnd6.dir/objects.a(csPerfThread.cpp.obj):csPerfThread.cpp:(.text+
>> 0xaf4): undefined reference to `pthread_cond_signal'
>>
>> C:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.9.0/../../../../i686-w64-mingw32/bi
>> n/ld.exe: CMakeFiles\libcsnd6.dir/objects.a(csPerfThread.cpp.obj): bad
>> reloc add
>> ress 0x15 in section
>> `.text$_ZN30CsoundPerformanceThreadMessage10lockRecordEv[__
>> ZN30CsoundPerformanceThreadMessage10lockRecordEv]'
>> collect2.exe: error: ld returned 1 exit status
>> interfaces\CMakeFiles\libcsnd6.dir\build.make:221: recipe for target
>> 'csnd6.dll'
>>  failed
>> mingw32-make[2]: *** [csnd6.dll] Error 1
>> mingw32-make[2]: Leaving directory
>> 'C:/Users/rory/Documents/sourcecode/cabbageau
>> dio/csound/build'
>> CMakeFiles\Makefile2:1135: recipe for target
>> 'interfaces/CMakeFiles/libcsnd6.dir
>> /all' failed
>> mingw32-make[1]: *** [interfaces/CMakeFiles/libcsnd6.dir/all] Error 2
>> mingw32-make[1]: Leaving directory
>> 'C:/Users/rory/Documents/sourcecode/cabbageau
>> dio/csound/build'
>> Makefile:149: recipe for target 'all' failed
>> mingw32-make: *** [all] Error 2
>>
>>
>> ------------------------------------------------------------------------------
>> 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
> 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
https://lists.sourceforge.net/lists/listinfo/csound-devel

Date2014-11-18 16:17
FromMichael Gogins
SubjectRe: [Cs-dev] windows build fails...
AttachmentsNone  None  
I removed it because it was a conflict for Rory, as I recall. I can put it back. I'd like to know why it works for me and not for you, though.

Regards,
Mike


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

On Tue, Nov 18, 2014 at 10:06 AM, Steven Yi <stevenyi@gmail.com> wrote:
I'd like a solution as it fails for building here.  Why was pthreads removed again for this library?  Whatever the reason, I think we'll need a better solution for this so it builds for everyone. 


On Tue Nov 18 2014 at 10:04:28 AM Rory Walsh <rorywalsh@ear.ie> wrote:
If I disable the building of csnd.dll all is fine. This is just an
auxiliary interfaces library right? It's not actually needed in any
way for Csound to run is it?

On 18 November 2014 14:59, Michael Gogins <michael.gogins@gmail.com> wrote:
> One possible cause is that I removed the pthread library from the csnd6 link
> line. But this does not happen for me.
>
> Regards,
> Mike
>
>
> -----------------------------------------------------
> Michael Gogins
> Irreducible Productions
> http://michaelgogins.tumblr.com
> Michael dot Gogins at gmail dot com
>
> On Tue, Nov 18, 2014 at 9:53 AM, Rory Walsh <rorywalsh@ear.ie> wrote:
>>
>> Just did a git pull on the dev branch and can no longer build on Windows:
>>
>> Linking CXX shared library ..\csnd6.dll
>> cd /d
>> C:\Users\rory\Documents\sourcecode\cabbageaudio\csound\build\interfaces &&
>>  "C:\Program Files (x86)\CMake\bin\cmake.exe" -E cmake_link_script
>> CMakeFiles\li
>> bcsnd6.dir\link.txt --verbose=1
>> "C:\Program Files (x86)\CMake\bin\cmake.exe" -E remove -f
>> CMakeFiles\libcsnd6.di
>> r/objects.a
>> C:\mingw32\bin\ar.exe cr CMakeFiles\libcsnd6.dir/objects.a
>> @CMakeFiles\libcsnd6.
>> dir\objects1.rsp
>> C:\mingw32\bin\g++.exe     -static-libstdc++ -static-libgcc -static
>> -shared -o .
>> .\csnd6.dll -Wl,--out-implib,..\libcsnd6.dll.a
>> -Wl,--major-image-version,0,--min
>> or-image-version,0 -Wl,--whole-archive CMakeFiles\libcsnd6.dir/objects.a
>> -Wl,--n
>> o-whole-archive "C:\Program Files
>> (x86)\Mega-Nerd\libsndfile64\bin\libsndfile-1.
>> dll" ..\libcsound64.dll.a -lkernel32 -luser32 -lgdi32 -lwinspool -lshell32
>> -lole
>> 32 -loleaut32 -luuid -lcomdlg32 -ladvapi32
>>
>> CMakeFiles\libcsnd6.dir/objects.a(csPerfThread.cpp.obj):csPerfThread.cpp:(.text+
>> 0x43): undefined reference to `pthread_mutex_lock'
>>
>> CMakeFiles\libcsnd6.dir/objects.a(csPerfThread.cpp.obj):csPerfThread.cpp:(.text+
>> 0x63): undefined reference to `pthread_cond_wait'
>>
>> CMakeFiles\libcsnd6.dir/objects.a(csPerfThread.cpp.obj):csPerfThread.cpp:(.text+
>> 0xd9): undefined reference to `pthread_mutex_unlock'
>>
>> CMakeFiles\libcsnd6.dir/objects.a(csPerfThread.cpp.obj):csPerfThread.cpp:(.text+
>> 0x37b): undefined reference to `pthread_cond_signal'
>>
>> CMakeFiles\libcsnd6.dir/objects.a(csPerfThread.cpp.obj):csPerfThread.cpp:(.text+
>> 0x616): undefined reference to `pthread_mutex_init'
>>
>> CMakeFiles\libcsnd6.dir/objects.a(csPerfThread.cpp.obj):csPerfThread.cpp:(.text+
>> 0x62d): undefined reference to `pthread_cond_init'
>>
>> CMakeFiles\libcsnd6.dir/objects.a(csPerfThread.cpp.obj):csPerfThread.cpp:(.text+
>> 0xaf4): undefined reference to `pthread_cond_signal'
>>
>> C:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.9.0/../../../../i686-w64-mingw32/bi
>> n/ld.exe: CMakeFiles\libcsnd6.dir/objects.a(csPerfThread.cpp.obj): bad
>> reloc add
>> ress 0x15 in section
>> `.text$_ZN30CsoundPerformanceThreadMessage10lockRecordEv[__
>> ZN30CsoundPerformanceThreadMessage10lockRecordEv]'
>> collect2.exe: error: ld returned 1 exit status
>> interfaces\CMakeFiles\libcsnd6.dir\build.make:221: recipe for target
>> 'csnd6.dll'
>>  failed
>> mingw32-make[2]: *** [csnd6.dll] Error 1
>> mingw32-make[2]: Leaving directory
>> 'C:/Users/rory/Documents/sourcecode/cabbageau
>> dio/csound/build'
>> CMakeFiles\Makefile2:1135: recipe for target
>> 'interfaces/CMakeFiles/libcsnd6.dir
>> /all' failed
>> mingw32-make[1]: *** [interfaces/CMakeFiles/libcsnd6.dir/all] Error 2
>> mingw32-make[1]: Leaving directory
>> 'C:/Users/rory/Documents/sourcecode/cabbageau
>> dio/csound/build'
>> Makefile:149: recipe for target 'all' failed
>> mingw32-make: *** [all] Error 2
>>
>>
>> ------------------------------------------------------------------------------
>> 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
> 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
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
https://lists.sourceforge.net/lists/listinfo/csound-devel