Quantcast

[Csnd-dev] fails to build

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Csnd-dev] fails to build

jpff
Something about threads -- no idea what

make[2]: Leaving directory '/home/jpff/csound6'
make -f tests/c/CMakeFiles/testChannels.dir/build.make tests/c/CMakeFiles/testChannels.dir/build
make[2]: Entering directory '/home/jpff/csound6'
Linking C executable testChannels
cd /home/jpff/csound6/tests/c && /usr/bin/cmake -E cmake_link_script CMakeFiles/testChannels.dir/link.txt --verbose=1
/usr/bin/cc   -ftree-vectorize -ffast-math -mfpmath=sse -msse2 -fomit-frame-pointer -DLIB64 -DSCORE_PARSER -Wall -W -Wno-missing-field-initializers -Wno-unused-parameter -Wformat -Werror=format-security -O3 -mtune=corei7 -DJPFF -ftree-vectorize -ffast-math -fvisibility=hidden -DHAVE_ATOMIC_BUILTIN -DHAVE_CURL -g    CMakeFiles/testChannels.dir/channel_tests.c.o  -o testChannels -rdynamic ../../libcsound64.a -lcunit /usr/local/lib64/libsndfile.so -lcurl -lm -ldl -lrt -Wl,-rpath,/usr/local/lib64
/usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../x86_64-suse-linux/bin/ld: ../../libcsound64.a(threads.c.o): undefined reference to symbol 'pthread_mutexattr_settype@@GLIBC_2.2.5'
/lib64/libpthread.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
tests/c/CMakeFiles/testChannels.dir/build.make:93: recipe for target 'tests/c/testChannels' failed
make[2]: *** [tests/c/testChannels] Error 1
make[2]: Leaving directory '/home/jpff/csound6'
CMakeFiles/Makefile2:4638: recipe for target 'tests/c/CMakeFiles/testChannels.dir/all' failed
make[1]: *** [tests/c/CMakeFiles/testChannels.dir/all] Error 2
make[1]: Leaving directory '/home/jpff/csound6'
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2
birtwistle:~/csound6>
==John ffitch
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Csnd-dev] fails to build

Steven Yi
Perhaps do a clean and rebuild?  I wonder if any stale object files
might be around (longshot guess).  I'll switch to Linux now to see if
I can reproduce the issue.  (I'm using Debian here though which I
think is what is used on Travis, so I'm guess it might build fine...)

On Sat, Apr 1, 2017 at 4:44 PM, jpff <[hidden email]> wrote:

> Something about threads -- no idea what
>
> make[2]: Leaving directory '/home/jpff/csound6'
> make -f tests/c/CMakeFiles/testChannels.dir/build.make tests/c/CMakeFiles/testChannels.dir/build
> make[2]: Entering directory '/home/jpff/csound6'
> Linking C executable testChannels
> cd /home/jpff/csound6/tests/c && /usr/bin/cmake -E cmake_link_script CMakeFiles/testChannels.dir/link.txt --verbose=1
> /usr/bin/cc   -ftree-vectorize -ffast-math -mfpmath=sse -msse2 -fomit-frame-pointer -DLIB64 -DSCORE_PARSER -Wall -W -Wno-missing-field-initializers -Wno-unused-parameter -Wformat -Werror=format-security -O3 -mtune=corei7 -DJPFF -ftree-vectorize -ffast-math -fvisibility=hidden -DHAVE_ATOMIC_BUILTIN -DHAVE_CURL -g    CMakeFiles/testChannels.dir/channel_tests.c.o  -o testChannels -rdynamic ../../libcsound64.a -lcunit /usr/local/lib64/libsndfile.so -lcurl -lm -ldl -lrt -Wl,-rpath,/usr/local/lib64
> /usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../x86_64-suse-linux/bin/ld: ../../libcsound64.a(threads.c.o): undefined reference to symbol 'pthread_mutexattr_settype@@GLIBC_2.2.5'
> /lib64/libpthread.so.0: error adding symbols: DSO missing from command line
> collect2: error: ld returned 1 exit status
> tests/c/CMakeFiles/testChannels.dir/build.make:93: recipe for target 'tests/c/testChannels' failed
> make[2]: *** [tests/c/testChannels] Error 1
> make[2]: Leaving directory '/home/jpff/csound6'
> CMakeFiles/Makefile2:4638: recipe for target 'tests/c/CMakeFiles/testChannels.dir/all' failed
> make[1]: *** [tests/c/CMakeFiles/testChannels.dir/all] Error 2
> make[1]: Leaving directory '/home/jpff/csound6'
> Makefile:140: recipe for target 'all' failed
> make: *** [all] Error 2
> birtwistle:~/csound6>
> ==John ffitch
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Csnd-dev] fails to build

