Csound Csound-dev Csound-tekno Search About

[Csnd-dev] Building csound6

Date2023-11-04 14:39
FromJohn ff
Subject[Csnd-dev] Building csound6
I seem to be in a mess.  Tried removing the cache and I still get lots of
stuff I do not understand

How do I recover?

==John ffitch

....
CMake Warning (dev) at /usr/share/cmake/Modules/CheckIncludeFile.cmake:82 (message):
  Policy CMP0075 is not set: Include file check macros honor
  CMAKE_REQUIRED_LIBRARIES.  Run "cmake --help-policy CMP0075" for policy
  details.  Use the cmake_policy command to set the policy and suppress this
  warning.

  CMAKE_REQUIRED_LIBRARIES is set to:

    /usr/local/lib/libsndfile.so;pthread

  For compatibility with CMake 3.11 and below this check is ignoring it.
Call Stack (most recent call first):
  CMakeLists.txt:563 (check_include_file)
This warning is for project developers.  Use -Wno-dev to suppress it.

....
Consolidate compiler generated dependencies of target src_conv
[ 14%] Building C object InOut/CMakeFiles/rtjack.dir/alphanumcmp.c.o
Consolidate compiler generated dependencies of target sdif2ad
[ 15%] Linking C executable ../src_conv
[ 16%] Built target sdif2ad
[ 16%] Built target pofile_it
[ 16%] Built target pofile_de
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: /usr/local/lib64/libportaudio.a(pa_front.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: failed to set dynamic section sizes: bad value
collect2: error: ld returned 1 exit status
make[2]: *** [InOut/CMakeFiles/rtpa.dir/build.make:98: librtpa.so] Error 1
make[1]: *** [CMakeFiles/Makefile2:1103: InOut/CMakeFiles/rtpa.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 22%] Built target stdutil
[ 22%] Built target pofile_fr
[ 22%] Built target pofile_en_US
[ 22%] Built target pofile_ru
[ 22%] Built target pmidi
[ 22%] Built target src_conv
[ 22%] Linking C shared module ../librtjack.so
[ 22%] Built target rtjack
[ 83%] Built target csound64
make: *** [Makefile:166: all] Error 2

Date2023-11-04 15:04
FromVictor Lazzarini
SubjectRe: [Csnd-dev] [EXTERNAL] [Csnd-dev] Building csound6
Did you try a new build off tree? I find it easier because if something goes wrong and I can't recover, I just remove the build directory and start again.

Prof. Victor Lazzarini
Maynooth University
Ireland

> On 4 Nov 2023, at 14:40, John ff  wrote:
> 
> *Warning*
> 
> This email originated from outside of Maynooth University's Mail System. Do not reply, click links or open attachments unless you recognise the sender and know the content is safe.
> 
> I seem to be in a mess.  Tried removing the cache and I still get lots of
> stuff I do not understand
> 
> How do I recover?
> 
> ==John ffitch
> 
> ....
> CMake Warning (dev) at /usr/share/cmake/Modules/CheckIncludeFile.cmake:82 (message):
>  Policy CMP0075 is not set: Include file check macros honor
>  CMAKE_REQUIRED_LIBRARIES.  Run "cmake --help-policy CMP0075" for policy
>  details.  Use the cmake_policy command to set the policy and suppress this
>  warning.
> 
>  CMAKE_REQUIRED_LIBRARIES is set to:
> 
>    /usr/local/lib/libsndfile.so;pthread
> 
>  For compatibility with CMake 3.11 and below this check is ignoring it.
> Call Stack (most recent call first):
>  CMakeLists.txt:563 (check_include_file)
> This warning is for project developers.  Use -Wno-dev to suppress it.
> 
> ....
> Consolidate compiler generated dependencies of target src_conv
> [ 14%] Building C object InOut/CMakeFiles/rtjack.dir/alphanumcmp.c.o
> Consolidate compiler generated dependencies of target sdif2ad
> [ 15%] Linking C executable ../src_conv
> [ 16%] Built target sdif2ad
> [ 16%] Built target pofile_it
> [ 16%] Built target pofile_de
> /usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: /usr/local/lib64/libportaudio.a(pa_front.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC
> /usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: failed to set dynamic section sizes: bad value
> collect2: error: ld returned 1 exit status
> make[2]: *** [InOut/CMakeFiles/rtpa.dir/build.make:98: librtpa.so] Error 1
> make[1]: *** [CMakeFiles/Makefile2:1103: InOut/CMakeFiles/rtpa.dir/all] Error 2
> make[1]: *** Waiting for unfinished jobs....
> [ 22%] Built target stdutil
> [ 22%] Built target pofile_fr
> [ 22%] Built target pofile_en_US
> [ 22%] Built target pofile_ru
> [ 22%] Built target pmidi
> [ 22%] Built target src_conv
> [ 22%] Linking C shared module ../librtjack.so
> [ 22%] Built target rtjack
> [ 83%] Built target csound64
> make: *** [Makefile:166: all] Error 2

Date2023-11-04 16:06
Fromjohn
SubjectRe: [Csnd-dev] [EXTERNAL] [Csnd-dev] Building csound6
I am not sure how to get a csound6 tree to build.

There is no csoun6 branch that I cabn see. I assume there must be some 
magic to get a local branch that tracks the 9non-existent) csound6.

I onlty need a csound6 tree for comparisons and for when I find a real 
bug.

I seem to get into problems with fgit more often than makes sense.  I must 
be getting old.

==John

Date2023-11-04 16:15
FromVictor Lazzarini
SubjectRe: [Csnd-dev] [EXTERNAL] [Csnd-dev] Building csound6
>From the top-level 

git checkout csound6
mkdir cs6build
cd cs6build
cmake ..  

That should give you an off-tree build
========================
Prof. Victor Lazzarini
Maynooth University
Ireland

> On 4 Nov 2023, at 16:06, john  wrote:
> 
> I am not sure how to get a csound6 tree to build.
> 
> There is no csoun6 branch that I cabn see. I assume there must be some magic to get a local branch that tracks the 9non-existent) csound6.
> 
> I onlty need a csound6 tree for comparisons and for when I find a real bug.
> 
> I seem to get into problems with fgit more often than makes sense.  I must be getting old.
> 
> ==John

