clone45 / voxglitch

Modules for VCV Rack
GNU General Public License v3.0
98 stars 16 forks source link

Build failure on macOS platform #169

Closed cschol closed 1 year ago

cschol commented 1 year ago
x86_64-apple-darwin20.2-clang++-libc++  -std=c++11 -stdlib=libc++   -fPIC -I/home/build/rack-plugin-toolchain/Rack-SDK-mac/include -I/home/build/rack-plugin-toolchain/Rack-SDK-mac/dep/include -MMD -MP -g -O3 -march=nehalem -funsafe-math-optimizations -fno-omit-frame-pointer -Wall -Wextra -Wno-unused-parameter
 -DARCH_MAC -mmacosx-version-min=10.9  -c -o build/src/SamplerX8.cpp.o src/SamplerX8.cpp                                                                                                                                                                                                                              
x86_64-apple-darwin20.2-clang++-libc++  -std=c++11 -stdlib=libc++   -fPIC -I/home/build/rack-plugin-toolchain/Rack-SDK-mac/include -I/home/build/rack-plugin-toolchain/Rack-SDK-mac/dep/include -MMD -MP -g -O3 -march=nehalem -funsafe-math-optimizations -fno-omit-frame-pointer -Wall -Wextra -Wno-unused-parameter
 -DARCH_MAC -mmacosx-version-min=10.9  -c -o build/src/DigitalSequencer.cpp.o src/DigitalSequencer.cpp                                                     
In file included from src/DigitalSequencer.cpp:25:                                                                                                         
src/DigitalSequencer/VoltageSequencer.hpp:3:42: error: implicit instantiation of undefined template 'std::array<float, 32>'                                                                                                                                                                                           
  std::array<float, MAX_SEQUENCER_STEPS> sequence;                                                                                                         
                                         ^                                                                                                                 
/home/build/rack-plugin-toolchain/local/osxcross/bin/../SDK/MacOSX11.1.sdk/usr/include/c++/v1/__tuple:219:64: note: template is declared here                                                                                                                                                                         
template <class _Tp, size_t _Size> struct _LIBCPP_TEMPLATE_VIS array;                                                                                      
                                                               ^                                                                                           
In file included from src/DigitalSequencer.cpp:25:                                                                                                                                                                                                                                                                    
src/DigitalSequencer/VoltageSequencer.hpp:27:21: error: cannot initialize object parameter of type 'dseq::Sequencer' with an expression of type 'dseq::VoltageSequencer'                                                                                                                                              
    return(sequence[getPlaybackPosition()]);                                                                                                               
                    ^~~~~~~~~~~~~~~~~~~                                                                                                                                                                                                                                                                               
src/DigitalSequencer/VoltageSequencer.hpp:40:29: error: cannot initialize object parameter of type 'dseq::Sequencer' with an expression of type 'dseq::VoltageSequencer'                                                                                                                                              
    return(rescale(sequence[getPlaybackPosition()], 0.0, 1.0, voltage_ranges[voltage_range_index][0], voltage_ranges[voltage_range_index][1]));            
                            ^~~~~~~~~~~~~~~~~~~          
In file included from src/DigitalSequencer.cpp:26:                                                                                                                                                                                                                                                                    
src/DigitalSequencer/GateSequencer.hpp:3:41: error: implicit instantiation of undefined template 'std::array<bool, 32>'                                    
  std::array<bool, MAX_SEQUENCER_STEPS> sequence;             
                                        ^                                                                                                                                                                                                                                                                             
/home/build/rack-plugin-toolchain/local/osxcross/bin/../SDK/MacOSX11.1.sdk/usr/include/c++/v1/__tuple:219:64: note: template is declared here
template <class _Tp, size_t _Size> struct _LIBCPP_TEMPLATE_VIS array;                                                                                      
                                                               ^                                                                                           
In file included from src/DigitalSequencer.cpp:27:                                                                                                                                                                                                                                                                    
src/DigitalSequencer/DigitalSequencer.hpp:125:5: error: cannot initialize object parameter of type 'rack::engine::Module' with an expression of type 'dseq::DigitalSequencer'                                                                                                                                         
    config(NUM_PARAMS, NUM_INPUTS, NUM_OUTPUTS, NUM_LIGHTS);                                                                                                                                                                                                                                                          
    ^~~~~~                                                                                                                                                                                                                                                                                                            
src/DigitalSequencer/DigitalSequencer.hpp:129:94: warning: adding 'unsigned int' to a string does not append to the string [-Wstring-plus-int]
      configParam(SEQUENCER_SELECTION_BUTTONS + i, 0.f, 1.f, 0.f, "SequencerSelectionButton" + i);         
                                                                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~                                                           