Victor Lazzarini
Well, I had to fix a couple of things here on OSX. Seems to be OK now.
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952

> On 1 Apr 2017, at 22:27, Steven Yi <[hidden email]> wrote:
>
> Perhaps do a clean and rebuild?  I wonder if any stale object files
> might be around (longshot guess).  I'll switch to Linux now to see if
> I can reproduce the issue.  (I'm using Debian here though which I
> think is what is used on Travis, so I'm guess it might build fine...)
>
> On Sat, Apr 1, 2017 at 4:44 PM, jpff <[hidden email]> wrote:
>> Something about threads -- no idea what
>>
>> make[2]: Leaving directory '/home/jpff/csound6'
>> make -f tests/c/CMakeFiles/testChannels.dir/build.make tests/c/CMakeFiles/testChannels.dir/build
>> make[2]: Entering directory '/home/jpff/csound6'
>> Linking C executable testChannels
>> cd /home/jpff/csound6/tests/c && /usr/bin/cmake -E cmake_link_script CMakeFiles/testChannels.dir/link.txt --verbose=1
>> /usr/bin/cc   -ftree-vectorize -ffast-math -mfpmath=sse -msse2 -fomit-frame-pointer -DLIB64 -DSCORE_PARSER -Wall -W -Wno-missing-field-initializers -Wno-unused-parameter -Wformat -Werror=format-security -O3 -mtune=corei7 -DJPFF -ftree-vectorize -ffast-math -fvisibility=hidden -DHAVE_ATOMIC_BUILTIN -DHAVE_CURL -g    CMakeFiles/testChannels.dir/channel_tests.c.o  -o testChannels -rdynamic ../../libcsound64.a -lcunit /usr/local/lib64/libsndfile.so -lcurl -lm -ldl -lrt -Wl,-rpath,/usr/local/lib64
>> /usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../x86_64-suse-linux/bin/ld: ../../libcsound64.a(threads.c.o): undefined reference to symbol 'pthread_mutexattr_settype@@GLIBC_2.2.5'
>> /lib64/libpthread.so.0: error adding symbols: DSO missing from command line
>> collect2: error: ld returned 1 exit status
>> tests/c/CMakeFiles/testChannels.dir/build.make:93: recipe for target 'tests/c/testChannels' failed
>> make[2]: *** [tests/c/testChannels] Error 1
>> make[2]: Leaving directory '/home/jpff/csound6'
>> CMakeFiles/Makefile2:4638: recipe for target 'tests/c/CMakeFiles/testChannels.dir/all' failed
>> make[1]: *** [tests/c/CMakeFiles/testChannels.dir/all] Error 2
>> make[1]: Leaving directory '/home/jpff/csound6'
>> Makefile:140: recipe for target 'all' failed
>> make: *** [all] Error 2
>> birtwistle:~/csound6>
>> ==John ffitch
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Csnd-dev] fails to build

Victor Lazzarini
In reply to this post by Steven Yi
One of the things I had to fix was to remove the calls to csoundLock() in InOut/pmidi.c. I hope this will work OK. They are
not used in Windows, only elsewhere, but csoundLock() seems to have disappeared (there was a link error). Maybe
you can review this change, Steven?
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952

