Csound Csound-dev Csound-tekno Search About

build fail on openbsd

Date2016-08-26 21:45
Froms
Subjectbuild fail on openbsd
hi

while i'm not a c programmer, i get the sense that the openbsd libraries 
are not going to allow me to build csound6 ...


here's the output i received:
[  5%] Building CXX object 
Opcodes/CMakeFiles/padsynth.dir/padsynth_gen.cpp.o
../csound/Opcodes/padsynth_gen.cpp:28:18: error: random: No such file or 
directory
../csound/Opcodes/padsynth_gen.cpp: In function 'int 
padsynth_gen(FGDATA*, FUNC*)':
../csound/Opcodes/padsynth_gen.cpp:481: error: 'vector' is not a member 
of 'std'
../csound/Opcodes/padsynth_gen.cpp:481: error: expected 
primary-expression before 'double'
../csound/Opcodes/padsynth_gen.cpp:481: error: expected `;' before 'double'
../csound/Opcodes/padsynth_gen.cpp:482: error: 'A' was not declared in 
this scope
../csound/Opcodes/padsynth_gen.cpp:516: error: 'default_random_engine' 
is not a member of 'std'
../csound/Opcodes/padsynth_gen.cpp:516: error: expected `;' before 
'generator'
../csound/Opcodes/padsynth_gen.cpp:517: error: 
'uniform_real_distribution' is not a member of 'std'
../csound/Opcodes/padsynth_gen.cpp:517: error: expected 
primary-expression before 'double'
../csound/Opcodes/padsynth_gen.cpp:517: error: expected `;' before 'double'
../csound/Opcodes/padsynth_gen.cpp:519: error: 'generator' was not 
declared in this scope
../csound/Opcodes/padsynth_gen.cpp:519: error: 'distribution' was not 
declared in this scope
../csound/Opcodes/padsynth_gen.cpp:521: error: no matching function for 
call to 'std::complex::real(double)'
/usr/include/g++/complex:1199: note: candidates are: double& 
std::complex::real()
/usr/include/g++/complex:1203: note:                 const double& 
std::complex::real() const
../csound/Opcodes/padsynth_gen.cpp:522: error: no matching function for 
call to 'std::complex::imag(double)'
/usr/include/g++/complex:1207: note: candidates are: double& 
std::complex::imag()
/usr/include/g++/complex:1211: note:                 const double& 
std::complex::imag() const
../csound/Opcodes/padsynth_gen.cpp:524: error: no matching function for 
call to 'std::complex::imag(int)'
/usr/include/g++/complex:1207: note: candidates are: double& 
std::complex::imag()
/usr/include/g++/complex:1211: note:                 const double& 
std::complex::imag() const
*** Error 1 in . (Opcodes/CMakeFiles/padsynth.dir/build.make:63 
'Opcodes/CMakeFiles/padsynth.dir/padsynth_gen.cpp.o': cd ../cs6mk/...)
*** Error 2 in . (CMakeFiles/Makefile2:816 
'Opcodes/CMakeFiles/padsynth.dir/all')
*** Error 2 in ../cs6mk (Makefile:161 'all')

also:
$ uname -a
OpenBSD studio-00.lan 5.9 GENERIC.MP#3 i386


any help is welcomed. thx.

Date2016-08-26 23:23
FromMichael Gogins
SubjectRe: build fail on openbsd
Show us gcc -v. Like this:

mkg@Sun-Yukong:~$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 5.4.0-6ubuntu1~16.04.2' --with-bugurl=file:///usr/share/doc/gcc-5/README.Bugs --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-5 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-5-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-5-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-5-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.2) 



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

On Fri, Aug 26, 2016 at 4:45 PM, s <johns@or8.net> wrote:
hi

while i'm not a c programmer, i get the sense that the openbsd libraries are not going to allow me to build csound6 ...


here's the output i received:
[  5%] Building CXX object Opcodes/CMakeFiles/padsynth.dir/padsynth_gen.cpp.o
../csound/Opcodes/padsynth_gen.cpp:28:18: error: random: No such file or directory
../csound/Opcodes/padsynth_gen.cpp: In function 'int padsynth_gen(FGDATA*, FUNC*)':
../csound/Opcodes/padsynth_gen.cpp:481: error: 'vector' is not a member of 'std'
../csound/Opcodes/padsynth_gen.cpp:481: error: expected primary-expression before 'double'
../csound/Opcodes/padsynth_gen.cpp:481: error: expected `;' before 'double'
../csound/Opcodes/padsynth_gen.cpp:482: error: 'A' was not declared in this scope
../csound/Opcodes/padsynth_gen.cpp:516: error: 'default_random_engine' is not a member of 'std'
../csound/Opcodes/padsynth_gen.cpp:516: error: expected `;' before 'generator'
../csound/Opcodes/padsynth_gen.cpp:517: error: 'uniform_real_distribution' is not a member of 'std'
../csound/Opcodes/padsynth_gen.cpp:517: error: expected primary-expression before 'double'
../csound/Opcodes/padsynth_gen.cpp:517: error: expected `;' before 'double'
../csound/Opcodes/padsynth_gen.cpp:519: error: 'generator' was not declared in this scope
../csound/Opcodes/padsynth_gen.cpp:519: error: 'distribution' was not declared in this scope
../csound/Opcodes/padsynth_gen.cpp:521: error: no matching function for call to 'std::complex<double>::real(double)'
/usr/include/g++/complex:1199: note: candidates are: double& std::complex<double>::real()
/usr/include/g++/complex:1203: note:                 const double& std::complex<double>::real() const
../csound/Opcodes/padsynth_gen.cpp:522: error: no matching function for call to 'std::complex<double>::imag(double)'
/usr/include/g++/complex:1207: note: candidates are: double& std::complex<double>::imag()
/usr/include/g++/complex:1211: note:                 const double& std::complex<double>::imag() const
../csound/Opcodes/padsynth_gen.cpp:524: error: no matching function for call to 'std::complex<double>::imag(int)'
/usr/include/g++/complex:1207: note: candidates are: double& std::complex<double>::imag()
/usr/include/g++/complex:1211: note:                 const double& std::complex<double>::imag() const
*** Error 1 in . (Opcodes/CMakeFiles/padsynth.dir/build.make:63 'Opcodes/CMakeFiles/padsynth.dir/padsynth_gen.cpp.o': cd ../cs6mk/...)
*** Error 2 in . (CMakeFiles/Makefile2:816 'Opcodes/CMakeFiles/padsynth.dir/all')
*** Error 2 in ../cs6mk (Makefile:161 'all')

