Aepelzen / AepelzensModules

modules for vcvrack
GNU General Public License v3.0
33 stars 18 forks source link

Linux compile fail, GCC 7.3 #11

Closed polyzium closed 6 years ago

polyzium commented 6 years ago
Makefile:9: warning: overriding recipe for target 'dist'
../../plugin.mk:39: warning: ignoring old recipe for target 'dist'
g++ -Wsuggest-override -std=c++11 -D v_050_dev -fPIC -I../../include -I../../dep/include -MMD -g -O3 -march=nocona -ffast-math -fno-finite-math-only -Wall -Wextra -Wno-unused-parameter -DARCH_LIN -c -o build/src/aepelzen.cpp.o src/aepelzen.cpp
src/aepelzen.cpp: In function ‘void init(rack::Plugin*)’:
src/aepelzen.cpp:13:104: warning: ‘rack::Model* rack::createModel(std::__cxx11::string, std::__cxx11::string, std::__cxx11::string, Tags ...) [with TModuleWidget = QuadSeqWidget; Tags = {rack::ModelTag}; std::__cxx11::string = std::__cxx11::basic_string<char>]’ is deprecated [-Wdeprecated-declarations]
  p->addModel(createModel<QuadSeqWidget>("Aepelzens Modules", "QuadSeq", "Quad Sequencer", SEQUENCER_TAG));
                                                                                                        ^
In file included from src/aepelzen.hpp:1:0,
                 from src/aepelzen.cpp:1:
../../include/rack.hpp:23:19: note: declared here
 DEPRECATED Model *createModel(std::string manufacturer, std::string slug, std::string name, Tags... tags) {
                   ^~~~~~~~~~~
src/aepelzen.cpp:14:104: warning: ‘rack::Model* rack::createModel(std::__cxx11::string, std::__cxx11::string, std::__cxx11::string, Tags ...) [with TModuleWidget = GateSeqWidget; Tags = {rack::ModelTag}; std::__cxx11::string = std::__cxx11::basic_string<char>]’ is deprecated [-Wdeprecated-declarations]
  p->addModel(createModel<GateSeqWidget>("Aepelzens Modules", "GateSEQ", "Gate Sequencer", SEQUENCER_TAG));
                                                                                                        ^
In file included from src/aepelzen.hpp:1:0,
                 from src/aepelzen.cpp:1:
../../include/rack.hpp:23:19: note: declared here
 DEPRECATED Model *createModel(std::string manufacturer, std::string slug, std::string name, Tags... tags) {
                   ^~~~~~~~~~~
src/aepelzen.cpp:15:105: warning: ‘rack::Model* rack::createModel(std::__cxx11::string, std::__cxx11::string, std::__cxx11::string, Tags ...) [with TModuleWidget = DiceWidget; Tags = {rack::ModelTag}; std::__cxx11::string = std::__cxx11::basic_string<char>]’ is deprecated [-Wdeprecated-declarations]
  p->addModel(createModel<DiceWidget>("Aepelzens Modules", "Dice", "Probability Sequencer", SEQUENCER_TAG));
                                                                                                         ^
In file included from src/aepelzen.hpp:1:0,
                 from src/aepelzen.cpp:1:
../../include/rack.hpp:23:19: note: declared here
 DEPRECATED Model *createModel(std::string manufacturer, std::string slug, std::string name, Tags... tags) {
                   ^~~~~~~~~~~
src/aepelzen.cpp:16:101: warning: ‘rack::Model* rack::createModel(std::__cxx11::string, std::__cxx11::string, std::__cxx11::string, Tags ...) [with TModuleWidget = BurstWidget; Tags = {rack::ModelTag}; std::__cxx11::string = std::__cxx11::basic_string<char>]’ is deprecated [-Wdeprecated-declarations]
  p->addModel(createModel<BurstWidget>("Aepelzens Modules", "burst", "Burst Generator", SEQUENCER_TAG));
                                                                                                     ^
In file included from src/aepelzen.hpp:1:0,
                 from src/aepelzen.cpp:1:
../../include/rack.hpp:23:19: note: declared here
 DEPRECATED Model *createModel(std::string manufacturer, std::string slug, std::string name, Tags... tags) {
                   ^~~~~~~~~~~
src/aepelzen.cpp:17:97: warning: ‘rack::Model* rack::createModel(std::__cxx11::string, std::__cxx11::string, std::__cxx11::string, Tags ...) [with TModuleWidget = FolderWidget; Tags = {rack::ModelTag}; std::__cxx11::string = std::__cxx11::basic_string<char>]’ is deprecated [-Wdeprecated-declarations]
  p->addModel(createModel<FolderWidget>("Aepelzens Modules", "folder", "Manifold", WAVESHAPER_TAG));
                                                                                                 ^
In file included from src/aepelzen.hpp:1:0,
                 from src/aepelzen.cpp:1:
../../include/rack.hpp:23:19: note: declared here
 DEPRECATED Model *createModel(std::string manufacturer, std::string slug, std::string name, Tags... tags) {
                   ^~~~~~~~~~~
src/aepelzen.cpp:18:109: warning: ‘rack::Model* rack::createModel(std::__cxx11::string, std::__cxx11::string, std::__cxx11::string, Tags ...) [with TModuleWidget = WalkerWidget; Tags = {rack::ModelTag, rack::ModelTag}; std::__cxx11::string = std::__cxx11::basic_string<char>]’ is deprecated [-Wdeprecated-declarations]
  p->addModel(createModel<WalkerWidget>("Aepelzens Modules", "Walker", "Random Walk", UTILITY_TAG, RANDOM_TAG));
                                                                                                             ^
In file included from src/aepelzen.hpp:1:0,
                 from src/aepelzen.cpp:1:
../../include/rack.hpp:23:19: note: declared here
 DEPRECATED Model *createModel(std::string manufacturer, std::string slug, std::string name, Tags... tags) {
                   ^~~~~~~~~~~
src/aepelzen.cpp:19:89: warning: ‘rack::Model* rack::createModel(std::__cxx11::string, std::__cxx11::string, std::__cxx11::string, Tags ...) [with TModuleWidget = ErwinWidget; Tags = {rack::ModelTag}; std::__cxx11::string = std::__cxx11::basic_string<char>]’ is deprecated [-Wdeprecated-declarations]
  p->addModel(createModel<ErwinWidget>("Aepelzens Modules", "Erwin", "Erwin", UTILITY_TAG));
                                                                                         ^
In file included from src/aepelzen.hpp:1:0,
                 from src/aepelzen.cpp:1:
../../include/rack.hpp:23:19: note: declared here
 DEPRECATED Model *createModel(std::string manufacturer, std::string slug, std::string name, Tags... tags) {
                   ^~~~~~~~~~~
g++ -Wsuggest-override -std=c++11 -D v_050_dev -fPIC -I../../include -I../../dep/include -MMD -g -O3 -march=nocona -ffast-math -fno-finite-math-only -Wall -Wextra -Wno-unused-parameter -DARCH_LIN -c -o build/src/Dice.cpp.o src/Dice.cpp
src/Dice.cpp: In member function ‘virtual void Dice::step()’:
src/Dice.cpp:75:79: warning: ‘int rack::clampi(int, int, int)’ is deprecated [-Wdeprecated-declarations]
      int numSteps = clampi(roundf(params[CHANNEL_STEPS_PARAM + y].value), 1, 8);
                                                                               ^
In file included from ../../include/util/common.hpp:49:0,
                 from ../../include/rack.hpp:4,
                 from src/aepelzen.hpp:1,
                 from src/Dice.cpp:1:
../../include/util/math.hpp:274:23: note: declared here
 DEPRECATED inline int clampi(int x, int min, int max) {return clamp(x, min, max);}
                       ^~~~~~
src/Dice.cpp:76:72: warning: ‘int rack::clampi(int, int, int)’ is deprecated [-Wdeprecated-declarations]
      int mode = clampi(roundf(params[CHANNEL_MODE_PARAM + y].value),0,5);
                                                                        ^
In file included from ../../include/util/common.hpp:49:0,
                 from ../../include/rack.hpp:4,
                 from src/aepelzen.hpp:1,
                 from src/Dice.cpp:1:
../../include/util/math.hpp:274:23: note: declared here
 DEPRECATED inline int clampi(int x, int min, int max) {return clamp(x, min, max);}
                       ^~~~~~
src/Dice.cpp:78:28: warning: ‘float rack::randomf()’ is deprecated [-Wdeprecated-declarations]
      randomValue = randomf();
                            ^
In file included from ../../include/rack.hpp:4:0,
                 from src/aepelzen.hpp:1,
                 from src/Dice.cpp:1:
../../include/util/common.hpp:85:25: note: declared here
 inline float DEPRECATED randomf() {return randomUniform();}
                         ^~~~~~~
src/Dice.cpp:81:19: warning: ‘float rack::randomf()’ is deprecated [-Wdeprecated-declarations]
   mode = (randomf() > 0.5) ? MODE_FORWARD : MODE_BACKWARD;
                   ^
In file included from ../../include/rack.hpp:4:0,
                 from src/aepelzen.hpp:1,
                 from src/Dice.cpp:1:
../../include/util/common.hpp:85:25: note: declared here
 inline float DEPRECATED randomf() {return randomUniform();}
                         ^~~~~~~
src/Dice.cpp: In constructor ‘DiceWidget::DiceWidget()’:
src/Dice.cpp:135:24: error: no matching function for call to ‘rack::ModuleWidget::ModuleWidget()’
 DiceWidget::DiceWidget() {
                        ^
In file included from ../../include/rack.hpp:9:0,
                 from src/aepelzen.hpp:1,
                 from src/Dice.cpp:1:
../../include/app.hpp:63:2: note: candidate: rack::ModuleWidget::ModuleWidget(rack::Module*)
  ModuleWidget(Module *module);
  ^~~~~~~~~~~~
../../include/app.hpp:63:2: note:   candidate expects 1 argument, 0 provided
../../include/app.hpp:53:8: note: candidate: rack::ModuleWidget::ModuleWidget(const rack::ModuleWidget&)
 struct ModuleWidget : OpaqueWidget {
        ^~~~~~~~~~~~
../../include/app.hpp:53:8: note:   candidate expects 1 argument, 0 provided
src/Dice.cpp:137:5: error: ‘setModule’ was not declared in this scope
     setModule(module);
     ^~~~~~~~~
src/Dice.cpp:137:5: note: suggested alternative: ‘setlocale’
     setModule(module);
     ^~~~~~~~~
     setlocale
src/Dice.cpp:147:89: warning: ‘TParamWidget* rack::createParam(rack::Vec, rack::Module*, int, float, float, float) [with TParamWidget = rack::LEDButton]’ is deprecated [-Wdeprecated-declarations]
     addParam(createParam<LEDButton>(Vec(10, 5), module, Dice::RESET_PARAM, 0.0, 1.0, 0.0));
                                                                                         ^
In file included from src/aepelzen.hpp:1:0,
                 from src/Dice.cpp:1:
../../include/rack.hpp:49:26: note: declared here
 DEPRECATED TParamWidget *createParam(Vec pos, Module *module, int paramId, float minValue, float maxValue, float defaultValue) {
                          ^~~~~~~~~~~
src/Dice.cpp:151:124: warning: ‘TParamWidget* rack::createParam(rack::Vec, rack::Module*, int, float, float, float) [with TParamWidget = rack::Trimpot]’ is deprecated [-Wdeprecated-declarations]
      addParam(createParam<Trimpot>(Vec(10 + y*27, 30 + i*28), module, Dice::COLUMN1_PARAM + y *NUM_STEPS + i, 0.0, 1.0, 0.0));
                                                                                                                            ^
In file included from src/aepelzen.hpp:1:0,
                 from src/Dice.cpp:1:
../../include/rack.hpp:49:26: note: declared here
 DEPRECATED TParamWidget *createParam(Vec pos, Module *module, int paramId, float minValue, float maxValue, float defaultValue) {
                          ^~~~~~~~~~~
src/Dice.cpp:152:119: warning: ‘TModuleLightWidget* rack::createLight(rack::Vec, rack::Module*, int) [with TModuleLightWidget = rack::SmallLight<rack::RedLight>]’ is deprecated [-Wdeprecated-declarations]
      addChild(createLight<SmallLight<RedLight>>(Vec(16 + y*27, 50 + i*28), module, Dice::STEP_LIGHT + y *NUM_STEPS + i));
                                                                                                                       ^
In file included from src/aepelzen.hpp:1:0,
                 from src/Dice.cpp:1:
../../include/rack.hpp:83:32: note: declared here
 DEPRECATED TModuleLightWidget *createLight(Vec pos, Module *module, int firstLightId) {
                                ^~~~~~~~~~~
src/Dice.cpp:154:105: warning: ‘TParamWidget* rack::createParam(rack::Vec, rack::Module*, int, float, float, float) [with TParamWidget = rack::Trimpot]’ is deprecated [-Wdeprecated-declarations]
  addParam(createParam<Trimpot>(Vec(10 + y*27, 265), module, Dice::CHANNEL_STEPS_PARAM + y, 1.0, 8.0, 8.0));
                                                                                                         ^
In file included from src/aepelzen.hpp:1:0,
                 from src/Dice.cpp:1:
../../include/rack.hpp:49:26: note: declared here
 DEPRECATED TParamWidget *createParam(Vec pos, Module *module, int paramId, float minValue, float maxValue, float defaultValue) {
                          ^~~~~~~~~~~
src/Dice.cpp:155:98: warning: ‘TParamWidget* rack::createParam(rack::Vec, rack::Module*, int, float, float, float) [with TParamWidget = rack::Trimpot]’ is deprecated [-Wdeprecated-declarations]
  addParam(createParam<Trimpot>(Vec(10 + y*27, 290), module, Dice::CHANNEL_MODE_PARAM + y, 0, 5, 0));
                                                                                                  ^
In file included from src/aepelzen.hpp:1:0,
                 from src/Dice.cpp:1:
../../include/rack.hpp:49:26: note: declared here
 DEPRECATED TParamWidget *createParam(Vec pos, Module *module, int paramId, float minValue, float maxValue, float defaultValue) {
                          ^~~~~~~~~~~
src/Dice.cpp:156:90: warning: ‘TPort* rack::createInput(rack::Vec, rack::Module*, int) [with TPort = rack::PJ301MPort]’ is deprecated [-Wdeprecated-declarations]
  addInput(createInput<PJ301MPort>(Vec(7+y*27, 310), module, Dice::CHANNEL_CLOCK_INPUT + y));
                                                                                          ^
In file included from src/aepelzen.hpp:1:0,
                 from src/Dice.cpp:1:
../../include/rack.hpp:61:19: note: declared here
 DEPRECATED TPort *createInput(Vec pos, Module *module, int inputId) {
                   ^~~~~~~~~~~
src/Dice.cpp:157:86: warning: ‘TPort* rack::createOutput(rack::Vec, rack::Module*, int) [with TPort = rack::PJ301MPort]’ is deprecated [-Wdeprecated-declarations]
  addOutput(createOutput<PJ301MPort>(Vec(7 + y*27, 345), module, Dice::GATE_OUTPUT + y));
                                                                                      ^
In file included from src/aepelzen.hpp:1:0,
                 from src/Dice.cpp:1:
../../include/rack.hpp:72:19: note: declared here
 DEPRECATED TPort *createOutput(Vec pos, Module *module, int outputId) {
                   ^~~~~~~~~~~~
make: *** [../../compile.mk:57: build/src/Dice.cpp.o] Error 1
phdsg commented 6 years ago

please make sure you have checked out v0.5 of rack. these errors look like you're trying to compile 0.5 plugins with rack 0.6.

polyzium commented 6 years ago

@phdsg Oh come on you're everywhere lmao I did that already

phdsg commented 6 years ago

yeah, i'm subscribed to pretty much every vcv repo :)