> On 1 Apr 2017, at 22:27, Steven Yi <[hidden email]> wrote:
>
> Perhaps do a clean and rebuild?  I wonder if any stale object files
> might be around (longshot guess).  I'll switch to Linux now to see if
> I can reproduce the issue.  (I'm using Debian here though which I
> think is what is used on Travis, so I'm guess it might build fine...)
>
> On Sat, Apr 1, 2017 at 4:44 PM, jpff <[hidden email]> wrote:
>> Something about threads -- no idea what
>>
>> make[2]: Leaving directory '/home/jpff/csound6'
>> make -f tests/c/CMakeFiles/testChannels.dir/build.make tests/c/CMakeFiles/testChannels.dir/build
>> make[2]: Entering directory '/home/jpff/csound6'
>> Linking C executable testChannels
>> cd /home/jpff/csound6/tests/c && /usr/bin/cmake -E cmake_link_script CMakeFiles/testChannels.dir/link.txt --verbose=1
>> /usr/bin/cc   -ftree-vectorize -ffast-math -mfpmath=sse -msse2 -fomit-frame-pointer -DLIB64 -DSCORE_PARSER -Wall -W -Wno-missing-field-initializers -Wno-unused-parameter -Wformat -Werror=format-security -O3 -mtune=corei7 -DJPFF -ftree-vectorize -ffast-math -fvisibility=hidden -DHAVE_ATOMIC_BUILTIN -DHAVE_CURL -g    CMakeFiles/testChannels.dir/channel_tests.c.o  -o testChannels -rdynamic ../../libcsound64.a -lcunit /usr/local/lib64/libsndfile.so -lcurl -lm -ldl -lrt -Wl,-rpath,/usr/local/lib64
>> /usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../x86_64-suse-linux/bin/ld: ../../libcsound64.a(threads.c.o): undefined reference to symbol 'pthread_mutexattr_settype@@GLIBC_2.2.5'
>> /lib64/libpthread.so.0: error adding symbols: DSO missing from command line
>> collect2: error: ld returned 1 exit status
>> tests/c/CMakeFiles/testChannels.dir/build.make:93: recipe for target 'tests/c/testChannels' failed
>> make[2]: *** [tests/c/testChannels] Error 1
>> make[2]: Leaving directory '/home/jpff/csound6'
>> CMakeFiles/Makefile2:4638: recipe for target 'tests/c/CMakeFiles/testChannels.dir/all' failed
>> make[1]: *** [tests/c/CMakeFiles/testChannels.dir/all] Error 2
>> make[1]: Leaving directory '/home/jpff/csound6'
>> Makefile:140: recipe for target 'all' failed
>> make: *** [all] Error 2
>> birtwistle:~/csound6>
>> ==John ffitch
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Csnd-dev] fails to build

Tarmo Johannes-3
In reply to this post by Steven Yi
Hi did just some minute ago a pull from develop branch and it built nicely on
openSuse Linux

tarmo

On laupäev, 1. aprill 2017 17:27.14 EEST you wrote:

> Perhaps do a clean and rebuild?  I wonder if any stale object files
> might be around (longshot guess).  I'll switch to Linux now to see if
> I can reproduce the issue.  (I'm using Debian here though which I
> think is what is used on Travis, so I'm guess it might build fine...)
>
> On Sat, Apr 1, 2017 at 4:44 PM, jpff <[hidden email]> wrote:
> > Something about threads -- no idea what
> >
> > make[2]: Leaving directory '/home/jpff/csound6'
> > make -f tests/c/CMakeFiles/testChannels.dir/build.make
> > tests/c/CMakeFiles/testChannels.dir/build make[2]: Entering directory
> > '/home/jpff/csound6'
> > Linking C executable testChannels
> > cd /home/jpff/csound6/tests/c && /usr/bin/cmake -E cmake_link_script
> > CMakeFiles/testChannels.dir/link.txt --verbose=1 /usr/bin/cc  
> > -ftree-vectorize -ffast-math -mfpmath=sse -msse2 -fomit-frame-pointer
> > -DLIB64 -DSCORE_PARSER -Wall -W -Wno-missing-field-initializers
> > -Wno-unused-parameter -Wformat -Werror=format-security -O3 -mtune=corei7
> > -DJPFF -ftree-vectorize -ffast-math -fvisibility=hidden
> > -DHAVE_ATOMIC_BUILTIN -DHAVE_CURL -g  
> > CMakeFiles/testChannels.dir/channel_tests.c.o  -o testChannels -rdynamic
> > ../../libcsound64.a -lcunit /usr/local/lib64/libsndfile.so -lcurl -lm
> > -ldl -lrt -Wl,-rpath,/usr/local/lib64
> > /usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../x86_64-suse-linux/bin/ld
> > : ../../libcsound64.a(threads.c.o): undefined reference to symbol
> > 'pthread_mutexattr_settype@@GLIBC_2.2.5' /lib64/libpthread.so.0: error
> > adding symbols: DSO missing from command line collect2: error: ld
> > returned 1 exit status
> > tests/c/CMakeFiles/testChannels.dir/build.make:93: recipe for target
> > 'tests/c/testChannels' failed make[2]: *** [tests/c/testChannels] Error 1
> > make[2]: Leaving directory '/home/jpff/csound6'
> > CMakeFiles/Makefile2:4638: recipe for target
> > 'tests/c/CMakeFiles/testChannels.dir/all' failed make[1]: ***
> > [tests/c/CMakeFiles/testChannels.dir/all] Error 2
> > make[1]: Leaving directory '/home/jpff/csound6'
> > Makefile:140: recipe for target 'all' failed
> > make: *** [all] Error 2
> > birtwistle:~/csound6>
> > ==John ffitch
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Csnd-dev] fails to build

Steven Yi
In reply to this post by Victor Lazzarini
Odd, it should be in csGblMtx.h.  I'll switch to my Mac too see if I
can get some more info on that.

On Sat, Apr 1, 2017 at 5:31 PM, Victor Lazzarini
<[hidden email]> wrote:

> One of the things I had to fix was to remove the calls to csoundLock() in InOut/pmidi.c. I hope this will work OK. They are
> not used in Windows, only elsewhere, but csoundLock() seems to have disappeared (there was a link error). Maybe
> you can review this change, Steven?
> ========================
> Prof. Victor Lazzarini
> Dean of Arts, Celtic Studies, and Philosophy,
> Maynooth University,
> Maynooth, Co Kildare, Ireland
> Tel: 00 353 7086936
> Fax: 00 353 1 7086952
>
>> On 1 Apr 2017, at 22:27, Steven Yi <[hidden email]> wrote:
>>
>> Perhaps do a clean and rebuild?  I wonder if any stale object files
>> might be around (longshot guess).  I'll switch to Linux now to see if
>> I can reproduce the issue.  (I'm using Debian here though which I
>> think is what is used on Travis, so I'm guess it might build fine...)
>>
>> On Sat, Apr 1, 2017 at 4:44 PM, jpff <[hidden email]> wrote:
>>> Something about threads -- no idea what
>>>
>>> make[2]: Leaving directory '/home/jpff/csound6'
>>> make -f tests/c/CMakeFiles/testChannels.dir/build.make tests/c/CMakeFiles/testChannels.dir/build
>>> make[2]: Entering directory '/home/jpff/csound6'
>>> Linking C executable testChannels
>>> cd /home/jpff/csound6/tests/c && /usr/bin/cmake -E cmake_link_script CMakeFiles/testChannels.dir/link.txt --verbose=1
>>> /usr/bin/cc   -ftree-vectorize -ffast-math -mfpmath=sse -msse2 -fomit-frame-pointer -DLIB64 -DSCORE_PARSER -Wall -W -Wno-missing-field-initializers -Wno-unused-parameter -Wformat -Werror=format-security -O3 -mtune=corei7 -DJPFF -ftree-vectorize -ffast-math -fvisibility=hidden -DHAVE_ATOMIC_BUILTIN -DHAVE_CURL -g    CMakeFiles/testChannels.dir/channel_tests.c.o  -o testChannels -rdynamic ../../libcsound64.a -lcunit /usr/local/lib64/libsndfile.so -lcurl -lm -ldl -lrt -Wl,-rpath,/usr/local/lib64
>>> /usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../x86_64-suse-linux/bin/ld: ../../libcsound64.a(threads.c.o): undefined reference to symbol 'pthread_mutexattr_settype@@GLIBC_2.2.5'
>>> /lib64/libpthread.so.0: error adding symbols: DSO missing from command line
>>> collect2: error: ld returned 1 exit status
>>> tests/c/CMakeFiles/testChannels.dir/build.make:93: recipe for target 'tests/c/testChannels' failed
>>> make[2]: *** [tests/c/testChannels] Error 1
>>> make[2]: Leaving directory '/home/jpff/csound6'
>>> CMakeFiles/Makefile2:4638: recipe for target 'tests/c/CMakeFiles/testChannels.dir/all' failed
>>> make[1]: *** [tests/c/CMakeFiles/testChannels.dir/all] Error 2
>>> make[1]: Leaving directory '/home/jpff/csound6'
>>> Makefile:140: recipe for target 'all' failed
>>> make: *** [all] Error 2
>>> birtwistle:~/csound6>
>>> ==John ffitch
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Csnd-dev] fails to build

