Skip to content

Instantly share code, notes, and snippets.

@triss
Created August 24, 2014 10:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save triss/d5080adbfd8e4322e99f to your computer and use it in GitHub Desktop.
Save triss/d5080adbfd8e4322e99f to your computer and use it in GitHub Desktop.
SC plugins build issue on Ubuntu 14.04
[ 97%] Building CXX object source/CMakeFiles/TagSystemUgens.dir/TagSystemUGens/TagSystemUgens.cpp.o
/home/tris/sources/sc3-plugins-src-2012-05-26/source/TagSystemUGens/TagSystemUgens.cpp:78:0: warning: "GET_BUF" redefined [enabled by default]
#define GET_BUF \
^
In file included from /usr/include/SuperCollider/plugin_interface/SC_PlugIn.h:26:0,
from /home/tris/sources/sc3-plugins-src-2012-05-26/source/TagSystemUGens/TagSystemUgens.cpp:26:
/usr/include/SuperCollider/plugin_interface/SC_Unit.h:251:0: note: this is the location of the previous definition
#define GET_BUF \
^
/home/tris/sources/sc3-plugins-src-2012-05-26/source/TagSystemUGens/TagSystemUgens.cpp: In function ‘void DbufTag_end(DbufTag*, int, int)’:
/home/tris/sources/sc3-plugins-src-2012-05-26/source/TagSystemUGens/TagSystemUgens.cpp:221:78: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘int32 {aka int}’ [-Wformat=]
printf("new axiom (index %ld..%ld): ", unit->m_read_pos, unit->m_write_pos);
^
/home/tris/sources/sc3-plugins-src-2012-05-26/source/TagSystemUGens/TagSystemUgens.cpp:221:78: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘int32 {aka int}’ [-Wformat=]
/home/tris/sources/sc3-plugins-src-2012-05-26/source/TagSystemUGens/TagSystemUgens.cpp: In function ‘void Dtag_end(Dtag*, int, int)’:
/home/tris/sources/sc3-plugins-src-2012-05-26/source/TagSystemUGens/TagSystemUgens.cpp:429:66: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘int’ [-Wformat=]
if(recycle) { printf("recycling. axiom length: %ld\n", recycle); }
^
/home/tris/sources/sc3-plugins-src-2012-05-26/source/TagSystemUGens/TagSystemUgens.cpp:451:52: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘int’ [-Wformat=]
printf("recycling. axiom length: %ld\n", recycle);
^
/home/tris/sources/sc3-plugins-src-2012-05-26/source/TagSystemUGens/TagSystemUgens.cpp:455:78: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘int32 {aka int}’ [-Wformat=]
printf("new axiom (index %ld..%ld): ", unit->m_read_pos, unit->m_write_pos);
^
/home/tris/sources/sc3-plugins-src-2012-05-26/source/TagSystemUGens/TagSystemUgens.cpp:455:78: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘int32 {aka int}’ [-Wformat=]
/home/tris/sources/sc3-plugins-src-2012-05-26/source/TagSystemUGens/TagSystemUgens.cpp: In function ‘void Dfsm_next(Dfsm*, int)’:
/home/tris/sources/sc3-plugins-src-2012-05-26/source/TagSystemUGens/TagSystemUgens.cpp:670:27: error: call of overloaded ‘sc_isnan(int&)’ is ambiguous
if(sc_isnan(unit->m_count)) { // terminate and reset
^
/home/tris/sources/sc3-plugins-src-2012-05-26/source/TagSystemUGens/TagSystemUgens.cpp:670:27: note: candidates are:
In file included from /usr/include/SuperCollider/plugin_interface/SC_PlugIn.h:30:0,
from /home/tris/sources/sc3-plugins-src-2012-05-26/source/TagSystemUGens/TagSystemUgens.cpp:26:
/usr/include/SuperCollider/plugin_interface/SC_InlineUnaryOp.h:57:13: note: bool sc_isnan(float)
inline bool sc_isnan(float x)
^
/usr/include/SuperCollider/plugin_interface/SC_InlineUnaryOp.h:66:13: note: bool sc_isnan(double)
inline bool sc_isnan(double x)
^
make[2]: *** [source/CMakeFiles/TagSystemUgens.dir/TagSystemUGens/TagSystemUgens.cpp.o] Error 1
make[1]: *** [source/CMakeFiles/TagSystemUgens.dir/all] Error 2
make: *** [all] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment