acids-ircam / nn_tilde

Other
321 stars 36 forks source link

build error: 'value' is unavailable: introduced in macOS 10.14 #70

Closed leoauri closed 8 months ago

leoauri commented 8 months ago

Having followed the instructions from the README

git clone https://github.com/acids-ircam/nn_tilde --recursive
cd nn_tilde
mkdir build
cd build
cmake ../src/ -DCMAKE_PREFIX_PATH=/path/to/libtorch -DCMAKE_BUILD_TYPE=Release
make

I end up with errors, mainly error: 'value' is unavailable: introduced in macOS 10.14.

MacBook Pro 14-inch, 2021 M1 Pro, MacOS 14.2.1 (23C71)

Complete output ``` $ make [ 11%] Building CXX object backend/CMakeFiles/backend.dir/parsing_utils.cpp.o [ 22%] Building CXX object backend/CMakeFiles/backend.dir/backend.cpp.o In file included from .../nn_tilde/src/backend/backend.cpp:1: In file included from .../nn_tilde/src/backend/backend.h:4: In file included from .../nn_tilde/libtorch/include/torch/script.h:3: In file included from .../nn_tilde/libtorch/include/torch/csrc/api/include/torch/types.h:3: In file included from .../nn_tilde/libtorch/include/ATen/ATen.h:7: In file included from .../nn_tilde/libtorch/include/ATen/Context.h:6: .../nn_tilde/libtorch/include/ATen/core/DeprecatedTypeProperties.h:110:34: error: 'value' is unavailable: introduced in macOS 10.14 Device device = device_opt.value(); ^ /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/optional:953:27: note: 'value' has been explicitly marked unavailable here constexpr value_type& value() & ^ In file included from .../nn_tilde/src/backend/backend.cpp:1: In file included from .../nn_tilde/src/backend/backend.h:4: In file included from .../nn_tilde/libtorch/include/torch/script.h:3: In file included from .../nn_tilde/libtorch/include/torch/csrc/api/include/torch/types.h:3: In file included from .../nn_tilde/libtorch/include/ATen/ATen.h:9: In file included from .../nn_tilde/libtorch/include/ATen/DeviceGuard.h:3: In file included from .../nn_tilde/libtorch/include/ATen/core/IListRef.h:631: In file included from .../nn_tilde/libtorch/include/ATen/core/IListRef_inl.h:3: In file included from .../nn_tilde/libtorch/include/ATen/core/List.h:490: In file included from .../nn_tilde/libtorch/include/ATen/core/List_inl.h:4: In file included from .../nn_tilde/libtorch/include/ATen/core/ivalue.h:4: In file included from .../nn_tilde/libtorch/include/ATen/core/TensorBody.h:28: .../nn_tilde/libtorch/include/c10/util/OptionalArrayRef.h:159:34: error: 'value' is unavailable: introduced in macOS 10.14 return wrapped_opt_array_ref.value(); ^ .../nn_tilde/libtorch/include/c10/util/OptionalArrayRef.h:222:13: note: in instantiation of member function 'c10::OptionalArrayRef::value' requested here return a1.value() == other; ^ /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/optional:944:33: note: 'value' has been explicitly marked unavailable here constexpr value_type const& value() const& ^ In file included from .../nn_tilde/src/backend/backend.cpp:1: In file included from .../nn_tilde/src/backend/backend.h:4: In file included from .../nn_tilde/libtorch/include/torch/script.h:3: In file included from .../nn_tilde/libtorch/include/torch/csrc/api/include/torch/types.h:3: In file included from .../nn_tilde/libtorch/include/ATen/ATen.h:9: In file included from .../nn_tilde/libtorch/include/ATen/DeviceGuard.h:3: In file included from .../nn_tilde/libtorch/include/ATen/core/IListRef.h:631: In file included from .../nn_tilde/libtorch/include/ATen/core/IListRef_inl.h:3: In file included from .../nn_tilde/libtorch/include/ATen/core/List.h:490: In file included from .../nn_tilde/libtorch/include/ATen/core/List_inl.h:4: In file included from .../nn_tilde/libtorch/include/ATen/core/ivalue.h:4: In file included from .../nn_tilde/libtorch/include/ATen/core/TensorBody.h:31: .../nn_tilde/libtorch/include/ATen/core/CheckMemoryFormat.h:11:35: error: 'value' is unavailable: introduced in macOS 10.14 options.requires_grad_opt().value() == false, ^ /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/optional:962:28: note: 'value' has been explicitly marked unavailable here constexpr value_type&& value() && ^ In file included from .../nn_tilde/src/backend/backend.cpp:1: In file included from .../nn_tilde/src/backend/backend.h:4: In file included from .../nn_tilde/libtorch/include/torch/script.h:3: In file included from .../nn_tilde/libtorch/include/torch/csrc/api/include/torch/types.h:3: In file included from .../nn_tilde/libtorch/include/ATen/ATen.h:9: In file included from .../nn_tilde/libtorch/include/ATen/DeviceGuard.h:3: In file included from .../nn_tilde/libtorch/include/ATen/core/IListRef.h:631: In file included from .../nn_tilde/libtorch/include/ATen/core/IListRef_inl.h:3: In file included from .../nn_tilde/libtorch/include/ATen/core/List.h:490: In file included from .../nn_tilde/libtorch/include/ATen/core/List_inl.h:4: In file included from .../nn_tilde/libtorch/include/ATen/core/ivalue.h:4: .../nn_tilde/libtorch/include/ATen/core/TensorBody.h:442:26: error: 'value' is unavailable: introduced in macOS 10.14 TORCH_CHECK(inputs.value().size() > 0, "'inputs' argument to backward cannot be empty") ^ /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/optional:953:27: note: 'value' has been explicitly marked unavailable here constexpr value_type& value() & ^ In file included from .../nn_tilde/src/backend/backend.cpp:1: In file included from .../nn_tilde/src/backend/backend.h:4: In file included from .../nn_tilde/libtorch/include/torch/script.h:3: In file included from .../nn_tilde/libtorch/include/torch/csrc/api/include/torch/types.h:3: In file included from .../nn_tilde/libtorch/include/ATen/ATen.h:9: In file included from .../nn_tilde/libtorch/include/ATen/DeviceGuard.h:3: In file included from .../nn_tilde/libtorch/include/ATen/core/IListRef.h:631: In file included from .../nn_tilde/libtorch/include/ATen/core/IListRef_inl.h:3: In file included from .../nn_tilde/libtorch/include/ATen/core/List.h:490: In file included from .../nn_tilde/libtorch/include/ATen/core/List_inl.h:4: In file included from .../nn_tilde/libtorch/include/ATen/core/ivalue.h:4: .../nn_tilde/libtorch/include/ATen/core/TensorBody.h:443:30: error: 'value' is unavailable: introduced in macOS 10.14 this->_backward(inputs.value(), gradient, retain_graph, create_graph); ^ /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/optional:953:27: note: 'value' has been explicitly marked unavailable here constexpr value_type& value() & ^ In file included from .../nn_tilde/src/backend/backend.cpp:1: In file included from .../nn_tilde/src/backend/backend.h:4: In file included from .../nn_tilde/libtorch/include/torch/script.h:3: In file included from .../nn_tilde/libtorch/include/torch/csrc/api/include/torch/types.h:3: In file included from .../nn_tilde/libtorch/include/ATen/ATen.h:9: In file included from .../nn_tilde/libtorch/include/ATen/DeviceGuard.h:3: In file included from .../nn_tilde/libtorch/include/ATen/core/IListRef.h:631: In file included from .../nn_tilde/libtorch/include/ATen/core/IListRef_inl.h:3: In file included from .../nn_tilde/libtorch/include/ATen/core/List.h:490: In file included from .../nn_tilde/libtorch/include/ATen/core/List_inl.h:4: In file included from .../nn_tilde/libtorch/include/ATen/core/ivalue.h:4: In file included from .../nn_tilde/libtorch/include/ATen/core/TensorBody.h:28: .../nn_tilde/libtorch/include/c10/util/OptionalArrayRef.h:131:34: error: 'value' is unavailable: introduced in macOS 10.14 return wrapped_opt_array_ref.value(); ^ .../nn_tilde/libtorch/include/ATen/core/TensorBody.h:5606:152: note: in instantiation of member function 'c10::OptionalArrayRef::operator*' requested here ...padding, output_size.has_value() ? c10::make_optional(c10::fromIntArrayRefSlow(*output_size)) : c10::nullopt); ^ /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/optional:953:27: note: 'value' has been explicitly marked unavailable here constexpr value_type& value() & ^ In file included from .../nn_tilde/src/backend/backend.cpp:1: In file included from .../nn_tilde/src/backend/backend.h:4: In file included from .../nn_tilde/libtorch/include/torch/script.h:3: In file included from .../nn_tilde/libtorch/include/torch/csrc/api/include/torch/types.h:3: In file included from .../nn_tilde/libtorch/include/ATen/ATen.h:9: In file included from .../nn_tilde/libtorch/include/ATen/DeviceGuard.h:3: In file included from .../nn_tilde/libtorch/include/ATen/core/IListRef.h:631: In file included from .../nn_tilde/libtorch/include/ATen/core/IListRef_inl.h:3: In file included from .../nn_tilde/libtorch/include/ATen/core/List.h:490: In file included from .../nn_tilde/libtorch/include/ATen/core/List_inl.h:4: In file included from .../nn_tilde/libtorch/include/ATen/core/ivalue.h:1551: In file included from .../nn_tilde/libtorch/include/ATen/core/ivalue_inl.h:12: .../nn_tilde/libtorch/include/ATen/core/jit_type.h:662:24: error: 'value' is unavailable: introduced in macOS 10.14 prod *= shape[i].value(); ^ /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/optional:944:33: note: 'value' has been explicitly marked unavailable here constexpr value_type const& value() const& ^ In file included from .../nn_tilde/src/backend/backend.cpp:1: In file included from .../nn_tilde/src/backend/backend.h:4: In file included from .../nn_tilde/libtorch/include/torch/script.h:3: In file included from .../nn_tilde/libtorch/include/torch/csrc/api/include/torch/types.h:3: In file included from .../nn_tilde/libtorch/include/ATen/ATen.h:9: In file included from .../nn_tilde/libtorch/include/ATen/DeviceGuard.h:3: In file included from .../nn_tilde/libtorch/include/ATen/core/IListRef.h:631: In file included from .../nn_tilde/libtorch/include/ATen/core/IListRef_inl.h:3: In file included from .../nn_tilde/libtorch/include/ATen/core/List.h:490: In file included from .../nn_tilde/libtorch/include/ATen/core/List_inl.h:4: In file included from .../nn_tilde/libtorch/include/ATen/core/ivalue.h:1551: In file included from .../nn_tilde/libtorch/include/ATen/core/ivalue_inl.h:12: .../nn_tilde/libtorch/include/ATen/core/jit_type.h:1512:28: error: 'value' is unavailable: introduced in macOS 10.14 const auto& n = name().value(); ^ /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/optional:944:33: note: 'value' has been explicitly marked unavailable here constexpr value_type const& value() const& ^ In file included from .../nn_tilde/src/backend/backend.cpp:1: In file included from .../nn_tilde/src/backend/backend.h:4: In file included from .../nn_tilde/libtorch/include/torch/script.h:3: In file included from .../nn_tilde/libtorch/include/torch/csrc/api/include/torch/types.h:3: In file included from .../nn_tilde/libtorch/include/ATen/ATen.h:9: In file included from .../nn_tilde/libtorch/include/ATen/DeviceGuard.h:3: In file included from .../nn_tilde/libtorch/include/ATen/core/IListRef.h:631: In file included from .../nn_tilde/libtorch/include/ATen/core/IListRef_inl.h:3: In file included from .../nn_tilde/libtorch/include/ATen/core/List.h:490: In file included from .../nn_tilde/libtorch/include/ATen/core/List_inl.h:4: In file included from .../nn_tilde/libtorch/include/ATen/core/ivalue.h:1551: In file included from .../nn_tilde/libtorch/include/ATen/core/ivalue_inl.h:12: .../nn_tilde/libtorch/include/ATen/core/jit_type.h:2129:20: error: 'value' is unavailable: introduced in macOS 10.14 return reason_.value(); ^ /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/optional:944:33: note: 'value' has been explicitly marked unavailable here constexpr value_type const& value() const& ^ In file included from .../nn_tilde/src/backend/backend.cpp:1: In file included from .../nn_tilde/src/backend/backend.h:4: In file included from .../nn_tilde/libtorch/include/torch/script.h:3: In file included from .../nn_tilde/libtorch/include/torch/csrc/api/include/torch/types.h:3: In file included from .../nn_tilde/libtorch/include/ATen/ATen.h:9: In file included from .../nn_tilde/libtorch/include/ATen/DeviceGuard.h:3: In file included from .../nn_tilde/libtorch/include/ATen/core/IListRef.h:631: In file included from .../nn_tilde/libtorch/include/ATen/core/IListRef_inl.h:3: In file included from .../nn_tilde/libtorch/include/ATen/core/List.h:490: In file included from .../nn_tilde/libtorch/include/ATen/core/List_inl.h:4: In file included from .../nn_tilde/libtorch/include/ATen/core/ivalue.h:1551: In file included from .../nn_tilde/libtorch/include/ATen/core/ivalue_inl.h:16: In file included from .../nn_tilde/libtorch/include/c10/core/DeviceGuard.h:3: .../nn_tilde/libtorch/include/c10/core/impl/InlineDeviceGuard.h:230:33: error: 'value' is unavailable: introduced in macOS 10.14 guard_.emplace(device_opt.value()); ^ /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/optional:953:27: note: 'value' has been explicitly marked unavailable here constexpr value_type& value() & ^ In file included from .../nn_tilde/src/backend/backend.cpp:1: In file included from .../nn_tilde/src/backend/backend.h:4: In file included from .../nn_tilde/libtorch/include/torch/script.h:3: In file included from .../nn_tilde/libtorch/include/torch/csrc/api/include/torch/types.h:3: In file included from .../nn_tilde/libtorch/include/ATen/ATen.h:9: In file included from .../nn_tilde/libtorch/include/ATen/DeviceGuard.h:3: In file included from .../nn_tilde/libtorch/include/ATen/core/IListRef.h:631: In file included from .../nn_tilde/libtorch/include/ATen/core/IListRef_inl.h:3: In file included from .../nn_tilde/libtorch/include/ATen/core/List.h:490: In file included from .../nn_tilde/libtorch/include/ATen/core/List_inl.h:4: In file included from .../nn_tilde/libtorch/include/ATen/core/ivalue.h:1551: In file included from .../nn_tilde/libtorch/include/ATen/core/ivalue_inl.h:16: In file included from .../nn_tilde/libtorch/include/c10/core/DeviceGuard.h:3: .../nn_tilde/libtorch/include/c10/core/impl/InlineDeviceGuard.h:242:39: error: 'value' is unavailable: introduced in macOS 10.14 guard_.emplace(device_index_opt.value()); ^ /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/optional:953:27: note: 'value' has been explicitly marked unavailable here constexpr value_type& value() & ^ In file included from .../nn_tilde/src/backend/backend.cpp:1: In file included from .../nn_tilde/src/backend/backend.h:4: In file included from .../nn_tilde/libtorch/include/torch/script.h:3: In file included from .../nn_tilde/libtorch/include/torch/csrc/api/include/torch/types.h:3: In file included from .../nn_tilde/libtorch/include/ATen/ATen.h:9: In file included from .../nn_tilde/libtorch/include/ATen/DeviceGuard.h:3: In file included from .../nn_tilde/libtorch/include/ATen/core/IListRef.h:631: In file included from .../nn_tilde/libtorch/include/ATen/core/IListRef_inl.h:3: In file included from .../nn_tilde/libtorch/include/ATen/core/List.h:490: In file included from .../nn_tilde/libtorch/include/ATen/core/List_inl.h:4: In file included from .../nn_tilde/libtorch/include/ATen/core/ivalue.h:1551: In file included from .../nn_tilde/libtorch/include/ATen/core/ivalue_inl.h:20: In file included from .../nn_tilde/libtorch/include/c10/core/StreamGuard.h:3: .../nn_tilde/libtorch/include/c10/core/impl/InlineStreamGuard.h:146:33: error: 'value' is unavailable: introduced in macOS 10.14 guard_.emplace(stream_opt.value()); ^ /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/optional:953:27: note: 'value' has been explicitly marked unavailable here constexpr value_type& value() & ^ In file included from .../nn_tilde/src/backend/backend.cpp:1: In file included from .../nn_tilde/src/backend/backend.h:4: In file included from .../nn_tilde/libtorch/include/torch/script.h:3: In file included from .../nn_tilde/libtorch/include/torch/csrc/api/include/torch/types.h:3: In file included from .../nn_tilde/libtorch/include/ATen/ATen.h:9: .../nn_tilde/libtorch/include/ATen/DeviceGuard.h:27:38: error: 'value' is unavailable: introduced in macOS 10.14 return t.has_value() ? device_of(t.value()) : c10::nullopt; ^ /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/optional:944:33: note: 'value' has been explicitly marked unavailable here constexpr value_type const& value() const& ^ In file included from .../nn_tilde/src/backend/backend.cpp:1: In file included from .../nn_tilde/src/backend/backend.h:4: In file included from .../nn_tilde/libtorch/include/torch/script.h:3: In file included from .../nn_tilde/libtorch/include/torch/csrc/api/include/torch/types.h:3: In file included from .../nn_tilde/libtorch/include/ATen/ATen.h:18: In file included from .../nn_tilde/libtorch/include/ATen/TensorIndexing.h:13: In file included from .../nn_tilde/libtorch/include/ATen/NativeFunctions.h:37: In file included from .../nn_tilde/libtorch/include/ATen/ops/_addmm_activation_native.h:15: In file included from .../nn_tilde/libtorch/include/ATen/ops/_addmm_activation_meta.h:12: .../nn_tilde/libtorch/include/ATen/TensorIterator.h:311:34: error: 'value' is unavailable: introduced in macOS 10.14 return operands_[arg].device.value(); ^ /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/optional:944:33: note: 'value' has been explicitly marked unavailable here constexpr value_type const& value() const& ^ In file included from .../nn_tilde/src/backend/backend.cpp:1: In file included from .../nn_tilde/src/backend/backend.h:4: In file included from .../nn_tilde/libtorch/include/torch/script.h:3: In file included from .../nn_tilde/libtorch/include/torch/csrc/api/include/torch/types.h:3: In file included from .../nn_tilde/libtorch/include/ATen/ATen.h:18: .../nn_tilde/libtorch/include/ATen/TensorIndexing.h:48:37: error: 'value' is unavailable: introduced in macOS 10.14 step_ = std::move(step_index).value(); ^ /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/optional:962:28: note: 'value' has been explicitly marked unavailable here constexpr value_type&& value() && ^ In file included from .../nn_tilde/src/backend/backend.cpp:1: In file included from .../nn_tilde/src/backend/backend.h:4: In file included from .../nn_tilde/libtorch/include/torch/script.h:3: In file included from .../nn_tilde/libtorch/include/torch/csrc/api/include/torch/types.h:3: In file included from .../nn_tilde/libtorch/include/ATen/ATen.h:18: .../nn_tilde/libtorch/include/ATen/TensorIndexing.h:56:39: error: 'value' is unavailable: introduced in macOS 10.14 start_ = std::move(start_index).value(); ^ /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/optional:962:28: note: 'value' has been explicitly marked unavailable here constexpr value_type&& value() && ^ In file included from .../nn_tilde/src/backend/backend.cpp:1: In file included from .../nn_tilde/src/backend/backend.h:4: In file included from .../nn_tilde/libtorch/include/torch/script.h:3: In file included from .../nn_tilde/libtorch/include/torch/csrc/api/include/torch/types.h:3: In file included from .../nn_tilde/libtorch/include/ATen/ATen.h:18: .../nn_tilde/libtorch/include/ATen/TensorIndexing.h:62:37: error: 'value' is unavailable: introduced in macOS 10.14 stop_ = std::move(stop_index).value(); ^ /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/optional:962:28: note: 'value' has been explicitly marked unavailable here constexpr value_type&& value() && ^ In file included from .../nn_tilde/src/backend/backend.cpp:1: In file included from .../nn_tilde/src/backend/backend.h:4: In file included from .../nn_tilde/libtorch/include/torch/script.h:3: In file included from .../nn_tilde/libtorch/include/torch/csrc/api/include/torch/types.h:3: In file included from .../nn_tilde/libtorch/include/ATen/ATen.h:18: .../nn_tilde/libtorch/include/ATen/TensorIndexing.h:243:25: error: 'value' is unavailable: introduced in macOS 10.14 !(maybe_index.value() == 0 && dim == 0 && self_sizes->empty()), ^ /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/optional:953:27: note: 'value' has been explicitly marked unavailable here constexpr value_type& value() & ^ In file included from .../nn_tilde/src/backend/backend.cpp:1: In file included from .../nn_tilde/src/backend/backend.h:4: In file included from .../nn_tilde/libtorch/include/torch/script.h:3: In file included from .../nn_tilde/libtorch/include/torch/csrc/api/include/torch/types.h:3: In file included from .../nn_tilde/libtorch/include/ATen/ATen.h:9: In file included from .../nn_tilde/libtorch/include/ATen/DeviceGuard.h:3: In file included from .../nn_tilde/libtorch/include/ATen/core/IListRef.h:631: In file included from .../nn_tilde/libtorch/include/ATen/core/IListRef_inl.h:3: In file included from .../nn_tilde/libtorch/include/ATen/core/List.h:490: In file included from .../nn_tilde/libtorch/include/ATen/core/List_inl.h:4: In file included from .../nn_tilde/libtorch/include/ATen/core/ivalue.h:4: In file included from .../nn_tilde/libtorch/include/ATen/core/TensorBody.h:28: .../nn_tilde/libtorch/include/c10/util/OptionalArrayRef.h:155:34: error: 'value' is unavailable: introduced in macOS 10.14 return wrapped_opt_array_ref.value(); ^ .../nn_tilde/libtorch/include/ATen/WrapDimUtilsMulti.h:26:26: note: in instantiation of member function 'c10::OptionalArrayRef::value' requested here auto dims = opt_dims.value(); ^ /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/optional:953:27: note: 'value' has been explicitly marked unavailable here constexpr value_type& value() & ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. make[2]: *** [backend/CMakeFiles/backend.dir/backend.cpp.o] Error 1 make[1]: *** [backend/CMakeFiles/backend.dir/all] Error 2 make: *** [all] Error 2 ```
leoauri commented 8 months ago

I have tested with libtorch 2.2.1 and 2.2.0, the only versions I can still download from pytorch. Same error.

cmake version 3.28.1

GNU Make 3.81

leoauri commented 8 months ago

GNU Make 4.4.1 same errors

leoauri commented 8 months ago

I was able to find libtorch 2.1.0 here.

The build gets further and instead ends with error:

[ 11%] Building CXX object backend/CMakeFiles/backend.dir/parsing_utils.cpp.o
[ 22%] Building CXX object backend/CMakeFiles/backend.dir/backend.cpp.o
[ 33%] Linking CXX static library libbackend.a
[ 33%] Built target backend
[ 44%] Building CXX object frontend/maxmsp/nn_tilde/CMakeFiles/nn_tilde.dir/nn_tilde.cpp.o
.../nn_tilde/src/frontend/maxmsp/nn_tilde/nn_tilde.cpp:5:10: fatal error: 'semaphore' file not found
#include <semaphore>
         ^~~~~~~~~~~
1 error generated.
gmake[2]: *** [frontend/maxmsp/nn_tilde/CMakeFiles/nn_tilde.dir/build.make:76: frontend/maxmsp/nn_tilde/CMakeFiles/nn_tilde.dir/nn_tilde.cpp.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:178: frontend/maxmsp/nn_tilde/CMakeFiles/nn_tilde.dir/all] Error 2
gmake: *** [Makefile:91: all] Error 2
leoauri commented 8 months ago

std::counting_semaphore needs Apple Clang >= 13.1.6, so I needed to upgrade Xcode. I used Xcode 15.3 beta 3.

leoauri commented 8 months ago

The libtorch version I found above didn't work for building arm64 builds. Luckily I wanted to build x86 versions anyway, so including -DCMAKE_OSX_ARCHITECTURES=x86_64 in the cmake command, I was able to build successfully.