src/DigitalSequencer/DigitalSequencer.hpp:129:94: note: use array indexing to silence this warning                                                                                                                                                                                                                    
      configParam(SEQUENCER_SELECTION_BUTTONS + i, 0.f, 1.f, 0.f, "SequencerSelectionButton" + i);                   
                                                                                             ^                                                                                                                                                                                                                        
                                                                  &                          [  ]                                           
src/DigitalSequencer/DigitalSequencer.hpp:129:7: error: no matching member function for call to 'configParam'                                              
      configParam(SEQUENCER_SELECTION_BUTTONS + i, 0.f, 1.f, 0.f, "SequencerSelectionButton" + i);                                                         
      ^~~~~~~~~~~                                                                                                                                                                                                                                                                                                     
/home/build/rack-plugin-toolchain/Rack-SDK-mac/include/engine/Module.hpp:119:18: note: candidate function template not viable: no known conversion from 'dseq::DigitalSequencer' to 'rack::engine::Module' for object argument                                                                                        
        TParamQuantity* configParam(int paramId, float minValue, float maxValue, float defaultValue, std::string name = "", std::string unit = "", float displayBase = 0.f, float displayMultiplier = 1.f, float displayOffset = 0.f) {                                                                               
                        ^                                                                                                                                                                                                                                                                                             
In file included from src/DigitalSequencer.cpp:27:                                                                                                         
src/DigitalSequencer/DigitalSequencer.hpp:130:113: warning: adding 'unsigned int' to a string does not append to the string [-Wstring-plus-int]            
      configParam(SEQUENCER_LENGTH_KNOBS + i, 1, MAX_SEQUENCER_STEPS, MAX_SEQUENCER_STEPS, "SequenceLengthKnob" + i);                                                                                                                                                                                                 
                                                                                           ~~~~~~~~~~~~~~~~~~~~~^~~                                        
src/DigitalSequencer/DigitalSequencer.hpp:130:113: note: use array indexing to silence this warning                                                        
      configParam(SEQUENCER_LENGTH_KNOBS + i, 1, MAX_SEQUENCER_STEPS, MAX_SEQUENCER_STEPS, "SequenceLengthKnob" + i);                                                                                                                                                                                                 
                                                                                                                ^                                          
                                                                                           &                    [  ]                                       
src/DigitalSequencer/DigitalSequencer.hpp:130:7: error: no matching member function for call to 'configParam'                                                                                                                                                                                                         
      configParam(SEQUENCER_LENGTH_KNOBS + i, 1, MAX_SEQUENCER_STEPS, MAX_SEQUENCER_STEPS, "SequenceLengthKnob" + i);                                                                                                                                                                                                 
      ^~~~~~~~~~~                                                
/home/build/rack-plugin-toolchain/Rack-SDK-mac/include/engine/Module.hpp:119:18: note: candidate function template not viable: no known conversion from 'dseq::DigitalSequencer' to 'rack::engine::Module' for object argument                                                                                        
        TParamQuantity* configParam(int paramId, float minValue, float maxValue, float defaultValue, std::string name = "", std::string unit = "", float displayBase = 0.f, float displayMultiplier = 1.f, float displayOffset = 0.f) {
                        ^                                                                                                                                  
In file included from src/DigitalSequencer.cpp:27:       
src/DigitalSequencer/DigitalSequencer.hpp:131:7: error: cannot initialize object parameter of type 'rack::engine::Module' with an expression of type 'dseq::DigitalSequencer'                                                                                                                                         
      getParamQuantity(SEQUENCER_LENGTH_KNOBS + i)->resetEnabled = false;                                                                                  
      ^~~~~~~~~~~~~~~~                                        
src/DigitalSequencer/DigitalSequencer.hpp:132:7: error: cannot initialize object parameter of type 'rack::engine::Module' with an expression of type 'dseq::DigitalSequencer'                                                                                                                                         
      getParamQuantity(SEQUENCER_LENGTH_KNOBS + i)->randomizeEnabled = false;                                                                
      ^~~~~~~~~~~~~~~~                                                    
src/DigitalSequencer/DigitalSequencer.hpp:135:5: error: no matching member function for call to 'configInput'                                              
    configInput(STEP_INPUT, "Step");                                                                                                                                                                                                                                                                                  
    ^~~~~~~~~~~                                                                                                                                                                                                                                                                                                       
/home/build/rack-plugin-toolchain/Rack-SDK-mac/include/engine/Module.hpp:168:13: note: candidate function template not viable: no known conversion from 'dseq::DigitalSequencer' to 'rack::engine::Module' for object argument                                                                                        
        TPortInfo* configInput(int portId, std::string name = "") {                                                                                                                                                                                                                                                   
                   ^                                                                                                                                       
In file included from src/DigitalSequencer.cpp:27:                                                                                                         
src/DigitalSequencer/DigitalSequencer.hpp:136:5: error: no matching member function for call to 'configInput'
    configInput(RESET_INPUT, "Reset");                                                                                                                     
    ^~~~~~~~~~~                                                                       
[...]