acids-ircam / rave_vst

Other
184 stars 28 forks source link

Having trouble with M1 Pro system running macOS 12.3.1 #11

Open HenningSchaar opened 2 years ago

HenningSchaar commented 2 years ago

Hey there,

I've tried using the prebuilt binaries for macOS with my system and I get a very unhelpful error message from macOS: Translates to: The program "RAVE" could not be opened. Translates to: The program "RAVE" could not be opened.

I tried fixing permissions or right-click opening it, but no luck.

My system is an M1 Pro MacBook Pro with 16GB Ram and 1TB Hard drive running macOS 12.3.1

I also tried building the binaries myself by following the build instructions but got following error:

henningschaar@MacBook-Pro build % cmake --build . --config Release -j 4                         
[  6%] Built target rave-vst-Images
[ 34%] Built target rave-vst
[ 35%] Linking CXX executable rave-vst_artefacts/Release/Standalone/RAVE.app/Contents/MacOS/RAVE
[ 36%] Linking CXX CFBundle shared module rave-vst_artefacts/Release/VST3/RAVE.vst3/Contents/MacOS/RAVE
[ 38%] Linking CXX CFBundle shared module rave-vst_artefacts/Release/AU/RAVE.component/Contents/MacOS/RAVE
ld: warning: ignoring file torch/libtorch/lib/libtorch.dylib, building for macOS-arm64 but attempting to link with file built for macOS-x86_64
ld: warning: ignoring file torch/libtorch/lib/libtorch_cpu.dylib, building for macOS-arm64 but attempting to link with file built for macOS-x86_64
ld: warning: ignoring file torch/libtorch/lib/libc10.dylib, building for macOS-arm64 but attempting to link with file built for macOS-x86_64
ld: warning: ignoring file torch/libtorch/lib/libtorch.dylib, building for macOS-arm64 but attempting to link with file built for macOS-x86_64
ld: warning: ignoring file torch/libtorch/lib/libtorch_cpu.dylib, building for macOS-arm64 but attempting to link with file built for macOS-x86_64
ld: warning: ignoring file torch/libtorch/lib/libc10.dylib, building for macOS-arm64 but attempting to link with file built for macOS-x86_64
ld: warning: ignoring file torch/libtorch/lib/libtorch.dylib, building for macOS-arm64 but attempting to link with file built for macOS-x86_64
ld: warning: ignoring file torch/libtorch/lib/libtorch_cpu.dylib, building for macOS-arm64 but attempting to link with file built for macOS-x86_64
ld: warning: ignoring file torch/libtorch/lib/libc10.dylib, building for macOS-arm64 but attempting to link with file built for macOS-x86_64
undef: __ZN3c106detail23torchInternalAssertFailEPKcS2_jS2_S2_
undef: __ZNK3c106ivalue6Object4typeEv
undef: __ZNK5torch3jit6Module13named_buffersEb
undef: __ZNK5torch3jit6Object11find_methodERKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE
undef: __ZN3c106detail14torchCheckFailEPKcS2_jRKNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEE
undef: __ZN2at5printERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEERKNS_6TensorEx
undef: __ZN2at4_ops10add_Scalar4callERKNS_6TensorERKN3c106ScalarES8_
undef: __ZNK3c106IValue8toModuleEv
undef: __ZN2at6Tensor10index_put_ESt16initializer_listINS_8indexing11TensorIndexEERKS0_
undef: __ZN2at4_ops10mul_Scalar4callERKNS_6TensorERKN3c106ScalarE
undef: __ZN2at4_ops3cat4callEN3c108ArrayRefINS_6TensorEEEx
undef: __ZNK5torch3jit6MethodclENSt3__16vectorIN3c106IValueENS2_9allocatorIS5_EEEERKNS2_13unordered_mapINS2_12basic_stringIcNS2_11char_traitsIcEENS6_IcEEEES5_NS2_4hashISE_EENS2_8equal_toISE_EENS6_INS2_4pairIKSE_S5_EEEEEE
undef: __ZNK2at10TensorBase8data_ptrIfEEPT_v
undef: __ZN3c105ErrorC2ENS_14SourceLocationENSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE
undef: __ZN2at11TensorMaker11make_tensorEv
undef: __ZNK2at6Tensor5indexESt16initializer_listINS_8indexing11TensorIndexEE
undef: __ZN3c106detail14torchCheckFailEPKcS2_jS2_
undef: __ZNK3c106IValue23reportToTensorTypeErrorEv
undef: __ZN5torch3jit4loadERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEN3c108optionalINSA_6DeviceEEE
undef: __ZN5torch3jit16getProfilingModeEv
undef: __ZN5torch3jit24setGraphExecutorOptimizeEb
undef: __ZN3c104impl33_force_tls_local_dispatch_key_setENS0_19LocalDispatchKeySetE
undef: __ZN2at4_ops5zeros4callEN3c108ArrayRefIxEENS2_8optionalINS2_10ScalarTypeEEENS5_INS2_6LayoutEEENS5_INS2_6DeviceEEENS5_IbEE
undef: __ZN3c1013AutogradState13get_tls_stateEv
undef: __ZN2at4_ops7reshape4callERKNS_6TensorEN3c108ArrayRefIxEE
undef: __ZN2at4_ops10select_int4callERKNS_6TensorExx
undef: __ZN3c1013AutogradState13set_tls_stateES0_
undef: __ZNK2at6Tensor4itemIfEET_v
undef: __ZN3c1010TensorType3getEv
undef: __ZN2at4_ops4ones4callEN3c108ArrayRefIxEENS2_8optionalINS2_10ScalarTypeEEENS5_INS2_6LayoutEEENS5_INS2_6DeviceEEENS5_IbEE
undef: __ZN2at4_ops10randn_like4callERKNS_6TensorEN3c108optionalINS5_10ScalarTypeEEENS6_INS5_6LayoutEEENS6_INS5_6DeviceEEENS6_IbEENS6_INS5_12MemoryFormatEEE
undef: __ZTVN5torch8autograd12AutogradMetaE
undef: __ZN2at4_ops10mul_Tensor4callERKNS_6TensorES4_
undef: __ZN6caffe28TypeMeta26error_unsupported_typemetaES0_
undef: __ZN3c1010TensorImpl17set_autograd_metaENSt3__110unique_ptrINS_21AutogradMetaInterfaceENS1_14default_deleteIS3_EEEE
undef: __ZN3c104impl23ExcludeDispatchKeyGuardD1Ev
undef: __ZN2at4_ops5clone4callERKNS_6TensorEN3c108optionalINS5_12MemoryFormatEEE
undef: __ZN3c1021AutogradMetaInterfaceD2Ev
undef: __ZN2at4_ops10add_Tensor4callERKNS_6TensorES4_RKN3c106ScalarE
undef: __ZTWN3c104impl26raw_local_dispatch_key_setE
undef: __ZNK2at6Tensor4itemIiEET_v
undef: __ZTVN5torch3jit6MethodE
undef: __ZN2at4_ops5randn4callEN3c108ArrayRefIxEENS2_8optionalINS2_10ScalarTypeEEENS5_INS2_6LayoutEEENS5_INS2_6DeviceEEENS5_IbEE
undef: __ZN3c104impl23ExcludeDispatchKeyGuardC1ENS_14DispatchKeySetE
undef: __ZN3c106detail23torchInternalAssertFailEPKcS2_jS2_RKNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEE
undef: __ZN3c1019UndefinedTensorImpl10_singletonE
Undefined symbols for architecture arm64:
  "c10::detail::torchInternalAssertFail(char const*, char const*, unsigned int, char const*, char const*)", referenced from:
      torch::jit::slot_iterator_impl<torch::jit::detail::NamedPolicy<torch::jit::detail::BufferPolicy> >::valid() const in lto.o
  "c10::ivalue::Object::type() const", referenced from:
      torch::jit::slot_iterator_impl<torch::jit::detail::NamedPolicy<torch::jit::detail::BufferPolicy> >::next() in lto.o
      torch::jit::slot_iterator_impl<torch::jit::detail::NamedPolicy<torch::jit::detail::BufferPolicy> >::valid() const in lto.o
      torch::jit::detail::NamedPolicy<torch::jit::detail::BufferPolicy>::nameFragment(torch::jit::detail::SlotCursor const&) in lto.o
  "torch::jit::Module::named_buffers(bool) const", referenced from:
      UpdateEngineJob::runJob() in lto.o
  "torch::jit::Object::find_method(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const", referenced from:
      torch::jit::Object::get_method(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const in lto.o
  "c10::detail::torchCheckFail(char const*, char const*, unsigned int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)", referenced from:
      torch::jit::Object::get_method(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const in lto.o
  "at::print(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, at::Tensor const&, long long)", referenced from:
      UpdateEngineJob::runJob() in lto.o
  "at::_ops::add_Scalar::call(at::Tensor const&, c10::Scalar const&, c10::Scalar const&)", referenced from:
      RaveAP::modelPerform() in lto.o
  "c10::IValue::toModule() const", referenced from:
      torch::jit::slot_iterator_impl<torch::jit::detail::NamedPolicy<torch::jit::detail::BufferPolicy> >::next() in lto.o
  "at::Tensor::index_put_(std::initializer_list<at::indexing::TensorIndex>, at::Tensor const&)", referenced from:
      RaveAP::modelPerform() in lto.o
  "at::_ops::mul_Scalar::call(at::Tensor const&, c10::Scalar const&)", referenced from:
      RaveAP::modelPerform() in lto.o
  "at::_ops::cat::call(c10::ArrayRef<at::Tensor>, long long)", referenced from:
      RaveAP::modelPerform() in lto.o
  "torch::jit::Method::operator()(std::__1::vector<c10::IValue, std::__1::allocator<c10::IValue> >, std::__1::unordered_map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, c10::IValue, std::__1::hash<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::equal_to<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const, c10::IValue> > > const&) const", referenced from:
      RaveAP::modelPerform() in lto.o
  "float* at::TensorBase::data_ptr<float>() const", referenced from:
      RaveAP::modelPerform() in lto.o
  "c10::Error::Error(c10::SourceLocation, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >)", referenced from:
      at::TensorBase::size(long long) const in lto.o
  "at::TensorMaker::make_tensor()", referenced from:
      RaveAP::modelPerform() in lto.o
  "at::Tensor::index(std::initializer_list<at::indexing::TensorIndex>) const", referenced from:
      RAVE::getModelRatio() in lto.o
      ModelPanel::timerCallback() in lto.o
      RaveAP::modelPerform() in lto.o
  "c10::detail::torchCheckFail(char const*, char const*, unsigned int, char const*)", referenced from:
      torch::autograd::AutogradMeta::AutogradMeta(c10::TensorImpl*, bool, torch::autograd::Edge) in lto.o
      c10::detail::torchInternalAssertFail(char const*, char const*, unsigned int, char const*, c10::detail::CompileTimeEmptyString) in lto.o
      at::randn_like(at::Tensor const&, c10::TensorOptions, c10::optional<c10::MemoryFormat>) in lto.o
  "c10::IValue::reportToTensorTypeError() const", referenced from:
      RaveAP::modelPerform() in lto.o
      UpdateEngineJob::runJob() in lto.o
  "torch::jit::load(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, c10::optional<c10::Device>)", referenced from:
      UpdateEngineJob::runJob() in lto.o
  "torch::jit::getProfilingMode()", referenced from:
      RaveAP::RaveAP() in lto.o
  "torch::jit::setGraphExecutorOptimize(bool)", referenced from:
      RaveAP::RaveAP() in lto.o
  "c10::impl::_force_tls_local_dispatch_key_set(c10::impl::LocalDispatchKeySet)", referenced from:
      RaveAP::RaveAP() in lto.o
      RaveAP::modelPerform() in lto.o
      UpdateEngineJob::runJob() in lto.o
  "at::_ops::zeros::call(c10::ArrayRef<long long>, c10::optional<c10::ScalarType>, c10::optional<c10::Layout>, c10::optional<c10::Device>, c10::optional<bool>)", referenced from:
      torch::zeros(c10::ArrayRef<long long>, c10::TensorOptions) in lto.o
  "c10::AutogradState::get_tls_state()", referenced from:
      RaveAP::RaveAP() in lto.o
      RaveAP::modelPerform() in lto.o
      UpdateEngineJob::runJob() in lto.o
  "at::_ops::reshape::call(at::Tensor const&, c10::ArrayRef<long long>)", referenced from:
      RaveAP::modelPerform() in lto.o
  "at::_ops::select_int::call(at::Tensor const&, long long, long long)", referenced from:
      ModelPanel::timerCallback() in lto.o
  "c10::AutogradState::set_tls_state(c10::AutogradState)", referenced from:
      RaveAP::RaveAP() in lto.o
      RaveAP::modelPerform() in lto.o
      UpdateEngineJob::runJob() in lto.o
  "float at::Tensor::item<float>() const", referenced from:
      ModelPanel::timerCallback() in lto.o
  "c10::TensorType::get()", referenced from:
      torch::jit::slot_iterator_impl<torch::jit::detail::NamedPolicy<torch::jit::detail::BufferPolicy> >::valid() const in lto.o
  "at::_ops::ones::call(c10::ArrayRef<long long>, c10::optional<c10::ScalarType>, c10::optional<c10::Layout>, c10::optional<c10::Device>, c10::optional<bool>)", referenced from:
      torch::ones(c10::ArrayRef<long long>, c10::TensorOptions) in lto.o
  "at::_ops::randn_like::call(at::Tensor const&, c10::optional<c10::ScalarType>, c10::optional<c10::Layout>, c10::optional<c10::Device>, c10::optional<bool>, c10::optional<c10::MemoryFormat>)", referenced from:
      at::randn_like(at::Tensor const&, c10::TensorOptions, c10::optional<c10::MemoryFormat>) in lto.o
      torch::randn_like(at::Tensor const&, c10::TensorOptions, c10::optional<c10::MemoryFormat>) in lto.o
  "vtable for torch::autograd::AutogradMeta", referenced from:
      torch::autograd::AutogradMeta::AutogradMeta(c10::TensorImpl*, bool, torch::autograd::Edge) in lto.o
  NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
  "at::_ops::mul_Tensor::call(at::Tensor const&, at::Tensor const&)", referenced from:
      RaveAP::modelPerform() in lto.o
  "caffe2::TypeMeta::error_unsupported_typemeta(caffe2::TypeMeta)", referenced from:
      torch::ones(c10::ArrayRef<long long>, c10::TensorOptions) in lto.o
      at::randn_like(at::Tensor const&, c10::TensorOptions, c10::optional<c10::MemoryFormat>) in lto.o
  "c10::TensorImpl::set_autograd_meta(std::__1::unique_ptr<c10::AutogradMetaInterface, std::__1::default_delete<c10::AutogradMetaInterface> >)", referenced from:
      torch::autograd::make_variable(at::Tensor, bool, bool) in lto.o
  "c10::impl::ExcludeDispatchKeyGuard::~ExcludeDispatchKeyGuard()", referenced from:
      torch::ones(c10::ArrayRef<long long>, c10::TensorOptions) in lto.o
      RaveAP::modelPerform() in lto.o
      torch::randn_like(at::Tensor const&, c10::TensorOptions, c10::optional<c10::MemoryFormat>) in lto.o
      torch::randn(c10::ArrayRef<long long>, c10::TensorOptions) in lto.o
      torch::zeros(c10::ArrayRef<long long>, c10::TensorOptions) in lto.o
  "at::_ops::clone::call(at::Tensor const&, c10::optional<c10::MemoryFormat>)", referenced from:
      RaveAP::modelPerform() in lto.o
  "c10::AutogradMetaInterface::~AutogradMetaInterface()", referenced from:
      torch::autograd::AutogradMeta::AutogradMeta(c10::TensorImpl*, bool, torch::autograd::Edge) in lto.o
  "at::_ops::add_Tensor::call(at::Tensor const&, at::Tensor const&, c10::Scalar const&)", referenced from:
      RaveAP::modelPerform() in lto.o
  "thread-local wrapper routine for c10::impl::raw_local_dispatch_key_set", referenced from:
      RaveAP::RaveAP() in lto.o
      RaveAP::modelPerform() in lto.o
      UpdateEngineJob::runJob() in lto.o
  "int at::Tensor::item<int>() const", referenced from:
      RAVE::getModelRatio() in lto.o
      UpdateEngineJob::runJob() in lto.o
  "vtable for torch::jit::Method", referenced from:
      RaveAP::modelPerform() in lto.o
      torch::jit::Object::get_method(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const in lto.o
  NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
  "at::_ops::randn::call(c10::ArrayRef<long long>, c10::optional<c10::ScalarType>, c10::optional<c10::Layout>, c10::optional<c10::Device>, c10::optional<bool>)", referenced from:
      torch::randn(c10::ArrayRef<long long>, c10::TensorOptions) in lto.o
  "c10::impl::ExcludeDispatchKeyGuard::ExcludeDispatchKeyGuard(c10::DispatchKeySet)", referenced from:
      torch::ones(c10::ArrayRef<long long>, c10::TensorOptions) in lto.o
      RaveAP::modelPerform() in lto.o
      torch::randn_like(at::Tensor const&, c10::TensorOptions, c10::optional<c10::MemoryFormat>) in lto.o
      torch::randn(c10::ArrayRef<long long>, c10::TensorOptions) in lto.o
      torch::zeros(c10::ArrayRef<long long>, c10::TensorOptions) in lto.o
  "c10::detail::torchInternalAssertFail(char const*, char const*, unsigned int, char const*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)", referenced from:
      RaveAP::modelPerform() in lto.o
  "c10::UndefinedTensorImpl::_singleton", referenced from:
      c10::ivalue::Object::~Object() in lto.o
      RAVE::getModelRatio() in lto.o
      torch::ones(c10::ArrayRef<long long>, c10::TensorOptions) in lto.o
      torch::autograd::make_variable(at::Tensor, bool, bool) in lto.o
      torch::autograd::AutogradMeta::AutogradMeta(c10::TensorImpl*, bool, torch::autograd::Edge) in lto.o
      at::Tensor::Tensor(c10::intrusive_ptr<c10::TensorImpl, c10::UndefinedTensorImpl>) in lto.o
      at::TensorBase::TensorBase(c10::intrusive_ptr<c10::TensorImpl, c10::UndefinedTensorImpl>) in lto.o
      ...
ld: symbol(s) not found for architecture arm64
undef: __ZN3c106detail23torchInternalAssertFailEPKcS2_jS2_S2_
undef: __ZNK3c106ivalue6Object4typeEv
undef: __ZNK5torch3jit6Module13named_buffersEb
undef: __ZNK5torch3jit6Object11find_methodERKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE
undef: __ZN3c106detail14torchCheckFailEPKcS2_jRKNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEE
undef: __ZN2at5printERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEERKNS_6TensorEx
undef: __ZN2at4_ops10add_Scalar4callERKNS_6TensorERKN3c106ScalarES8_
undef: __ZNK3c106IValue8toModuleEv
undef: __ZN2at6Tensor10index_put_ESt16initializer_listINS_8indexing11TensorIndexEERKS0_
undef: __ZN2at4_ops10mul_Scalar4callERKNS_6TensorERKN3c106ScalarE
undef: __ZN2at4_ops3cat4callEN3c108ArrayRefINS_6TensorEEEx
undef: __ZNK5torch3jit6MethodclENSt3__16vectorIN3c106IValueENS2_9allocatorIS5_EEEERKNS2_13unordered_mapINS2_12basic_stringIcNS2_11char_traitsIcEENS6_IcEEEES5_NS2_4hashISE_EENS2_8equal_toISE_EENS6_INS2_4pairIKSE_S5_EEEEEE
undef: __ZNK2at10TensorBase8data_ptrIfEEPT_v
undef: __ZN3c105ErrorC2ENS_14SourceLocationENSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE
undef: __ZN2at11TensorMaker11make_tensorEv
undef: __ZNK2at6Tensor5indexESt16initializer_listINS_8indexing11TensorIndexEE
undef: __ZN3c106detail14torchCheckFailEPKcS2_jS2_
undef: __ZNK3c106IValue23reportToTensorTypeErrorEv
undef: __ZN5torch3jit4loadERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEN3c108optionalINSA_6DeviceEEE
undef: __ZN5torch3jit16getProfilingModeEv
undef: __ZN5torch3jit24setGraphExecutorOptimizeEb
undef: __ZN3c104impl33_force_tls_local_dispatch_key_setENS0_19LocalDispatchKeySetE
undef: __ZN2at4_ops5zeros4callEN3c108ArrayRefIxEENS2_8optionalINS2_10ScalarTypeEEENS5_INS2_6LayoutEEENS5_INS2_6DeviceEEENS5_IbEE
undef: __ZN3c1013AutogradState13get_tls_stateEv
undef: __ZN2at4_ops7reshape4callERKNS_6TensorEN3c108ArrayRefIxEE
undef: __ZN2at4_ops10select_int4callERKNS_6TensorExx
undef: __ZN3c1013AutogradState13set_tls_stateES0_
undef: __ZNK2at6Tensor4itemIfEET_v
undef: __ZN3c1010TensorType3getEv
undef: __ZN2at4_ops4ones4callEN3c108ArrayRefIxEENS2_8optionalINS2_10ScalarTypeEEENS5_INS2_6LayoutEEENS5_INS2_6DeviceEEENS5_IbEE
undef: __ZN2at4_ops10randn_like4callERKNS_6TensorEN3c108optionalINS5_10ScalarTypeEEENS6_INS5_6LayoutEEENS6_INS5_6DeviceEEENS6_IbEENS6_INS5_12MemoryFormatEEE
undef: __ZTVN5torch8autograd12AutogradMetaE
undef: __ZN2at4_ops10mul_Tensor4callERKNS_6TensorES4_
undef: __ZN6caffe28TypeMeta26error_unsupported_typemetaES0_
undef: __ZN3c1010TensorImpl17set_autograd_metaENSt3__110unique_ptrINS_21AutogradMetaInterfaceENS1_14default_deleteIS3_EEEE
undef: __ZN3c104impl23ExcludeDispatchKeyGuardD1Ev
undef: __ZN2at4_ops5clone4callERKNS_6TensorEN3c108optionalINS5_12MemoryFormatEEE
undef: __ZN3c1021AutogradMetaInterfaceD2Ev
undef: __ZN2at4_ops10add_Tensor4callERKNS_6TensorES4_RKN3c106ScalarE
undef: __ZTWN3c104impl26raw_local_dispatch_key_setE
undef: __ZNK2at6Tensor4itemIiEET_v
undef: __ZTVN5torch3jit6MethodE
undef: __ZN2at4_ops5randn4callEN3c108ArrayRefIxEENS2_8optionalINS2_10ScalarTypeEEENS5_INS2_6LayoutEEENS5_INS2_6DeviceEEENS5_IbEE
undef: __ZN3c104impl23ExcludeDispatchKeyGuardC1ENS_14DispatchKeySetE
undef: __ZN3c106detail23torchInternalAssertFailEPKcS2_jS2_RKNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEE
undef: __ZN3c1019UndefinedTensorImpl10_singletonE
Undefined symbols for architecture arm64:
  "c10::detail::torchInternalAssertFail(char const*, char const*, unsigned int, char const*, char const*)", referenced from:
      torch::jit::slot_iterator_impl<torch::jit::detail::NamedPolicy<torch::jit::detail::BufferPolicy> >::valid() const in lto.o
clang: error: linker command failed with exit code 1 (use -v to see invocation)
  "c10::ivalue::Object::type() const", referenced from:
      torch::jit::slot_iterator_impl<torch::jit::detail::NamedPolicy<torch::jit::detail::BufferPolicy> >::next() in lto.o
      torch::jit::slot_iterator_impl<torch::jit::detail::NamedPolicy<torch::jit::detail::BufferPolicy> >::valid() const in lto.o
      torch::jit::detail::NamedPolicy<torch::jit::detail::BufferPolicy>::nameFragment(torch::jit::detail::SlotCursor const&) in lto.o
make[2]: *** [rave-vst_artefacts/Release/VST3/RAVE.vst3/Contents/MacOS/RAVE] Error 1
make[1]: *** [CMakeFiles/rave-vst_VST3.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
  "torch::jit::Module::named_buffers(bool) const", referenced from:
      UpdateEngineJob::runJob() in lto.o
  "torch::jit::Object::find_method(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const", referenced from:
      torch::jit::Object::get_method(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const in lto.o
  "c10::detail::torchCheckFail(char const*, char const*, unsigned int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)", referenced from:
      torch::jit::Object::get_method(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const in lto.o
  "at::print(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, at::Tensor const&, long long)", referenced from:
      UpdateEngineJob::runJob() in lto.o
  "at::_ops::add_Scalar::call(at::Tensor const&, c10::Scalar const&, c10::Scalar const&)", referenced from:
      RaveAP::modelPerform() in lto.o
  "c10::IValue::toModule() const", referenced from:
      torch::jit::slot_iterator_impl<torch::jit::detail::NamedPolicy<torch::jit::detail::BufferPolicy> >::next() in lto.o
  "at::Tensor::index_put_(std::initializer_list<at::indexing::TensorIndex>, at::Tensor const&)", referenced from:
      RaveAP::modelPerform() in lto.o
  "at::_ops::mul_Scalar::call(at::Tensor const&, c10::Scalar const&)", referenced from:
      RaveAP::modelPerform() in lto.o
  "at::_ops::cat::call(c10::ArrayRef<at::Tensor>, long long)", referenced from:
      RaveAP::modelPerform() in lto.o
  "torch::jit::Method::operator()(std::__1::vector<c10::IValue, std::__1::allocator<c10::IValue> >, std::__1::unordered_map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, c10::IValue, std::__1::hash<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::equal_to<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const, c10::IValue> > > const&) const", referenced from:
      RaveAP::modelPerform() in lto.o
  "float* at::TensorBase::data_ptr<float>() const", referenced from:
      RaveAP::modelPerform() in lto.o
  "c10::Error::Error(c10::SourceLocation, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >)", referenced from:
      at::TensorBase::size(long long) const in lto.o
  "at::TensorMaker::make_tensor()", referenced from:
      RaveAP::modelPerform() in lto.o
  "at::Tensor::index(std::initializer_list<at::indexing::TensorIndex>) const", referenced from:
      RAVE::getModelRatio() in lto.o
      ModelPanel::timerCallback() in lto.o
      RaveAP::modelPerform() in lto.o
  "c10::detail::torchCheckFail(char const*, char const*, unsigned int, char const*)", referenced from:
      torch::autograd::AutogradMeta::AutogradMeta(c10::TensorImpl*, bool, torch::autograd::Edge) in lto.o
      c10::detail::torchInternalAssertFail(char const*, char const*, unsigned int, char const*, c10::detail::CompileTimeEmptyString) in lto.o
      at::randn_like(at::Tensor const&, c10::TensorOptions, c10::optional<c10::MemoryFormat>) in lto.o
  "c10::IValue::reportToTensorTypeError() const", referenced from:
      RaveAP::modelPerform() in lto.o
      UpdateEngineJob::runJob() in lto.o
  "torch::jit::load(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, c10::optional<c10::Device>)", referenced from:
      UpdateEngineJob::runJob() in lto.o
  "torch::jit::getProfilingMode()", referenced from:
      RaveAP::RaveAP() in lto.o
  "torch::jit::setGraphExecutorOptimize(bool)", referenced from:
      RaveAP::RaveAP() in lto.o
  "c10::impl::_force_tls_local_dispatch_key_set(c10::impl::LocalDispatchKeySet)", referenced from:
      RaveAP::RaveAP() in lto.o
      RaveAP::modelPerform() in lto.o
      UpdateEngineJob::runJob() in lto.o
  "at::_ops::zeros::call(c10::ArrayRef<long long>, c10::optional<c10::ScalarType>, c10::optional<c10::Layout>, c10::optional<c10::Device>, c10::optional<bool>)", referenced from:
      torch::zeros(c10::ArrayRef<long long>, c10::TensorOptions) in lto.o
  "c10::AutogradState::get_tls_state()", referenced from:
      RaveAP::RaveAP() in lto.o
      RaveAP::modelPerform() in lto.o
      UpdateEngineJob::runJob() in lto.o
  "at::_ops::reshape::call(at::Tensor const&, c10::ArrayRef<long long>)", referenced from:
      RaveAP::modelPerform() in lto.o
  "at::_ops::select_int::call(at::Tensor const&, long long, long long)", referenced from:
      ModelPanel::timerCallback() in lto.o
  "c10::AutogradState::set_tls_state(c10::AutogradState)", referenced from:
      RaveAP::RaveAP() in lto.o
      RaveAP::modelPerform() in lto.o
      UpdateEngineJob::runJob() in lto.o
  "float at::Tensor::item<float>() const", referenced from:
      ModelPanel::timerCallback() in lto.o
  "c10::TensorType::get()", referenced from:
      torch::jit::slot_iterator_impl<torch::jit::detail::NamedPolicy<torch::jit::detail::BufferPolicy> >::valid() const in lto.o
  "at::_ops::ones::call(c10::ArrayRef<long long>, c10::optional<c10::ScalarType>, c10::optional<c10::Layout>, c10::optional<c10::Device>, c10::optional<bool>)", referenced from:
      torch::ones(c10::ArrayRef<long long>, c10::TensorOptions) in lto.o
  "at::_ops::randn_like::call(at::Tensor const&, c10::optional<c10::ScalarType>, c10::optional<c10::Layout>, c10::optional<c10::Device>, c10::optional<bool>, c10::optional<c10::MemoryFormat>)", referenced from:
      at::randn_like(at::Tensor const&, c10::TensorOptions, c10::optional<c10::MemoryFormat>) in lto.o
      torch::randn_like(at::Tensor const&, c10::TensorOptions, c10::optional<c10::MemoryFormat>) in lto.o
  "vtable for torch::autograd::AutogradMeta", referenced from:
      torch::autograd::AutogradMeta::AutogradMeta(c10::TensorImpl*, bool, torch::autograd::Edge) in lto.o
  NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
  "at::_ops::mul_Tensor::call(at::Tensor const&, at::Tensor const&)", referenced from:
      RaveAP::modelPerform() in lto.o
  "caffe2::TypeMeta::error_unsupported_typemeta(caffe2::TypeMeta)", referenced from:
      torch::ones(c10::ArrayRef<long long>, c10::TensorOptions) in lto.o
      at::randn_like(at::Tensor const&, c10::TensorOptions, c10::optional<c10::MemoryFormat>) in lto.o
  "c10::TensorImpl::set_autograd_meta(std::__1::unique_ptr<c10::AutogradMetaInterface, std::__1::default_delete<c10::AutogradMetaInterface> >)", referenced from:
      torch::autograd::make_variable(at::Tensor, bool, bool) in lto.o
  "c10::impl::ExcludeDispatchKeyGuard::~ExcludeDispatchKeyGuard()", referenced from:
      torch::ones(c10::ArrayRef<long long>, c10::TensorOptions) in lto.o
      RaveAP::modelPerform() in lto.o
      torch::randn_like(at::Tensor const&, c10::TensorOptions, c10::optional<c10::MemoryFormat>) in lto.o
      torch::randn(c10::ArrayRef<long long>, c10::TensorOptions) in lto.o
      torch::zeros(c10::ArrayRef<long long>, c10::TensorOptions) in lto.o
  "at::_ops::clone::call(at::Tensor const&, c10::optional<c10::MemoryFormat>)", referenced from:
      RaveAP::modelPerform() in lto.o
  "c10::AutogradMetaInterface::~AutogradMetaInterface()", referenced from:
      torch::autograd::AutogradMeta::AutogradMeta(c10::TensorImpl*, bool, torch::autograd::Edge) in lto.o
  "at::_ops::add_Tensor::call(at::Tensor const&, at::Tensor const&, c10::Scalar const&)", referenced from:
      RaveAP::modelPerform() in lto.o
  "thread-local wrapper routine for c10::impl::raw_local_dispatch_key_set", referenced from:
      RaveAP::RaveAP() in lto.o
      RaveAP::modelPerform() in lto.o
      UpdateEngineJob::runJob() in lto.o
  "int at::Tensor::item<int>() const", referenced from:
      RAVE::getModelRatio() in lto.o
      UpdateEngineJob::runJob() in lto.o
  "vtable for torch::jit::Method", referenced from:
      RaveAP::modelPerform() in lto.o
      torch::jit::Object::get_method(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const in lto.o
  NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
  "at::_ops::randn::call(c10::ArrayRef<long long>, c10::optional<c10::ScalarType>, c10::optional<c10::Layout>, c10::optional<c10::Device>, c10::optional<bool>)", referenced from:
      torch::randn(c10::ArrayRef<long long>, c10::TensorOptions) in lto.o
  "c10::impl::ExcludeDispatchKeyGuard::ExcludeDispatchKeyGuard(c10::DispatchKeySet)", referenced from:
      torch::ones(c10::ArrayRef<long long>, c10::TensorOptions) in lto.o
      RaveAP::modelPerform() in lto.o
      torch::randn_like(at::Tensor const&, c10::TensorOptions, c10::optional<c10::MemoryFormat>) in lto.o
      torch::randn(c10::ArrayRef<long long>, c10::TensorOptions) in lto.o
      torch::zeros(c10::ArrayRef<long long>, c10::TensorOptions) in lto.o
  "c10::detail::torchInternalAssertFail(char const*, char const*, unsigned int, char const*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)", referenced from:
      RaveAP::modelPerform() in lto.o
  "c10::UndefinedTensorImpl::_singleton", referenced from:
      c10::ivalue::Object::~Object() in lto.o
      RAVE::getModelRatio() in lto.o
      torch::ones(c10::ArrayRef<long long>, c10::TensorOptions) in lto.o
      torch::autograd::make_variable(at::Tensor, bool, bool) in lto.o
      torch::autograd::AutogradMeta::AutogradMeta(c10::TensorImpl*, bool, torch::autograd::Edge) in lto.o
      at::Tensor::Tensor(c10::intrusive_ptr<c10::TensorImpl, c10::UndefinedTensorImpl>) in lto.o
      at::TensorBase::TensorBase(c10::intrusive_ptr<c10::TensorImpl, c10::UndefinedTensorImpl>) in lto.o
      ...
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [rave-vst_artefacts/Release/AU/RAVE.component/Contents/MacOS/RAVE] Error 1
make[1]: *** [CMakeFiles/rave-vst_AU.dir/all] Error 2
undef: __ZN3c106detail23torchInternalAssertFailEPKcS2_jS2_S2_
undef: __ZNK3c106ivalue6Object4typeEv
undef: __ZNK5torch3jit6Module13named_buffersEb
undef: __ZNK5torch3jit6Object11find_methodERKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE
undef: __ZN3c106detail14torchCheckFailEPKcS2_jRKNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEE
undef: __ZN2at5printERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEERKNS_6TensorEx
undef: __ZN2at4_ops10add_Scalar4callERKNS_6TensorERKN3c106ScalarES8_
undef: __ZNK3c106IValue8toModuleEv
undef: __ZN2at6Tensor10index_put_ESt16initializer_listINS_8indexing11TensorIndexEERKS0_
undef: __ZN2at4_ops10mul_Scalar4callERKNS_6TensorERKN3c106ScalarE
undef: __ZN2at4_ops3cat4callEN3c108ArrayRefINS_6TensorEEEx
undef: __ZNK5torch3jit6MethodclENSt3__16vectorIN3c106IValueENS2_9allocatorIS5_EEEERKNS2_13unordered_mapINS2_12basic_stringIcNS2_11char_traitsIcEENS6_IcEEEES5_NS2_4hashISE_EENS2_8equal_toISE_EENS6_INS2_4pairIKSE_S5_EEEEEE
undef: __ZNK2at10TensorBase8data_ptrIfEEPT_v
undef: __ZN3c105ErrorC2ENS_14SourceLocationENSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE
undef: __ZN2at11TensorMaker11make_tensorEv
undef: __ZNK2at6Tensor5indexESt16initializer_listINS_8indexing11TensorIndexEE
undef: __ZN3c106detail14torchCheckFailEPKcS2_jS2_
undef: __ZNK3c106IValue23reportToTensorTypeErrorEv
undef: __ZN5torch3jit4loadERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEN3c108optionalINSA_6DeviceEEE
undef: __ZN5torch3jit16getProfilingModeEv
undef: __ZN5torch3jit24setGraphExecutorOptimizeEb
undef: __ZN3c104impl33_force_tls_local_dispatch_key_setENS0_19LocalDispatchKeySetE
undef: __ZN2at4_ops5zeros4callEN3c108ArrayRefIxEENS2_8optionalINS2_10ScalarTypeEEENS5_INS2_6LayoutEEENS5_INS2_6DeviceEEENS5_IbEE
undef: __ZN3c1013AutogradState13get_tls_stateEv
undef: __ZN2at4_ops7reshape4callERKNS_6TensorEN3c108ArrayRefIxEE
undef: __ZN2at4_ops10select_int4callERKNS_6TensorExx
undef: __ZN3c1013AutogradState13set_tls_stateES0_
undef: __ZNK2at6Tensor4itemIfEET_v
undef: __ZTVN5torch8autograd12AutogradMetaE
undef: __ZN2at4_ops10mul_Tensor4callERKNS_6TensorES4_
undef: __ZN6caffe28TypeMeta26error_unsupported_typemetaES0_
undef: __ZN3c1010TensorImpl17set_autograd_metaENSt3__110unique_ptrINS_21AutogradMetaInterfaceENS1_14default_deleteIS3_EEEE
undef: __ZN3c104impl23ExcludeDispatchKeyGuardD1Ev
undef: __ZN2at4_ops5clone4callERKNS_6TensorEN3c108optionalINS5_12MemoryFormatEEE
undef: __ZN3c1021AutogradMetaInterfaceD2Ev
undef: __ZN2at4_ops10add_Tensor4callERKNS_6TensorES4_RKN3c106ScalarE
undef: __ZTWN3c104impl26raw_local_dispatch_key_setE
undef: __ZNK2at6Tensor4itemIiEET_v
undef: __ZTVN5torch3jit6MethodE
undef: __ZN2at4_ops5randn4callEN3c108ArrayRefIxEENS2_8optionalINS2_10ScalarTypeEEENS5_INS2_6LayoutEEENS5_INS2_6DeviceEEENS5_IbEE
undef: __ZN3c104impl23ExcludeDispatchKeyGuardC1ENS_14DispatchKeySetE
undef: __ZN3c106detail23torchInternalAssertFailEPKcS2_jS2_RKNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEE
undef: __ZN3c1010TensorType3getEv
undef: __ZN2at4_ops10randn_like4callERKNS_6TensorEN3c108optionalINS5_10ScalarTypeEEENS6_INS5_6LayoutEEENS6_INS5_6DeviceEEENS6_IbEENS6_INS5_12MemoryFormatEEE
undef: __ZN2at4_ops4ones4callEN3c108ArrayRefIxEENS2_8optionalINS2_10ScalarTypeEEENS5_INS2_6LayoutEEENS5_INS2_6DeviceEEENS5_IbEE
undef: __ZN3c1019UndefinedTensorImpl10_singletonE
Undefined symbols for architecture arm64:
  "c10::detail::torchInternalAssertFail(char const*, char const*, unsigned int, char const*, char const*)", referenced from:
      torch::jit::slot_iterator_impl<torch::jit::detail::NamedPolicy<torch::jit::detail::BufferPolicy> >::valid() const in lto.o
  "c10::ivalue::Object::type() const", referenced from:
      torch::jit::slot_iterator_impl<torch::jit::detail::NamedPolicy<torch::jit::detail::BufferPolicy> >::next() in lto.o
      torch::jit::slot_iterator_impl<torch::jit::detail::NamedPolicy<torch::jit::detail::BufferPolicy> >::valid() const in lto.o
      torch::jit::detail::NamedPolicy<torch::jit::detail::BufferPolicy>::nameFragment(torch::jit::detail::SlotCursor const&) in lto.o
  "torch::jit::Module::named_buffers(bool) const", referenced from:
      UpdateEngineJob::runJob() in lto.o
  "torch::jit::Object::find_method(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const", referenced from:
      torch::jit::Object::get_method(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const in lto.o
  "c10::detail::torchCheckFail(char const*, char const*, unsigned int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)", referenced from:
      torch::jit::Object::get_method(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const in lto.o
  "at::print(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, at::Tensor const&, long long)", referenced from:
      UpdateEngineJob::runJob() in lto.o
  "at::_ops::add_Scalar::call(at::Tensor const&, c10::Scalar const&, c10::Scalar const&)", referenced from:
      RaveAP::modelPerform() in lto.o
  "c10::IValue::toModule() const", referenced from:
      torch::jit::slot_iterator_impl<torch::jit::detail::NamedPolicy<torch::jit::detail::BufferPolicy> >::next() in lto.o
  "at::Tensor::index_put_(std::initializer_list<at::indexing::TensorIndex>, at::Tensor const&)", referenced from:
      RaveAP::modelPerform() in lto.o
  "at::_ops::mul_Scalar::call(at::Tensor const&, c10::Scalar const&)", referenced from:
      RaveAP::modelPerform() in lto.o
  "at::_ops::cat::call(c10::ArrayRef<at::Tensor>, long long)", referenced from:
      RaveAP::modelPerform() in lto.o
  "torch::jit::Method::operator()(std::__1::vector<c10::IValue, std::__1::allocator<c10::IValue> >, std::__1::unordered_map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, c10::IValue, std::__1::hash<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::equal_to<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const, c10::IValue> > > const&) const", referenced from:
      RaveAP::modelPerform() in lto.o
  "float* at::TensorBase::data_ptr<float>() const", referenced from:
      RaveAP::modelPerform() in lto.o
  "c10::Error::Error(c10::SourceLocation, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >)", referenced from:
      at::TensorBase::size(long long) const in lto.o
  "at::TensorMaker::make_tensor()", referenced from:
      RaveAP::modelPerform() in lto.o
  "at::Tensor::index(std::initializer_list<at::indexing::TensorIndex>) const", referenced from:
      RAVE::getModelRatio() in lto.o
      ModelPanel::timerCallback() in lto.o
      RaveAP::modelPerform() in lto.o
  "c10::detail::torchCheckFail(char const*, char const*, unsigned int, char const*)", referenced from:
      torch::autograd::AutogradMeta::AutogradMeta(c10::TensorImpl*, bool, torch::autograd::Edge) in lto.o
      c10::detail::torchInternalAssertFail(char const*, char const*, unsigned int, char const*, c10::detail::CompileTimeEmptyString) in lto.o
  "c10::IValue::reportToTensorTypeError() const", referenced from:
      RaveAP::modelPerform() in lto.o
      UpdateEngineJob::runJob() in lto.o
  "torch::jit::load(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, c10::optional<c10::Device>)", referenced from:
      UpdateEngineJob::runJob() in lto.o
  "torch::jit::getProfilingMode()", referenced from:
      RaveAP::RaveAP() in lto.o
  "torch::jit::setGraphExecutorOptimize(bool)", referenced from:
      RaveAP::RaveAP() in lto.o
  "c10::impl::_force_tls_local_dispatch_key_set(c10::impl::LocalDispatchKeySet)", referenced from:
      RaveAP::RaveAP() in lto.o
      RaveAP::modelPerform() in lto.o
      UpdateEngineJob::runJob() in lto.o
  "at::_ops::zeros::call(c10::ArrayRef<long long>, c10::optional<c10::ScalarType>, c10::optional<c10::Layout>, c10::optional<c10::Device>, c10::optional<bool>)", referenced from:
      torch::zeros(c10::ArrayRef<long long>, c10::TensorOptions) in lto.o
  "c10::AutogradState::get_tls_state()", referenced from:
      RaveAP::RaveAP() in lto.o
      RaveAP::modelPerform() in lto.o
      UpdateEngineJob::runJob() in lto.o
  "at::_ops::reshape::call(at::Tensor const&, c10::ArrayRef<long long>)", referenced from:
      RaveAP::modelPerform() in lto.o
  "at::_ops::select_int::call(at::Tensor const&, long long, long long)", referenced from:
      ModelPanel::timerCallback() in lto.o
  "c10::AutogradState::set_tls_state(c10::AutogradState)", referenced from:
      RaveAP::RaveAP() in lto.o
      RaveAP::modelPerform() in lto.o
      UpdateEngineJob::runJob() in lto.o
  "float at::Tensor::item<float>() const", referenced from:
      ModelPanel::timerCallback() in lto.o
  "vtable for torch::autograd::AutogradMeta", referenced from:
      torch::autograd::AutogradMeta::AutogradMeta(c10::TensorImpl*, bool, torch::autograd::Edge) in lto.o
  NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
  "at::_ops::mul_Tensor::call(at::Tensor const&, at::Tensor const&)", referenced from:
      RaveAP::modelPerform() in lto.o
  "caffe2::TypeMeta::error_unsupported_typemeta(caffe2::TypeMeta)", referenced from:
      torch::ones(c10::ArrayRef<long long>, c10::TensorOptions) in lto.o
  "c10::TensorImpl::set_autograd_meta(std::__1::unique_ptr<c10::AutogradMetaInterface, std::__1::default_delete<c10::AutogradMetaInterface> >)", referenced from:
      torch::autograd::make_variable(at::Tensor, bool, bool) in lto.o
  "c10::impl::ExcludeDispatchKeyGuard::~ExcludeDispatchKeyGuard()", referenced from:
      torch::ones(c10::ArrayRef<long long>, c10::TensorOptions) in lto.o
      RaveAP::modelPerform() in lto.o
      torch::randn_like(at::Tensor const&, c10::TensorOptions, c10::optional<c10::MemoryFormat>) in lto.o
      torch::randn(c10::ArrayRef<long long>, c10::TensorOptions) in lto.o
      torch::zeros(c10::ArrayRef<long long>, c10::TensorOptions) in lto.o
  "at::_ops::clone::call(at::Tensor const&, c10::optional<c10::MemoryFormat>)", referenced from:
      RaveAP::modelPerform() in lto.o
  "c10::AutogradMetaInterface::~AutogradMetaInterface()", referenced from:
      torch::autograd::AutogradMeta::AutogradMeta(c10::TensorImpl*, bool, torch::autograd::Edge) in lto.o
  "at::_ops::add_Tensor::call(at::Tensor const&, at::Tensor const&, c10::Scalar const&)", referenced from:
      RaveAP::modelPerform() in lto.o
  "thread-local wrapper routine for c10::impl::raw_local_dispatch_key_set", referenced from:
      RaveAP::RaveAP() in lto.o
      RaveAP::modelPerform() in lto.o
      UpdateEngineJob::runJob() in lto.o
  "int at::Tensor::item<int>() const", referenced from:
      RAVE::getModelRatio() in lto.o
      UpdateEngineJob::runJob() in lto.o
  "vtable for torch::jit::Method", referenced from:
      RaveAP::modelPerform() in lto.o
      torch::jit::Object::get_method(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const in lto.o
  NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
  "at::_ops::randn::call(c10::ArrayRef<long long>, c10::optional<c10::ScalarType>, c10::optional<c10::Layout>, c10::optional<c10::Device>, c10::optional<bool>)", referenced from:
      torch::randn(c10::ArrayRef<long long>, c10::TensorOptions) in lto.o
  "c10::impl::ExcludeDispatchKeyGuard::ExcludeDispatchKeyGuard(c10::DispatchKeySet)", referenced from:
      torch::ones(c10::ArrayRef<long long>, c10::TensorOptions) in lto.o
      RaveAP::modelPerform() in lto.o
      torch::randn_like(at::Tensor const&, c10::TensorOptions, c10::optional<c10::MemoryFormat>) in lto.o
      torch::randn(c10::ArrayRef<long long>, c10::TensorOptions) in lto.o
      torch::zeros(c10::ArrayRef<long long>, c10::TensorOptions) in lto.o
  "c10::detail::torchInternalAssertFail(char const*, char const*, unsigned int, char const*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)", referenced from:
      RaveAP::modelPerform() in lto.o
  "c10::TensorType::get()", referenced from:
      torch::jit::slot_iterator_impl<torch::jit::detail::NamedPolicy<torch::jit::detail::BufferPolicy> >::valid() const in lto.o
  "at::_ops::randn_like::call(at::Tensor const&, c10::optional<c10::ScalarType>, c10::optional<c10::Layout>, c10::optional<c10::Device>, c10::optional<bool>, c10::optional<c10::MemoryFormat>)", referenced from:
      torch::randn_like(at::Tensor const&, c10::TensorOptions, c10::optional<c10::MemoryFormat>) in lto.o
  "at::_ops::ones::call(c10::ArrayRef<long long>, c10::optional<c10::ScalarType>, c10::optional<c10::Layout>, c10::optional<c10::Device>, c10::optional<bool>)", referenced from:
      torch::ones(c10::ArrayRef<long long>, c10::TensorOptions) in lto.o
  "c10::UndefinedTensorImpl::_singleton", referenced from:
      c10::ivalue::Object::~Object() in lto.o
      RAVE::getModelRatio() in lto.o
      torch::ones(c10::ArrayRef<long long>, c10::TensorOptions) in lto.o
      torch::autograd::make_variable(at::Tensor, bool, bool) in lto.o
      torch::autograd::AutogradMeta::AutogradMeta(c10::TensorImpl*, bool, torch::autograd::Edge) in lto.o
      at::Tensor::Tensor(c10::intrusive_ptr<c10::TensorImpl, c10::UndefinedTensorImpl>) in lto.o
      at::TensorBase::TensorBase(c10::intrusive_ptr<c10::TensorImpl, c10::UndefinedTensorImpl>) in lto.o
      ...
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [rave-vst_artefacts/Release/Standalone/RAVE.app/Contents/MacOS/RAVE] Error 1
make[1]: *** [CMakeFiles/rave-vst_Standalone.dir/all] Error 2
make: *** [all] Error 2

I hope this is the right place and format to communicate this, thanks!

HenningSchaar commented 2 years ago

I found a strange behaviour where if I unzip the binaries with unarchiver instead of the standard archiving application I don't get an error Message, but the application still refuses to start.

I also tried the AU and VST3 binaries with ARM-Reaper aswell as Rosetta-Reaper but sadly no Luck with that either. (After granting permissions VST3 won't scan, AU is scanned but doesn't load when inserted into a Track)

ZodiacFRA commented 2 years ago

@HenningSchaar For mac M1 you'll need to build yourself, as github does not provides an ARM MacOS environment, I've modified the cmake file in this branch to properly support M1 torch libs linking could you try it and tell me if that works for you?

HenningSchaar commented 2 years ago

Thank you for the quick reply @ZodiacFRA ! I've tried checking out 9f1c356 and Building again but sadly no luck. It does seem to download the correct version of pytorch but there seems to be another problem that I can't figure out on my own.

I get this error in my shell:

CMake Error at cmake/add_torch.cmake:56 (message):
  torch could not be included
Call Stack (most recent call first):
  CMakeLists.txt:44 (include)

And this is the output of CMakeError.log

Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: /Library/Developer/CommandLineTools/usr/bin/cc 
Build flags: 
Id flags:  

The output was:
1
ld: library not found for -lSystem
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: /Library/Developer/CommandLineTools/usr/bin/c++ 
Build flags: 
Id flags:  

The output was:
1
ld: library not found for -lc++
clang: error: linker command failed with exit code 1 (use -v to see invocation)

I have tried this with Python 3.9.1 and Python 3.9.4. I also checked my xcode command line tools installation and it seems to be fine.

This is my clang version:

Apple clang version 13.1.6 (clang-1316.0.21.2.3)
Target: arm64-apple-darwin21.4.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin

and which clang gives me /usr/bin/clang.

ZodiacFRA commented 2 years ago

Ah my bad, the cmakelists did not target the correct folder for this version of torch, I've updated the cmake file. Could you try again @HenningSchaar ?

HenningSchaar commented 2 years ago

I'm getting the same error with the new path (with updated line numbers)

CMake Error at cmake/add_torch.cmake:65 (message):
  torch could not be included
Call Stack (most recent call first):
  CMakeLists.txt:44 (include)

When I tried setting the path that is checked to /lib/python3.9/site-packages/torch/lib I got a different error:

CMake Error at CMakeLists.txt:46 (find_package):
  By not providing "FindTorch.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "Torch", but
  CMake did not find one.

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

    TorchConfig.cmake
    torch-config.cmake

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

But when I tried doing what is suggested here, namely changing the path that is checked to /lib/python3.9/site-packages/torch/share/cmake/Torch (that's where TorchConfig.cmake is located) I get the original error Message again. The CMakeError.log is the same as before for all these runs.

sudara commented 2 years ago

Hi there! Excited to get this built, running into the same problems as @HenningSchaar, including the error on the branch.

As github does not provides an ARM MacOS environment

You can pop the following into CMakelists.txt to build for ARM on github:

set(CMAKE_OSX_ARCHITECTURES arm64 x86_64)

Of course, it'll eat almost 2x the build minutes (and maybe some dependency issues to figure out.)

jarmitage commented 2 years ago

Is anyone able to share a binary of rave-vst built for M1?

cerkut commented 2 years ago

I am testing the build, installed the libtorch with homebrew ensuring arm64, otherwise followed the instructions. Tested the standalone app, runs as native Apple M1 with high CPU but no glitches. After testing the VST and AU too, I can put it on Google Drive, but compilation was very easy, I recommend to give it a try with libtorch from homebrew.

screenshot
cerkut commented 2 years ago

AU works on Ableton Live 11, VST3 opens on Max/MSP (but Live does not look into ~/Library/Audio/Plug-Ins). I put the M1 build here: https://drive.google.com/file/d/16RBKrUqtoazaNkZZXrONthonsOsu30W7/view?usp=sharing

pavbro commented 1 year ago

AU works on Ableton Live 11, VST3 opens on Max/MSP (but Live does not look into ~/Library/Audio/Plug-Ins). I put the M1 build here: https://drive.google.com/file/d/16RBKrUqtoazaNkZZXrONthonsOsu30W7/view?usp=sharing

Unfortunately, I could not run either standalone or audiounit from your build.

Macbook Pro Apple M1 Pro, MacOS 12.5.1

scottyeung commented 1 year ago

@cerkut I codesigned the standalone app, what did I miss to cause this error?

Screenshot 2022-08-30 at 10 09 15 AM
cerkut commented 1 year ago

Sorry, switched to Ventura 13.0 beta, took time to rebuild. The error indicates something missing in protobuf. Could you issue brew info protobuf and ensure you have v 21.5 installed? Standalone compiled and ran fine on 13.0 here.

scottyeung commented 1 year ago

Sorry, switched to Ventura 13.0 beta, took time to rebuild. The error indicates something missing in protobuf. Could you issue brew info protobuf and ensure you have v 21.5 installed? Standalone compiled and ran fine on 13.0 here.

I'm still using Monterey 12.5.1 and protobuf is using v21.5 bottled.

Screenshot 2022-09-14 at 6 13 20 PM
scottyeung commented 1 year ago

Managed to compile after updating my Python on M1 via pyenv to 3.10.7