Steven Yi
I see what happened. I needed to add back including csGblMtx.h, but
more importantly, I had to add HAVE_PTHREAD to the global C compile
flags rather than just for libcsound64.  I committed that change and I
can build here on OSX 10.12, Windows (mingw, VS), and Debian 64-bit.

On Sat, Apr 1, 2017 at 5:46 PM, Steven Yi <[hidden email]> wrote:

> Odd, it should be in csGblMtx.h.  I'll switch to my Mac too see if I
> can get some more info on that.
>
> On Sat, Apr 1, 2017 at 5:31 PM, Victor Lazzarini
> <[hidden email]> wrote:
>> One of the things I had to fix was to remove the calls to csoundLock() in InOut/pmidi.c. I hope this will work OK. They are
>> not used in Windows, only elsewhere, but csoundLock() seems to have disappeared (there was a link error). Maybe
>> you can review this change, Steven?
>> ========================
>> Prof. Victor Lazzarini
>> Dean of Arts, Celtic Studies, and Philosophy,
>> Maynooth University,
>> Maynooth, Co Kildare, Ireland
>> Tel: 00 353 7086936
>> Fax: 00 353 1 7086952
>>
>>> On 1 Apr 2017, at 22:27, Steven Yi <[hidden email]> wrote:
>>>
>>> Perhaps do a clean and rebuild?  I wonder if any stale object files
>>> might be around (longshot guess).  I'll switch to Linux now to see if
>>> I can reproduce the issue.  (I'm using Debian here though which I
>>> think is what is used on Travis, so I'm guess it might build fine...)
>>>
>>> On Sat, Apr 1, 2017 at 4:44 PM, jpff <[hidden email]> wrote:
>>>> Something about threads -- no idea what
>>>>
>>>> make[2]: Leaving directory '/home/jpff/csound6'
>>>> make -f tests/c/CMakeFiles/testChannels.dir/build.make tests/c/CMakeFiles/testChannels.dir/build
>>>> make[2]: Entering directory '/home/jpff/csound6'
>>>> Linking C executable testChannels
>>>> cd /home/jpff/csound6/tests/c && /usr/bin/cmake -E cmake_link_script CMakeFiles/testChannels.dir/link.txt --verbose=1
>>>> /usr/bin/cc   -ftree-vectorize -ffast-math -mfpmath=sse -msse2 -fomit-frame-pointer -DLIB64 -DSCORE_PARSER -Wall -W -Wno-missing-field-initializers -Wno-unused-parameter -Wformat -Werror=format-security -O3 -mtune=corei7 -DJPFF -ftree-vectorize -ffast-math -fvisibility=hidden -DHAVE_ATOMIC_BUILTIN -DHAVE_CURL -g    CMakeFiles/testChannels.dir/channel_tests.c.o  -o testChannels -rdynamic ../../libcsound64.a -lcunit /usr/local/lib64/libsndfile.so -lcurl -lm -ldl -lrt -Wl,-rpath,/usr/local/lib64
>>>> /usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../x86_64-suse-linux/bin/ld: ../../libcsound64.a(threads.c.o): undefined reference to symbol 'pthread_mutexattr_settype@@GLIBC_2.2.5'
>>>> /lib64/libpthread.so.0: error adding symbols: DSO missing from command line
>>>> collect2: error: ld returned 1 exit status
>>>> tests/c/CMakeFiles/testChannels.dir/build.make:93: recipe for target 'tests/c/testChannels' failed
>>>> make[2]: *** [tests/c/testChannels] Error 1
>>>> make[2]: Leaving directory '/home/jpff/csound6'
>>>> CMakeFiles/Makefile2:4638: recipe for target 'tests/c/CMakeFiles/testChannels.dir/all' failed
>>>> make[1]: *** [tests/c/CMakeFiles/testChannels.dir/all] Error 2
>>>> make[1]: Leaving directory '/home/jpff/csound6'
>>>> Makefile:140: recipe for target 'all' failed
>>>> make: *** [all] Error 2
>>>> birtwistle:~/csound6>
>>>> ==John ffitch
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Csnd-dev] fails to build

Victor Lazzarini
Thanks.
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952

> On 1 Apr 2017, at 23:17, Steven Yi <[hidden email]> wrote:
>
> I see what happened. I needed to add back including csGblMtx.h, but
> more importantly, I had to add HAVE_PTHREAD to the global C compile
> flags rather than just for libcsound64.  I committed that change and I
> can build here on OSX 10.12, Windows (mingw, VS), and Debian 64-bit.
>
> On Sat, Apr 1, 2017 at 5:46 PM, Steven Yi <[hidden email]> wrote:
>> Odd, it should be in csGblMtx.h.  I'll switch to my Mac too see if I
>> can get some more info on that.
>>
>> On Sat, Apr 1, 2017 at 5:31 PM, Victor Lazzarini
>> <[hidden email]> wrote:
>>> One of the things I had to fix was to remove the calls to csoundLock() in InOut/pmidi.c. I hope this will work OK. They are
>>> not used in Windows, only elsewhere, but csoundLock() seems to have disappeared (there was a link error). Maybe
>>> you can review this change, Steven?
>>> ========================
>>> Prof. Victor Lazzarini
>>> Dean of Arts, Celtic Studies, and Philosophy,
>>> Maynooth University,
>>> Maynooth, Co Kildare, Ireland
>>> Tel: 00 353 7086936
>>> Fax: 00 353 1 7086952
>>>
>>>> On 1 Apr 2017, at 22:27, Steven Yi <[hidden email]> wrote:
>>>>
>>>> Perhaps do a clean and rebuild?  I wonder if any stale object files
>>>> might be around (longshot guess).  I'll switch to Linux now to see if
>>>> I can reproduce the issue.  (I'm using Debian here though which I
>>>> think is what is used on Travis, so I'm guess it might build fine...)
>>>>
>>>> On Sat, Apr 1, 2017 at 4:44 PM, jpff <[hidden email]> wrote:
>>>>> Something about threads -- no idea what
>>>>>
>>>>> make[2]: Leaving directory '/home/jpff/csound6'
>>>>> make -f tests/c/CMakeFiles/testChannels.dir/build.make tests/c/CMakeFiles/testChannels.dir/build
>>>>> make[2]: Entering directory '/home/jpff/csound6'
>>>>> Linking C executable testChannels
>>>>> cd /home/jpff/csound6/tests/c && /usr/bin/cmake -E cmake_link_script CMakeFiles/testChannels.dir/link.txt --verbose=1
>>>>> /usr/bin/cc   -ftree-vectorize -ffast-math -mfpmath=sse -msse2 -fomit-frame-pointer -DLIB64 -DSCORE_PARSER -Wall -W -Wno-missing-field-initializers -Wno-unused-parameter -Wformat -Werror=format-security -O3 -mtune=corei7 -DJPFF -ftree-vectorize -ffast-math -fvisibility=hidden -DHAVE_ATOMIC_BUILTIN -DHAVE_CURL -g    CMakeFiles/testChannels.dir/channel_tests.c.o  -o testChannels -rdynamic ../../libcsound64.a -lcunit /usr/local/lib64/libsndfile.so -lcurl -lm -ldl -lrt -Wl,-rpath,/usr/local/lib64
>>>>> /usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../x86_64-suse-linux/bin/ld: ../../libcsound64.a(threads.c.o): undefined reference to symbol 'pthread_mutexattr_settype@@GLIBC_2.2.5'
>>>>> /lib64/libpthread.so.0: error adding symbols: DSO missing from command line
>>>>> collect2: error: ld returned 1 exit status
>>>>> tests/c/CMakeFiles/testChannels.dir/build.make:93: recipe for target 'tests/c/testChannels' failed
>>>>> make[2]: *** [tests/c/testChannels] Error 1
>>>>> make[2]: Leaving directory '/home/jpff/csound6'
>>>>> CMakeFiles/Makefile2:4638: recipe for target 'tests/c/CMakeFiles/testChannels.dir/all' failed
>>>>> make[1]: *** [tests/c/CMakeFiles/testChannels.dir/all] Error 2
>>>>> make[1]: Leaving directory '/home/jpff/csound6'
>>>>> Makefile:140: recipe for target 'all' failed
>>>>> make: *** [all] Error 2
>>>>> birtwistle:~/csound6>
>>>>> ==John ffitch
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Csnd-dev] fails to build

Michael Gogins-2
In reply to this post by Steven Yi
i pulled just now and rebuilt with mingw64 on Windows 8.1 and it built
fine. And it runs.

Best,
Mike

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


On Sun, Apr 2, 2017 at 8:17 AM, Steven Yi <[hidden email]> wrote:

> I see what happened. I needed to add back including csGblMtx.h, but
> more importantly, I had to add HAVE_PTHREAD to the global C compile
> flags rather than just for libcsound64.  I committed that change and I
> can build here on OSX 10.12, Windows (mingw, VS), and Debian 64-bit.
>
> On Sat, Apr 1, 2017 at 5:46 PM, Steven Yi <[hidden email]> wrote:
>> Odd, it should be in csGblMtx.h.  I'll switch to my Mac too see if I
>> can get some more info on that.
>>
>> On Sat, Apr 1, 2017 at 5:31 PM, Victor Lazzarini
>> <[hidden email]> wrote:
>>> One of the things I had to fix was to remove the calls to csoundLock() in InOut/pmidi.c. I hope this will work OK. They are
>>> not used in Windows, only elsewhere, but csoundLock() seems to have disappeared (there was a link error). Maybe
>>> you can review this change, Steven?
>>> ========================
>>> Prof. Victor Lazzarini
>>> Dean of Arts, Celtic Studies, and Philosophy,
>>> Maynooth University,
>>> Maynooth, Co Kildare, Ireland
>>> Tel: 00 353 7086936
>>> Fax: 00 353 1 7086952
>>>
>>>> On 1 Apr 2017, at 22:27, Steven Yi <[hidden email]> wrote:
>>>>
>>>> Perhaps do a clean and rebuild?  I wonder if any stale object files
>>>> might be around (longshot guess).  I'll switch to Linux now to see if
>>>> I can reproduce the issue.  (I'm using Debian here though which I
>>>> think is what is used on Travis, so I'm guess it might build fine...)
>>>>
>>>> On Sat, Apr 1, 2017 at 4:44 PM, jpff <[hidden email]> wrote:
>>>>> Something about threads -- no idea what
>>>>>
>>>>> make[2]: Leaving directory '/home/jpff/csound6'
>>>>> make -f tests/c/CMakeFiles/testChannels.dir/build.make tests/c/CMakeFiles/testChannels.dir/build
>>>>> make[2]: Entering directory '/home/jpff/csound6'
>>>>> Linking C executable testChannels
>>>>> cd /home/jpff/csound6/tests/c && /usr/bin/cmake -E cmake_link_script CMakeFiles/testChannels.dir/link.txt --verbose=1
>>>>> /usr/bin/cc   -ftree-vectorize -ffast-math -mfpmath=sse -msse2 -fomit-frame-pointer -DLIB64 -DSCORE_PARSER -Wall -W -Wno-missing-field-initializers -Wno-unused-parameter -Wformat -Werror=format-security -O3 -mtune=corei7 -DJPFF -ftree-vectorize -ffast-math -fvisibility=hidden -DHAVE_ATOMIC_BUILTIN -DHAVE_CURL -g    CMakeFiles/testChannels.dir/channel_tests.c.o  -o testChannels -rdynamic ../../libcsound64.a -lcunit /usr/local/lib64/libsndfile.so -lcurl -lm -ldl -lrt -Wl,-rpath,/usr/local/lib64
>>>>> /usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../x86_64-suse-linux/bin/ld: ../../libcsound64.a(threads.c.o): undefined reference to symbol 'pthread_mutexattr_settype@@GLIBC_2.2.5'
>>>>> /lib64/libpthread.so.0: error adding symbols: DSO missing from command line
>>>>> collect2: error: ld returned 1 exit status
>>>>> tests/c/CMakeFiles/testChannels.dir/build.make:93: recipe for target 'tests/c/testChannels' failed
>>>>> make[2]: *** [tests/c/testChannels] Error 1
>>>>> make[2]: Leaving directory '/home/jpff/csound6'
>>>>> CMakeFiles/Makefile2:4638: recipe for target 'tests/c/CMakeFiles/testChannels.dir/all' failed
>>>>> make[1]: *** [tests/c/CMakeFiles/testChannels.dir/all] Error 2
>>>>> make[1]: Leaving directory '/home/jpff/csound6'
>>>>> Makefile:140: recipe for target 'all' failed
>>>>> make: *** [all] Error 2
>>>>> birtwistle:~/csound6>
>>>>> ==John ffitch
Loading...