[Csnd] trouble compiling 6.11 on Ubuntu...
Date | 2018-05-28 01:42 |
From | Forrest Curo |
Subject | [Csnd] trouble compiling 6.11 on Ubuntu... |
Help?! Everything goes well until 'make -j6' which takes me to here before it all falls apart: [100%] Building CXX object interfaces/CMakeFiles/_jcsound6.dir/java_interfaceJAVA_wrap.cxx.o /home/forrest/csound/cs6make/interfaces/java_interfaceJAVA_wrap.cxx: In function ‘jint Java_csnd6_csnd6JNI_csoundCompileArgs(JNIEnv*, jclass, jlong, jint, jobjectArray)’: /home/forrest/csound/cs6make/interfaces/java_interfaceJAVA_wrap.cxx:5330:49: error: invalid conversion from ‘char**’ to ‘const char**’ [-fpermissive] result = (int)csoundCompileArgs(arg1,arg2,arg3); ^ In file included from /home/forrest/csound/cs6make/interfaces/java_interfaceJAVA_wrap.cxx:1300:0: /home/forrest/csound/csound/./include/csound.h:781:14: note: initializing argument 3 of ‘int csoundCompileArgs(CSOUND*, int, const char**)’ PUBLIC int csoundCompileArgs(CSOUND *, int argc, const char **argv); ^~~~~~~~~~~~~~~~~ /home/forrest/csound/cs6make/interfaces/java_interfaceJAVA_wrap.cxx: In function ‘jint Java_csnd6_csnd6JNI_csoundCompile(JNIEnv*, jclass, jlong, jint, jobjectArray)’: /home/forrest/csound/cs6make/interfaces/java_interfaceJAVA_wrap.cxx:5400:45: error: invalid conversion from ‘char**’ to ‘const char**’ [-fpermissive] result = (int)csoundCompile(arg1,arg2,arg3); ^ In file included from /home/forrest/csound/cs6make/interfaces/java_interfaceJAVA_wrap.cxx:1300:0: /home/forrest/csound/csound/./include/csound.h:811:14: note: initializing argument 3 of ‘int csoundCompile(CSOUND*, int, const char**)’ PUBLIC int csoundCompile(CSOUND *, int argc, const char **argv); ^~~~~~~~~~~~~ interfaces/CMakeFiles/_jcsound6.dir/build.make:83: recipe for target 'interfaces/CMakeFiles/_jcsound6.dir/java_interfaceJAVA_wrap.cxx.o' failed make[2]: *** [interfaces/CMakeFiles/_jcsound6.dir/java_interfaceJAVA_wrap.cxx.o] Error 1 CMakeFiles/Makefile2:2314: recipe for target 'interfaces/CMakeFiles/_jcsound6.dir/all' failed make[1]: *** [interfaces/CMakeFiles/_jcsound6.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... /home/forrest/csound/csound/interfaces/CppSound.hpp:37: Warning 453: Can't apply (std::vector< double > *INPUT). No typemaps are defined. Scanning dependencies of target _csnd6 [100%] Building CXX object interfaces/CMakeFiles/_csnd6.dir/__/python_interfacePYTHON_wrap.cxx.o /home/forrest/csound/cs6make/python_interfacePYTHON_wrap.cxx: In function ‘PyObject* _wrap_csoundCompileArgs(PyObject*, PyObject*)’: /home/forrest/csound/cs6make/python_interfacePYTHON_wrap.cxx:14551:49: error: invalid conversion from ‘char**’ to ‘const char**’ [-fpermissive] result = (int)csoundCompileArgs(arg1,arg2,arg3); ^ In file included from /home/forrest/csound/cs6make/python_interfacePYTHON_wrap.cxx:4383:0: /home/forrest/csound/csound/./include/csound.h:781:14: note: initializing argument 3 of ‘int csoundCompileArgs(CSOUND*, int, const char**)’ PUBLIC int csoundCompileArgs(CSOUND *, int argc, const char **argv); ^~~~~~~~~~~~~~~~~ /home/forrest/csound/cs6make/python_interfacePYTHON_wrap.cxx: In function ‘PyObject* _wrap_csoundCompile(PyObject*, PyObject*)’: /home/forrest/csound/cs6make/python_interfacePYTHON_wrap.cxx:14613:45: error: invalid conversion from ‘char**’ to ‘const char**’ [-fpermissive] result = (int)csoundCompile(arg1,arg2,arg3); ^ In file included from /home/forrest/csound/cs6make/python_interfacePYTHON_wrap.cxx:4383:0: /home/forrest/csound/csound/./include/csound.h:811:14: note: initializing argument 3 of ‘int csoundCompile(CSOUND*, int, const char**)’ PUBLIC int csoundCompile(CSOUND *, int argc, const char **argv); ^~~~~~~~~~~~~ interfaces/CMakeFiles/_csnd6.dir/build.make:80: recipe for target 'interfaces/CMakeFiles/_csnd6.dir/__/python_interfacePYTHON_wrap.cxx.o' failed make[2]: *** [interfaces/CMakeFiles/_csnd6.dir/__/python_interfacePYTHON_wrap.cxx.o] Error 1 CMakeFiles/Makefile2:2239: recipe for target 'interfaces/CMakeFiles/_csnd6.dir/all' failed make[1]: *** [interfaces/CMakeFiles/_csnd6.dir/all] Error 2 Makefile:162: recipe for target 'all' failed make: *** [all] Error 2 |
Date | 2018-05-28 02:20 |
From | Michael Gogins |
Subject | Re: [Csnd] trouble compiling 6.11 on Ubuntu... |
It's not clear what's going on here. First, try to do a COMPLETELY clean build (update packages, upgrade packages, remove your build directory which should contain the Swig-generated files, re-create it, do a completely fresh build). It may be that the Swig-generated wrapper code is old and needs to be re-generated with the current tools and standards. If that doesn't work, check your version of Swig. I have Ubuntu 17.10 with Swig 3.0.10. An older version of Swig might not generate correct code for current compilers. It works for me. If that doesn't work let me know. Regards, Mike ----------------------------------------------------- Michael Gogins Irreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com On Sun, May 27, 2018 at 8:42 PM, Forrest Curo |
Date | 2018-05-28 05:11 |
From | Forrest Curo |
Subject | Re: [Csnd] trouble compiling 6.11 on Ubuntu... |
Okay, now I'm updated & upgraded, same problem. My ubuntu is 18.04 (& ungrading that could have been a mistake, who knows.) Perhaps I could install 6.10 instead? (Not sure of syntax for that!) There were some minor glitches in the cmake stage that hadn't generated actual errors, but could be significant: ... -- Found SWIG: /usr/bin/swig3.0 (found version "3.0.12") -- Could NOT find VSTSDK2X (missing: VSTSDK2X_INCLUDE_DIR) -- Performing Test HAVE_ATOMIC_BUILTIN -- Performing Test HAVE_ATOMIC_BUILTIN - Success -- Using atomic builtins. -- Looking for libintl.h -- Looking for libintl.h - found -- Found GMM: /usr/include -- Found Gettext: /usr/bin/msgmerge (found version "0.19.8.1") -- Looking for lrint in m -- Looking for lrint in m - found -- Looking for unistd.h -- Looking for unistd.h - found -- Looking for io.h -- Looking for io.h - not found -- Looking for fcntl.h -- Looking for fcntl.h - found -- Looking for sys/time.h -- Looking for sys/time.h - found -- Looking for termios.h -- Looking for termios.h - found -- Looking for values.h -- Looking for values.h - found -- Looking for winsock.h -- Looking for winsock.h - not found -- Looking for sys/socket.h -- Looking for sys/socket.h - found -- Looking for dirent.h -- Looking for dirent.h - found -- Looking for inttypes.h -- Looking for inttypes.h - found -- USE_LRINT is enabled. -- Found FLEX: /usr/bin/flex (found version "2.6.4") -- Found BISON: /usr/bin/bison (found version "3.0.4") -- Looking for pthread_spin_lock -- Looking for pthread_spin_lock - found -- Looking for pthread_barrier_init -- Looking for pthread_barrier_init - found -- Found Git: /usr/bin/git (found version "2.17.0") -- GIT: /usr/bin/git -- HASH: 6da014abc67feed6bd047222881e25dd66969dc0 -- Not building with new parser debugging. -- Building with multicore support. -- USE_GETTEXT is enabled. -- Using GNU gettext. -- Setting textdomain to /usr/local/share/locale. -- Building on Linux. -- ADDING LIBRT LIBRARY: /usr/lib/x86_64-linux-gnu/librt.so. -- Looking for strlcat -- Looking for strlcat - not found -- Looking for strtok_r -- Looking for strtok_r - found -- Looking for strtod_l -- Looking for strtod_l - found -- Looking for sprintf_l -- Looking for sprintf_l - not found -- Looking for _strtok_r -- Looking for _strtok_r - not found -- Looking for _strtod_l -- Looking for _strtod_l - not found -- Looking for _sprintf_l -- Looking for _sprintf_l - not found -- ## Building Opcodes ## ? On Sun, May 27, 2018 at 6:20 PM, Michael Gogins <michael.gogins@gmail.com> wrote: It's not clear what's going on here. First, try to do a COMPLETELY |
Date | 2018-05-28 06:39 |
From | Victor Lazzarini |
Subject | Re: [Csnd] trouble compiling 6.11 on Ubuntu... |
The problem seems to be that -Werror is picking up some errors in the swig-generated code. Two solutions:
- Try getting the latest code from git
git clone https://github.com/csound/csound
- or instead, with 6.11 sources, edit Custom.cmake.ex to have -Wno-error in
the CMAKE_C_FLAGS and CMAKE_CXX_FLAGS, then save the file as Custom.cmake and try a fresh build. You might want to recreate the build directory to make sure.
Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland
|
Date | 2018-05-28 12:33 |
From | John ff |
Subject | Re: [Csnd] trouble compiling 6.11 on Ubuntu... |
That all looks ok. I see no problems in that output Sent from TypeApp On May 28, 2018, 05:12, at 05:12, Forrest Curo |
Date | 2018-05-28 15:11 |
From | Forrest Curo |
Subject | Re: [Csnd] trouble compiling 6.11 on Ubuntu... |
I got the git just like before except with git clone https://github.com/csound/csound csound instead of git clone https://github.com/csound/csound.git csoundresults the same cleared the directory & did it again edited Custom.cmake.ex as suggested and I'm still getting the same results from make j-6: two errors. On Mon, May 28, 2018 at 4:33 AM, John ff <jpff@codemist.co.uk> wrote: That all looks ok. I see no problems in that output |
Date | 2018-05-28 15:24 |
From | Victor Lazzarini |
Subject | Re: [Csnd] trouble compiling 6.11 on Ubuntu... |
Can you copy your Custom.cmake here? ======================== 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 28 May 2018, at 15:11, Forrest Curo |
Date | 2018-05-28 16:28 |
From | Forrest Curo |
Subject | Re: [Csnd] trouble compiling 6.11 on Ubuntu... |
# CUSTOM PROPERTIES TO SET # GLOBAL set(CMAKE_BUILD_TYPE "Debug") set(CMAKE_VERBOSE_MAKEFILE ON) set(BUILD_STATIC_LIBRARY ON) set(TCL_VERSION 8.5) set(PYTHON_INCLUDE_DIRS "/usr/include/python2.7") #### NOTE the processor type needs setting #set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -W -Wall -mtune=core2 -Wno-error") ## also to test multicore #set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -W -Wno-missing-field-initializers -Wno-unused-parameter -mtune=core2 -DJPFF -Wno-error ") if(WIN32) list(APPEND CMAKE_SYSTEM_INCLUDE_PATH "c:/work/libsndfile-1_0_17") list(APPEND CMAKE_SYSTEM_LIBRARY_PATH "c:/work/libsndfile-1_0_17") list(APPEND CMAKE_SYSTEM_LIBRARY_PATH "c:/Python25/libs") list(APPEND CMAKE_SYSTEM_INCLUDE_PATH "c:/Python25/include") endif() On Mon, May 28, 2018 at 7:24 AM, Victor Lazzarini <Victor.Lazzarini@mu.ie> wrote: Can you copy your Custom.cmake here? |
Date | 2018-05-28 16:47 |
From | Victor Lazzarini |
Subject | Re: [Csnd] trouble compiling 6.11 on Ubuntu... |
Try setting set(CMAKE_BUILD_TYPE “Release”) and see how it goes ======================== 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 28 May 2018, at 16:28, Forrest Curo |
Date | 2018-05-28 17:26 |
From | Forrest Curo |
Subject | Re: [Csnd] trouble compiling 6.11 on Ubuntu... |
... In file included from /home/forrest/csound/cs6make/interfaces/java_interfaceJAVA_wrap.cxx:1300:0: /home/forrest/csound/csound/./include/csound.h:781:14: note: initializing argument 3 of ‘int csoundCompileArgs(CSOUND*, int, const char**)’ PUBLIC int csoundCompileArgs(CSOUND *, int argc, const char **argv); ^~~~~~~~~~~~~~~~~ /home/forrest/csound/cs6make/interfaces/java_interfaceJAVA_wrap.cxx: In function ‘jint Java_csnd6_csnd6JNI_csoundCompile(JNIEnv*, jclass, jlong, jint, jobjectArray)’: /home/forrest/csound/cs6make/interfaces/java_interfaceJAVA_wrap.cxx:5400:45: error: invalid conversion from ‘char**’ to ‘const char**’ [-fpermissive] result = (int)csoundCompile(arg1,arg2,arg3); ^ In file included from /home/forrest/csound/cs6make/interfaces/java_interfaceJAVA_wrap.cxx:1300:0: /home/forrest/csound/csound/./include/csound.h:811:14: note: initializing argument 3 of ‘int csoundCompile(CSOUND*, int, const char**)’ PUBLIC int csoundCompile(CSOUND *, int argc, const char **argv); ^~~~~~~~~~~~~ interfaces/CMakeFiles/_jcsound6.dir/build.make:86: recipe for target 'interfaces/CMakeFiles/_jcsound6.dir/java_interfaceJAVA_wrap.cxx.o' failed make[2]: *** [interfaces/CMakeFiles/_jcsound6.dir/java_interfaceJAVA_wrap.cxx.o] Error 1 make[2]: Leaving directory '/home/forrest/csound/cs6make' CMakeFiles/Makefile2:2354: recipe for target 'interfaces/CMakeFiles/_jcsound6.dir/all' failed make[1]: *** [interfaces/CMakeFiles/_jcsound6.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... /home/forrest/csound/csound/interfaces/CppSound.hpp:37: Warning 453: Can't apply (std::vector< double > *INPUT). No typemaps are defined. cd /home/forrest/csound/cs6make && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/forrest/csound/csound /home/forrest/csound/csound/interfaces /home/forrest/csound/cs6make /home/forrest/csound/cs6make/interfaces /home/forrest/csound/cs6make/interfaces/CMakeFiles/_csnd6.dir/DependInfo.cmake --color= Scanning dependencies of target _csnd6 make[2]: Leaving directory '/home/forrest/csound/cs6make' make -f interfaces/CMakeFiles/_csnd6.dir/build.make interfaces/CMakeFiles/_csnd6.dir/build make[2]: Entering directory '/home/forrest/csound/cs6make' [100%] Building CXX object interfaces/CMakeFiles/_csnd6.dir/__/python_interfacePYTHON_wrap.cxx.o cd /home/forrest/csound/cs6make/interfaces && /usr/bin/c++ -DCS_DEFAULT_PLUGINDIR=\"/usr/local/lib/csound/plugins64-6.0\" -DHAVE_SOCKETS -DHAVE_STRTOD_L -DHAVE_STRTOK_R -DLINUX -DNO_FLTK_THREADS -DPIPES -DUSE_LRINT -D_CSOUND_RELEASE_ -D_GNU_SOURCE -D_csnd6_EXPORTS -I/home/forrest/csound/csound/./H -I/home/forrest/csound/csound/./include -I/home/forrest/csound/csound/./Engine -I/home/forrest/csound/csound/./util -I/home/forrest/csound/csound/. -I/home/forrest/csound/cs6make -I/home/forrest/csound/cs6make/include -I/usr/include/python2.7 -I/home/forrest/csound/csound/interfaces -std=c++11 -ffast-math -mfpmath=sse -msse2 -fomit-frame-pointer -DNDEBUG -fvisibility=hidden -fvisibility=hidden -DHAVE_ATOMIC_BUILTIN -O3 -fPIC -Wno-error -Wno-unused-parameter -o CMakeFiles/_csnd6.dir/__/python_interfacePYTHON_wrap.cxx.o -c /home/forrest/csound/cs6make/python_interfacePYTHON_wrap.cxx /home/forrest/csound/cs6make/python_interfacePYTHON_wrap.cxx: In function ‘PyObject* _wrap_csoundCompileArgs(PyObject*, PyObject*)’: /home/forrest/csound/cs6make/python_interfacePYTHON_wrap.cxx:14551:49: error: invalid conversion from ‘char**’ to ‘const char**’ [-fpermissive] result = (int)csoundCompileArgs(arg1,arg2,arg3); ^ In file included from /home/forrest/csound/cs6make/python_interfacePYTHON_wrap.cxx:4383:0: /home/forrest/csound/csound/./include/csound.h:781:14: note: initializing argument 3 of ‘int csoundCompileArgs(CSOUND*, int, const char**)’ PUBLIC int csoundCompileArgs(CSOUND *, int argc, const char **argv); ^~~~~~~~~~~~~~~~~ /home/forrest/csound/cs6make/python_interfacePYTHON_wrap.cxx: In function ‘PyObject* _wrap_csoundCompile(PyObject*, PyObject*)’: /home/forrest/csound/cs6make/python_interfacePYTHON_wrap.cxx:14613:45: error: invalid conversion from ‘char**’ to ‘const char**’ [-fpermissive] result = (int)csoundCompile(arg1,arg2,arg3); ^ In file included from /home/forrest/csound/cs6make/python_interfacePYTHON_wrap.cxx:4383:0: /home/forrest/csound/csound/./include/csound.h:811:14: note: initializing argument 3 of ‘int csoundCompile(CSOUND*, int, const char**)’ PUBLIC int csoundCompile(CSOUND *, int argc, const char **argv); ^~~~~~~~~~~~~ interfaces/CMakeFiles/_csnd6.dir/build.make:83: recipe for target 'interfaces/CMakeFiles/_csnd6.dir/__/python_interfacePYTHON_wrap.cxx.o' failed make[2]: *** [interfaces/CMakeFiles/_csnd6.dir/__/python_interfacePYTHON_wrap.cxx.o] Error 1 make[2]: Leaving directory '/home/forrest/csound/cs6make' CMakeFiles/Makefile2:2279: recipe for target 'interfaces/CMakeFiles/_csnd6.dir/all' failed make[1]: *** [interfaces/CMakeFiles/_csnd6.dir/all] Error 2 make[1]: Leaving directory '/home/forrest/csound/cs6make' Makefile:165: recipe for target 'all' failed make: *** [all] Error 2 On Mon, May 28, 2018 at 8:47 AM, Victor Lazzarini <Victor.Lazzarini@mu.ie> wrote: Try setting |
Date | 2018-05-28 18:02 |
From | Michael Gogins |
Subject | Re: [Csnd] trouble compiling 6.11 on Ubuntu... |
It looks like you should add -fpermissive to your compiler options. On Mon, May 28, 2018, 12:26 Forrest Curo <treegestalt@gmail.com> wrote:
|
Date | 2018-05-28 19:02 |
From | Victor Lazzarini |
Subject | Re: [Csnd] trouble compiling 6.11 on Ubuntu... |
yes, try adding this line to Custom.cmake: set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fpermissive") ======================== 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 28 May 2018, at 18:02, Michael Gogins |
Date | 2018-05-28 19:55 |
From | Forrest Curo |
Subject | Re: [Csnd] trouble compiling 6.11 on Ubuntu... |
Yes, and this time I should remove the initial '#' from lines I want to work... Okay, from the top, let's see... On Mon, May 28, 2018 at 11:02 AM, Victor Lazzarini <Victor.Lazzarini@mu.ie> wrote: yes, try adding this line to Custom.cmake: |
Date | 2018-05-28 20:16 |
From | Forrest Curo |
Subject | Re: [Csnd] trouble compiling 6.11 on Ubuntu... |
Ah! Thanks, phew! --Csound version 6.12 (double samples) May 28 2018 On Mon, May 28, 2018 at 11:55 AM, Forrest Curo <treegestalt@gmail.com> wrote:
|
Date | 2018-05-28 20:28 |
From | Victor Lazzarini |
Subject | Re: [Csnd] trouble compiling 6.11 on Ubuntu... |
That’s great, hope this will also help others here. I am surprised this problem has not shown up for us developers.
Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland
|