lvm / build-supercollider

A dead simple script that builds and installs Supercollider

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

build-sc3-plugins.sh fails repeatedly

murraycs opened this issue · comments

Running these on Pop_OS! 20.10. Script consistently fails at 11% with the generic error "make: *** [Makefile:152: all] Error 2". Below is make run in verbose mode.

[ 11%] Building CXX object source/CMakeFiles/NHHall.dir/NHUGens/NHHall.cpp.o
cd /tmp/sc3-plugins/build/source && /usr/bin/c++ -DNHHall_EXPORTS -DNOVA_SIMD -I/tmp/sc3-plugins/external_libraries/nova-simd -I/tmp/supercollider/external_libraries/nova-tt -I/tmp/supercollider/external_libraries/boost -I/tmp/sc3-plugins/include -I/tmp/sc3-plugins/source/scfft_old -I/tmp/supercollider/common -I/tmp/supercollider/plugin_interface -I/tmp/supercollider/include/plugin_interface -I/tmp/supercollider/include/common -I/tmp/supercollider/server/plugins -I/tmp/supercollider/common/Headers/plugin_interface -I/tmp/supercollider/common/Headers/common -I/tmp/supercollider/common/Source/plugins -I/tmp/supercollider/external_libraries/libsndfile -I/tmp/sc3-plugins/source/DEINDUGens/include -I/tmp/sc3-plugins/source/../external_libraries/stk -I/tmp/sc3-plugins/source/../external_libraries/stk/include -I/tmp/sc3-plugins/source/../external_libraries/stk/src/include -I/tmp/sc3-plugins/source/AYUGens/AY_libayemu/include -msse -msse2 -mfpmath=sse -std=c++11 -fPIC -fvisibility=hidden -o CMakeFiles/NHHall.dir/NHUGens/NHHall.cpp.o -c /tmp/sc3-plugins/source/NHUGens/NHHall.cpp
/tmp/sc3-plugins/source/NHUGens/NHHall.cpp: In constructor ‘NHHall::NHHall()’:
/tmp/sc3-plugins/source/NHUGens/NHHall.cpp:56:13: error: ‘printf’ was not declared in this scope
56 | printf("Could not allocate real-time memory for NHHall\n");
| ^~~~~~
/tmp/sc3-plugins/source/NHUGens/NHHall.cpp:30:1: note: ‘printf’ is defined in header ‘’; did you forget to ‘#include ’?
29 | #include "SC_PlugIn.hpp"
+++ |+#include
30 |
make[2]: *** [source/CMakeFiles/NHHall.dir/build.make:63: source/CMakeFiles/NHHall.dir/NHUGens/NHHall.cpp.o] Error 1
make[2]: Leaving directory '/tmp/sc3-plugins/build'
make[1]: *** [CMakeFiles/Makefile2:2492: source/CMakeFiles/NHHall.dir/all] Error 2
make[1]: Leaving directory '/tmp/sc3-plugins/build'
make: *** [Makefile:152: all] Error 2

Update:
It was due to a missing line in the NHHAll.cpp SC3 plugin: #include <cstdio>

They addressed it and their repository has the corrected file. I am not sure why when I ran this script the older, incorrect version was getting cloned.

I see now that the script is pulling an older branch of the repository - mainly 3.10. That branch has not been updated for 2 years, and does not include the correction mentioned above, which was made 14 months ago.