also:
$ uname -a
OpenBSD studio-00.lan 5.9 GENERIC.MP#3 i386


any help is welcomed. thx.

--
\js [http://or8.net/~johns] (let (listen t) ())

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
       https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2016-08-27 17:20
Froms
SubjectRe: build fail on openbsd
On 08/26/16 18:23, Michael Gogins wrote:
> Show us gcc -v.

$ gcc -v
Reading specs from /usr/lib/gcc-lib/i386-unknown-openbsd5.9/4.2.1/specs
Target: i386-unknown-openbsd5.9
Configured with: OpenBSD/i386 system compiler
Thread model: posix
gcc version 4.2.1 20070719



Date2016-08-27 18:05
FromMichael Gogins
SubjectRe: build fail on openbsd
OK, this is a compiler for 32 bit CPU architecture, whereas the current normal builds for Csound on all platforms are for 64 bit CPU architecture. It should still be possible to build for 32 bit CPU architecture, but check to make sure that you have g++ installed in the same way:

mkg@Sun-Yukong:~$ g++ -v
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 5.4.0-6ubuntu1~16.04.2' --with-bugurl=file:///usr/share/doc/gcc-5/README.Bugs --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-5 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-5-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-5-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-5-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.2) 

Also check that you have the standard C++ library installed:

mkg@Sun-Yukong:~$ find /usr/lib -name "*stdc++*"
/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21
/usr/lib/x86_64-linux-gnu/libstdc++.so.6
/usr/lib/gcc/x86_64-linux-gnu/5/libstdc++.a
/usr/lib/gcc/x86_64-linux-gnu/5/libstdc++fs.a
/usr/lib/gcc/x86_64-linux-gnu/5/libstdc++.so
/usr/lib/gcc/x86_64-linux-gnu/4.8/libstdc++.a
/usr/lib/gcc/x86_64-linux-gnu/4.8/libstdc++.so

If not, either install it, or configure the Csound build to use no C++ dependencies at all.

Regards,
Mike


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

On Sat, Aug 27, 2016 at 12:20 PM, s <johns@or8.net> wrote:
On 08/26/16 18:23, Michael Gogins wrote:
Show us gcc -v.

$ gcc -v
Reading specs from /usr/lib/gcc-lib/i386-unknown-openbsd5.9/4.2.1/specs
Target: i386-unknown-openbsd5.9
Configured with: OpenBSD/i386 system compiler
Thread model: posix
gcc version 4.2.1 20070719





--
\js [http://or8.net/~johns] (let (listen t) ())

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
       https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2016-08-27 19:18
FromJohn
SubjectRe: build fail on openbsd

I build for 32 bit Linux regularly with no problems.

Sent from TypeApp

On 27 Aug 2016, at 18:06, Michael Gogins <michael.gogins@GMAIL.COM> wrote:
OK, this is a compiler for 32 bit CPU architecture, whereas the current normal builds for Csound on all platforms are for 64 bit CPU architecture. It should still be possible to build for 32 bit CPU architecture, but check to make sure that you have g++ installed in the same way:

mkg@Sun-Yukong:~$ g++ -v
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 5.4.0-6ubuntu1~16.04.2' --with-bugurl=file:///usr/share/doc/gcc-5/README.Bugs --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-5 --enable-shared --enable-linker-build-id --libex ecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-5-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-5-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-5-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 5.4.0 20160609 ( Ubuntu 5.4.0-6ubuntu1~16.04.2) 

Also check that you have the standard C++ library installed:

mkg@Sun-Yukong:~$ find /usr/lib -name "*stdc++*"
/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21
/usr/lib/x86_64-linux-gnu/libstdc++.so.6
/usr/lib/gcc/x86_64-linux-gnu/5/libstdc++.a
/usr/lib/gcc/x86_64-linux-gnu/5/libstdc++fs.a
/usr/lib/gcc/x86_64-linux-gnu/5/libstdc++.so
/usr/lib/gcc/x86_64-linux-gnu/4.8/libstdc++.a
/usr/lib/gcc/x86_64-linux-gnu/4.8/libstdc++.so

If not, either install it, or configure the Csound build to use no C++ dependencies at all.

Regards,
Mike


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

On Sat, Aug 27, 2016 at 12:20 PM, s <johns@or8.net> wrote:
On 08/26/16 18:23, Michael Gogins wrote:
Show us gcc -v.

$ gcc -v
Reading specs from /usr/lib/gcc-lib/i386-unknown-openbsd5.9/4.2.1/specs
Target: i386-unknown-openbsd5.9
Configured with: OpenBSD/i386 system compiler
Thread model: posix
gcc version 4.2.1 20070719





--
\js [http://or8.net/~johns] (let (listen t) ())

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
       https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2016-08-27 19:23
FromSteven Yi
SubjectRe: build fail on openbsd
The version of gcc looks quite old:

gcc version 4.2.1 20070719

I would hazard a guess that the C++ code used by Michael requires C++11.

On Sat, Aug 27, 2016 at 12:20 PM, s  wrote:
> On 08/26/16 18:23, Michael Gogins wrote:
>>
>> Show us gcc -v.
>
>
> $ gcc -v
> Reading specs from /usr/lib/gcc-lib/i386-unknown-openbsd5.9/4.2.1/specs
> Target: i386-unknown-openbsd5.9
> Configured with: OpenBSD/i386 system compiler
> Thread model: posix
> gcc version 4.2.1 20070719
>
>
>
>
>
> --
> \js [http://or8.net/~johns] (let (listen t) ())
>
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2016-08-27 19:29
Froms
SubjectRe: build fail on openbsd
On 08/27/16 14:23, Steven Yi wrote:
> The version of gcc looks quite old:

yes, this is my thought. the openbsd guys move very slowly ...

also, i have stdc++ libs.

it's ok- i have a laptop that runs debian so it is my guess that i will 
face a much lower hurdle as far as getting csound to run with linux than 
i have found with openbsd. there might even be a debian package to make 
it all easier ...

there is no replacement for csound.

Date2016-08-27 20:12
Fromjpff
SubjectRe: build fail on openbsd
There is a Debian package, and a more recent build in my regular snapshot 
donedaily from git.
==John ff

On Sat, 27 Aug 2016, s wrote:

> On 08/27/16 14:23, Steven Yi wrote:
>> The version of gcc looks quite old:
>
> yes, this is my thought. the openbsd guys move very slowly ...
>
> also, i have stdc++ libs.
>
> it's ok- i have a laptop that runs debian so it is my guess that i will face 
> a much lower hurdle as far as getting csound to run with linux than i have 
> found with openbsd. there might even be a debian package to make it all 
> easier ...
>
> there is no replacement for csound.
>
> -- 
> \js [http://or8.net/~johns] (let (listen t) ())
>
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>       https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here
>

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2016-08-27 20:37
FromVictor Lazzarini
SubjectRe: build fail on openbsd
It should be easy to build on debian.
Otoh, it would be nice to see it in BSD

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

> On 27 Aug 2016, at 20:12, jpff  wrote:
> 
> There is a Debian package, and a more recent build in my regular snapshot donedaily from git.
> ==John ff
> 
>> On Sat, 27 Aug 2016, s wrote:
>> 
>>> On 08/27/16 14:23, Steven Yi wrote:
>>> The version of gcc looks quite old:
>> 
>> yes, this is my thought. the openbsd guys move very slowly ...
>> 
>> also, i have stdc++ libs.
>> 
>> it's ok- i have a laptop that runs debian so it is my guess that i will face a much lower hurdle as far as getting csound to run with linux than i have found with openbsd. there might even be a debian package to make it all easier ...
>> 
>> there is no replacement for csound.
>> 
>> -- 
>> \js [http://or8.net/~johns] (let (listen t) ())
>> 
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>      https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>       https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here