Date2023-11-04 17:16
Fromjohn
SubjectRe: [Csnd-dev] [EXTERNAL] [Csnd-dev] Building csound6
I still get lots of errors and warnings.  I certainly hsave portaudio and 
it was compiling upto yesterday

I suppose it is time to wipe the who;e tree and start fron scratch

==John

-- NOT Using libsndfile MP3 support
-- Found CURL: /usr/lib64/libcurl.so (found version "8.0.1")
-- Could NOT find Java (missing: Java_JAR_EXECUTABLE Java_JAVAC_EXECUTABLE 
Java_JAVADOC_EXECUTABLE) (found version "11.0.21")
-- Could NOT find JNI (missing: JAVA_INCLUDE_PATH JAVA_INCLUDE_PATH2 
JAVA_AWT_INCLUDE_PATH)
CMake Error at CMakeLists.txt:552 (include):
   include could not find requested file:

     cmake/CheckAtomic.cmake


-- Not using atomic builtins - not found
-- Looking for libintl.h
CMake Warning (dev) at /usr/share/cmake/Modules/CheckIncludeFile.cmake:82 
(message):
   Policy CMP0075 is not set: Include file check macros honor
   CMAKE_REQUIRED_LIBRARIES.  Run "cmake --help-policy CMP0075" for policy
   details.  Use the cmake_policy command to set the policy and suppress 
this
   warning.

   CMAKE_REQUIRED_LIBRARIES is set to:

     /usr/local/lib/libsndfile.so;pthread

   For compatibility with CMake 3.11 and below this check is ignoring it.
Call Stack (most recent call first):
   CMakeLists.txt:566 (check_include_file)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Looking for libintl.h - found
-- Found Gettext: /usr/bin/msgmerge (found version "0.20.2")
-- Looking for lrint
-- Looking for lrint - 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 stdint.h
-- Looking for stdint.h - found
-- Looking for sys/time.h
-- Looking for sys/time.h - found
-- Looking for sys/types.h
-- Looking for sys/types.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
-- Looking for execinfo.h
-- Looking for execinfo.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.35.3")
-- GIT: /usr/bin/git
-- HASH: 9c8c5fc0418501ef8f3a3aa3509e454c884407b8
-- Not building with new parser debugging.
-- Building with multicore support.
CMake Error: File /home/jpff/csound6/include/float-version.h.in does not 
exist.
CMake Error at include/CMakeLists.txt:5 (configure_file):
   configure_file Problem configuring file


CMake Error: File /home/jpff/csound6/include/version.h.in does not exist.
CMake Error at include/CMakeLists.txt:6 (configure_file):
   configure_file Problem configuring file


CMake Error: File /home/jpff/csound6/include/version.h.in does not exist.
CMake Error at include/CMakeLists.txt:9 (configure_file):
   configure_file Problem configuring file


-- USE_GETTEXT is enabled.
-- Using GNU gettext.
-- Setting textdomain to /usr/local/share/locale.
-- Building on Linux.
--   ADDING LIBRT LIBRARY: /usr/lib64/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 Plugin Opcodes ##
-- Performing Test COMPILER_SUPPORTS_CXX11
-- Performing Test COMPILER_SUPPORTS_CXX11 - Success
-- Performing Test COMPILER_SUPPORTS_CXX0X
-- Performing Test COMPILER_SUPPORTS_CXX0X - Success
-- BUILD_DSSI_OPCODES is enabled.
-- Looking for ladspa.h
-- Looking for ladspa.h - not found
CMake Warning at Opcodes/CMakeLists.txt:114 (find_package):
   By not providing "FindLIBLO.cmake" in CMAKE_MODULE_PATH this project has
   asked CMake to find a package configuration file provided by "LIBLO", 
but
   CMake did not find one.

   Could not find a package configuration file provided by "LIBLO" with any 
of
   the following names:

     LIBLOConfig.cmake
     liblo-config.cmake

   Add the installation prefix of "LIBLO" to CMAKE_PREFIX_PATH or set
   "LIBLO_DIR" to a directory containing one of the above files.  If 
"LIBLO"
   provides a separate development package or SDK, be sure it has been
   installed.


-- 
-- ## REALTIME AUDIO AND MIDI ##
-- Looking for alsa/asoundlib.h
-- Looking for alsa/asoundlib.h - found
CMake Warning at InOut/CMakeLists.txt:29 (find_package):
   By not providing "FindPORTAUDIO.cmake" in CMAKE_MODULE_PATH this project
   has asked CMake to find a package configuration file provided by
   "PORTAUDIO", but CMake did not find one.

   Could not find a package configuration file provided by "PORTAUDIO" with
   any of the following names:

     PORTAUDIOConfig.cmake
     portaudio-config.cmake

   Add the installation prefix of "PORTAUDIO" to CMAKE_PREFIX_PATH or set
   "PORTAUDIO_DIR" to a directory containing one of the above files.  If
   "PORTAUDIO" provides a separate development package or SDK, be sure it 
has
    been installed.


CMake Warning at InOut/CMakeLists.txt:49 (find_package):
   By not providing "FindPORTMIDI.cmake" in CMAKE_MODULE_PATH this project 
has
   asked CMake to find a package configuration file provided by "PORTMIDI",
   but CMake did not find one.

   Could not find a package configuration file provided by "PORTMIDI" with 
any
   of the following names:

     PORTMIDIConfig.cmake
     portmidi-config.cmake

   Add the installation prefix of "PORTMIDI" to CMAKE_PREFIX_PATH or set
   "PORTMIDI_DIR" to a directory containing one of the above files.  If
   "PORTMIDI" provides a separate development package or SDK, be sure it 
has
   been installed.


-- Looking for jack/jack.h
-- Looking for jack/jack.h - found
-- Looking for pulse/simple.h
-- Looking for pulse/simple.h - found
-- USE_ALSA is enabled.
-- USE_PULSEAUDIO is enabled.
-- Not building Portaudio Driver...
-- Portaudio v19 Found: .
-- USE_JACK is enabled.
-- Building C++ interface library.
-- Could NOT find SWIG (missing: SWIG_EXECUTABLE SWIG_DIR) (Required is at 
least version "2.0")
-- Could NOT find JNI (missing: JAVA_INCLUDE_PATH JAVA_INCLUDE_PATH2 
JAVA_AWT_INCLUDE_PATH)
-- Could NOT find Java (missing: Java_JAR_EXECUTABLE Java_JAVAC_EXECUTABLE 
Java_JAVADOC_EXECUTABLE) (found version "11.0.21")
-- SWIG_FOUND="FALSE", so disabling BUILD_JAVA_INTERFACE
-- JNI_FOUND="FALSE", so disabling BUILD_JAVA_INTERFACE
-- JAVA_FOUND="FALSE", so disabling BUILD_JAVA_INTERFACE
-- BUILD_JAVA_INTERFACE is disabled.
-- SWIG_FOUND="FALSE", so disabling BUILD_LUA_INTERFACE
-- LUA_LIBRARY="LUA_LIBRARY-NOTFOUND", so disabling BUILD_LUA_INTERFACE
-- LUA_H_PATH="LUA_H_PATH-NOTFOUND", so disabling BUILD_LUA_INTERFACE
-- BUILD_LUA_INTERFACE is disabled.
-- PYTHON3 MODULE INSTALL DIR: /usr/lib64/python3.6/site-packages
-- BUILD_CSBEATS is enabled.
-- Not building belacsound program.
CMake Error at CMakeLists.txt:1392 (add_subdirectory):
   The source directory

     /home/jpff/csound6/po

   does not contain a CMakeLists.txt file.


-- CUNIT_LIBRARY="CUNIT_LIBRARY-NOTFOUND", so disabling BUILD_TESTS
-- BUILD_STATIC_LIBRARY="OFF", so disabling BUILD_TESTS
-- BUILD_TESTS is disabled.
CMake Error at CMakeLists.txt:1394 (add_subdirectory):
   The source directory

     /home/jpff/csound6/tests/commandline

   does not contain a CMakeLists.txt file.


CMake Error at CMakeLists.txt:1396 (add_subdirectory):
   The source directory

     /home/jpff/csound6/tests/soak

   does not contain a CMakeLists.txt file.


CMake Error: File /home/jpff/csound6/cmake/cmake_uninstall.cmake.in does 
not exist.
CMake Error at CMakeLists.txt:1399 (configure_file):
   configure_file Problem configuring file


-- Found Doxygen: /usr/bin/doxygen (found version "1.8.14") found 
components: doxygen dot
-- Configuring incomplete, errors occurred!
See also "/home/jpff/csound6/cs6/CMakeFiles/CMakeOutput.log".
See also "/home/jpff/csound6/cs6/CMakeFiles/CMakeError.log".