Difficulty building on macOS

🐛 Describe the bug
I am having difficulty building from source on macOS with an M1 chip. Here is what I've tried:

conda create -n .torchvision_venv python=3.11
conda activate .torchvision_venv
conda install pytorch-nightly::pytorch -c pytorch-nightly
git clone https://github.com/pytorch/vision.git
cd vision
MACOSX_DEPLOYMENT_TARGET=10.9 CC=clang CXX=clang++ python setup.py develop

This results in the following:

Error output
/private/tmp/vision/setup.py:10: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
  from pkg_resources import DistributionNotFound, get_distribution, parse_version
Building wheel torchvision-0.19.0a0+947ae1d
Compiling extensions with following flags:
  FORCE_CUDA: False
  FORCE_MPS: False
  DEBUG: False
  TORCHVISION_USE_PNG: True
  TORCHVISION_USE_JPEG: True
  TORCHVISION_USE_NVJPEG: True
  TORCHVISION_USE_FFMPEG: True
  TORCHVISION_USE_VIDEO_CODEC: True
  NVCC_FLAGS:
Compiling with debug mode OFF
Found PNG library
Building torchvision with PNG image support
  libpng version: 1.6.43
  libpng include path: /opt/homebrew/Cellar/libpng/1.6.43/include/libpng16
Running build on conda-build: False
Running build on conda: True
Building torchvision without JPEG image support
Building torchvision without NVJPEG image support
Building torchvision without ffmpeg support
Building torchvision without video codec support
running develop
/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/setuptools/command/develop.py:40: EasyInstallDeprecationWarning: easy_install command is deprecated.
!!

        ********************************************************************************
        Please avoid running ``setup.py`` and ``easy_install``.
        Instead, use pypa/build, pypa/installer or other
        standards-based tools.

        See https://github.com/pypa/setuptools/issues/917 for details.
        ********************************************************************************

!!
  easy_install.initialize_options(self)
/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
!!

        ********************************************************************************
        Please avoid running ``setup.py`` directly.
        Instead, use pypa/build, pypa/installer or other
        standards-based tools.

        See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
        ********************************************************************************

!!
  self.initialize_options()
running egg_info
creating torchvision.egg-info
writing torchvision.egg-info/PKG-INFO
writing dependency_links to torchvision.egg-info/dependency_links.txt
writing requirements to torchvision.egg-info/requires.txt
writing top-level names to torchvision.egg-info/top_level.txt
writing manifest file 'torchvision.egg-info/SOURCES.txt'
/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/utils/cpp_extension.py:499: UserWarning: Attempted to use ninja as the BuildExtension backend but we could not find ninja.. Falling back to using the slow distutils backend.
  warnings.warn(msg.format('we could not find ninja.'))
reading manifest file 'torchvision.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files matching '__pycache__' found under directory '*'
warning: no previously-included files matching '*.py[co]' found under directory '*'
adding license file 'LICENSE'
writing manifest file 'torchvision.egg-info/SOURCES.txt'
running build_ext
building 'torchvision._C' extension
creating build
creating build/temp.macosx-11.1-arm64-cpython-311
creating build/temp.macosx-11.1-arm64-cpython-311/private
creating build/temp.macosx-11.1-arm64-cpython-311/private/tmp
creating build/temp.macosx-11.1-arm64-cpython-311/private/tmp/vision
creating build/temp.macosx-11.1-arm64-cpython-311/private/tmp/vision/torchvision
creating build/temp.macosx-11.1-arm64-cpython-311/private/tmp/vision/torchvision/csrc
creating build/temp.macosx-11.1-arm64-cpython-311/private/tmp/vision/torchvision/csrc/ops
creating build/temp.macosx-11.1-arm64-cpython-311/private/tmp/vision/torchvision/csrc/ops/autocast
creating build/temp.macosx-11.1-arm64-cpython-311/private/tmp/vision/torchvision/csrc/ops/autograd
creating build/temp.macosx-11.1-arm64-cpython-311/private/tmp/vision/torchvision/csrc/ops/cpu
creating build/temp.macosx-11.1-arm64-cpython-311/private/tmp/vision/torchvision/csrc/ops/mps
creating build/temp.macosx-11.1-arm64-cpython-311/private/tmp/vision/torchvision/csrc/ops/quantized
creating build/temp.macosx-11.1-arm64-cpython-311/private/tmp/vision/torchvision/csrc/ops/quantized/cpu
clang -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /opt/miniconda3/envs/.torchvision_venv/include -arch arm64 -fPIC -O2 -isystem /opt/miniconda3/envs/.torchvision_venv/include -arch arm64 -I/private/tmp/vision/torchvision/csrc -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/torch/csrc/api/include -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/TH -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/THC -I/opt/miniconda3/envs/.torchvision_venv/include/python3.11 -c /private/tmp/vision/torchvision/csrc/ops/autocast/deform_conv2d_kernel.cpp -o build/temp.macosx-11.1-arm64-cpython-311/private/tmp/vision/torchvision/csrc/ops/autocast/deform_conv2d_kernel.o -g0 -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_clang\" -DPYBIND11_STDLIB=\"_libcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1002\" -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++17
In file included from /private/tmp/vision/torchvision/csrc/ops/autocast/deform_conv2d_kernel.cpp:1:
In file included from /private/tmp/vision/torchvision/csrc/ops/autocast/../deform_conv2d.h:3:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/ATen.h:7:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/Context.h:4:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/CPUGeneratorImpl.h:3:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/core/Generator.h:18:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/c10/core/GeneratorImpl.h:8:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/c10/core/TensorImpl.h:13:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/c10/core/Storage.h:6:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/c10/core/StorageImpl.h:8:
/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/c10/core/impl/COWDeleter.h:36:50: error: 'shared_mutex' is unavailable: introduced in macOS 10.12
  using NotLastReference = std::shared_lock<std::shared_mutex>;
                                                 ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/shared_mutex:187:104: note: 'shared_mutex' has been explicitly marked unavailable here
    _LIBCPP_AVAILABILITY_SHARED_MUTEX _LIBCPP_THREAD_SAFETY_ANNOTATION(__capability__("shared_mutex")) shared_mutex {
                                                                                ^
In file included from /private/tmp/vision/torchvision/csrc/ops/autocast/deform_conv2d_kernel.cpp:1:
In file included from /private/tmp/vision/torchvision/csrc/ops/autocast/../deform_conv2d.h:3:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/ATen.h:7:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/Context.h:4:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/CPUGeneratorImpl.h:3:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/core/Generator.h:18:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/c10/core/GeneratorImpl.h:8:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/c10/core/TensorImpl.h:13:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/c10/core/Storage.h:6:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/c10/core/StorageImpl.h:8:
/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/c10/core/impl/COWDeleter.h:53:8: error: 'shared_mutex' is unavailable: introduced in macOS 10.12
  std::shared_mutex mutex_;
       ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/shared_mutex:187:104: note: 'shared_mutex' has been explicitly marked unavailable here
    _LIBCPP_AVAILABILITY_SHARED_MUTEX _LIBCPP_THREAD_SAFETY_ANNOTATION(__capability__("shared_mutex")) shared_mutex {
                                                                                ^
In file included from /private/tmp/vision/torchvision/csrc/ops/autocast/deform_conv2d_kernel.cpp:1:
In file included from /private/tmp/vision/torchvision/csrc/ops/autocast/../deform_conv2d.h:3:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/ATen.h:7:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/Context.h:8:
/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/core/DeprecatedTypeProperties.h:114:34: error: 'value' is unavailable: introduced in macOS 10.13
      Device device = device_opt.value();
                                 ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/optional:1066:27: note: 'value' has been explicitly marked unavailable here
    constexpr value_type& value() &
                          ^
In file included from /private/tmp/vision/torchvision/csrc/ops/autocast/deform_conv2d_kernel.cpp:1:
In file included from /private/tmp/vision/torchvision/csrc/ops/autocast/../deform_conv2d.h:3:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/ATen.h:7:
/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/Context.h:64:27: error: 'value' is unavailable: introduced in macOS 10.13
        ? opt_device_type.value()
                          ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/optional:1066:27: note: 'value' has been explicitly marked unavailable here
    constexpr value_type& value() &
                          ^
In file included from /private/tmp/vision/torchvision/csrc/ops/autocast/deform_conv2d_kernel.cpp:1:
In file included from /private/tmp/vision/torchvision/csrc/ops/autocast/../deform_conv2d.h:3:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/ATen.h:7:
/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/Context.h:65:36: error: 'value' is unavailable: introduced in macOS 10.13
        : at::getAccelerator(true).value();
                                   ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/optional:1075:28: note: 'value' has been explicitly marked unavailable here
    constexpr value_type&& value() &&
                           ^
In file included from /private/tmp/vision/torchvision/csrc/ops/autocast/deform_conv2d_kernel.cpp:1:
In file included from /private/tmp/vision/torchvision/csrc/ops/autocast/../deform_conv2d.h:3:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/ATen.h:9:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/DeviceGuard.h:3:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/core/IListRef.h:631:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/core/IListRef_inl.h:3:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/core/List.h:490:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/core/List_inl.h:4:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/core/ivalue.h:4:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/core/TensorBody.h:28:
/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/c10/util/OptionalArrayRef.h:165:34: error: 'value' is unavailable: introduced in macOS 10.13
    return wrapped_opt_array_ref.value();
                                 ^
/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/c10/util/OptionalArrayRef.h:227:13: note: in instantiation of member function 'c10::OptionalArrayRef<long long>::value' requested here
  return a1.value() == other;
            ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/optional:1057:33: note: 'value' has been explicitly marked unavailable here
    constexpr value_type const& value() const&
                                ^
In file included from /private/tmp/vision/torchvision/csrc/ops/autocast/deform_conv2d_kernel.cpp:1:
In file included from /private/tmp/vision/torchvision/csrc/ops/autocast/../deform_conv2d.h:3:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/ATen.h:9:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/DeviceGuard.h:3:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/core/IListRef.h:631:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/core/IListRef_inl.h:3:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/core/List.h:490:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/core/List_inl.h:4:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/core/ivalue.h:4:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/core/TensorBody.h:31:
/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/core/CheckMemoryFormat.h:11:35: error: 'value' is unavailable: introduced in macOS 10.13
      options.requires_grad_opt().value() == false,
                                  ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/optional:1075:28: note: 'value' has been explicitly marked unavailable here
    constexpr value_type&& value() &&
                           ^
In file included from /private/tmp/vision/torchvision/csrc/ops/autocast/deform_conv2d_kernel.cpp:1:
In file included from /private/tmp/vision/torchvision/csrc/ops/autocast/../deform_conv2d.h:3:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/ATen.h:9:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/DeviceGuard.h:3:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/core/IListRef.h:631:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/core/IListRef_inl.h:3:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/core/List.h:490:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/core/List_inl.h:4:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/core/ivalue.h:4:
/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/core/TensorBody.h:442:26: error: 'value' is unavailable: introduced in macOS 10.13
      TORCH_CHECK(inputs.value().size() > 0, "'inputs' argument to backward cannot be empty")
                         ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/optional:1066:27: note: 'value' has been explicitly marked unavailable here
    constexpr value_type& value() &
                          ^
In file included from /private/tmp/vision/torchvision/csrc/ops/autocast/deform_conv2d_kernel.cpp:1:
In file included from /private/tmp/vision/torchvision/csrc/ops/autocast/../deform_conv2d.h:3:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/ATen.h:9:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/DeviceGuard.h:3:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/core/IListRef.h:631:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/core/IListRef_inl.h:3:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/core/List.h:490:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/core/List_inl.h:4:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/core/ivalue.h:4:
/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/core/TensorBody.h:443:30: error: 'value' is unavailable: introduced in macOS 10.13
      this->_backward(inputs.value(), gradient, retain_graph, create_graph);
                             ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/optional:1066:27: note: 'value' has been explicitly marked unavailable here
    constexpr value_type& value() &
                          ^
In file included from /private/tmp/vision/torchvision/csrc/ops/autocast/deform_conv2d_kernel.cpp:1:
In file included from /private/tmp/vision/torchvision/csrc/ops/autocast/../deform_conv2d.h:3:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/ATen.h:9:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/DeviceGuard.h:3:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/core/IListRef.h:631:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/core/IListRef_inl.h:3:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/core/List.h:490:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/core/List_inl.h:4:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/core/ivalue.h:4:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/core/TensorBody.h:28:
/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/c10/util/OptionalArrayRef.h:137:34: error: 'value' is unavailable: introduced in macOS 10.13
    return wrapped_opt_array_ref.value();
                                 ^
/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/core/TensorBody.h:5624:154: note: in instantiation of member function 'c10::OptionalArrayRef<long long>::operator*' requested here
    return at::_ops::to_padded_tensor::call(const_cast<Tensor&>(*this), padding, output_size.has_value() ? ::std::make_optional(c10::fromIntArrayRefSlow(*output_size)) : ::std::nullopt);
                                                                                ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/optional:1066:27: note: 'value' has been explicitly marked unavailable here
    constexpr value_type& value() &
                          ^
In file included from /private/tmp/vision/torchvision/csrc/ops/autocast/deform_conv2d_kernel.cpp:1:
In file included from /private/tmp/vision/torchvision/csrc/ops/autocast/../deform_conv2d.h:3:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/ATen.h:9:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/DeviceGuard.h:3:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/core/IListRef.h:631:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/core/IListRef_inl.h:3:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/core/List.h:490:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/core/List_inl.h:4:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/core/ivalue.h:1564:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/core/ivalue_inl.h:12:
/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/core/jit_type.h:662:24: error: 'value' is unavailable: introduced in macOS 10.13
      prod *= shape[i].value();
                       ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/optional:1057:33: note: 'value' has been explicitly marked unavailable here
    constexpr value_type const& value() const&
                                ^
In file included from /private/tmp/vision/torchvision/csrc/ops/autocast/deform_conv2d_kernel.cpp:1:
In file included from /private/tmp/vision/torchvision/csrc/ops/autocast/../deform_conv2d.h:3:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/ATen.h:9:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/DeviceGuard.h:3:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/core/IListRef.h:631:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/core/IListRef_inl.h:3:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/core/List.h:490:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/core/List_inl.h:4:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/core/ivalue.h:1564:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/core/ivalue_inl.h:12:
/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/core/jit_type.h:1512:28: error: 'value' is unavailable: introduced in macOS 10.13
    const auto& n = name().value();
                           ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/optional:1057:33: note: 'value' has been explicitly marked unavailable here
    constexpr value_type const& value() const&
                                ^
In file included from /private/tmp/vision/torchvision/csrc/ops/autocast/deform_conv2d_kernel.cpp:1:
In file included from /private/tmp/vision/torchvision/csrc/ops/autocast/../deform_conv2d.h:3:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/ATen.h:9:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/DeviceGuard.h:3:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/core/IListRef.h:631:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/core/IListRef_inl.h:3:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/core/List.h:490:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/core/List_inl.h:4:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/core/ivalue.h:1564:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/core/ivalue_inl.h:12:
/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/core/jit_type.h:2129:20: error: 'value' is unavailable: introduced in macOS 10.13
    return reason_.value();
                   ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/optional:1057:33: note: 'value' has been explicitly marked unavailable here
    constexpr value_type const& value() const&
                                ^
In file included from /private/tmp/vision/torchvision/csrc/ops/autocast/deform_conv2d_kernel.cpp:1:
In file included from /private/tmp/vision/torchvision/csrc/ops/autocast/../deform_conv2d.h:3:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/ATen.h:9:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/DeviceGuard.h:3:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/core/IListRef.h:631:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/core/IListRef_inl.h:3:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/core/List.h:490:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/core/List_inl.h:4:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/core/ivalue.h:1564:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/core/ivalue_inl.h:16:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/c10/core/DeviceGuard.h:5:
/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/c10/core/impl/InlineDeviceGuard.h:229:33: error: 'value' is unavailable: introduced in macOS 10.13
      guard_.emplace(device_opt.value());
                                ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/optional:1066:27: note: 'value' has been explicitly marked unavailable here
    constexpr value_type& value() &
                          ^
In file included from /private/tmp/vision/torchvision/csrc/ops/autocast/deform_conv2d_kernel.cpp:1:
In file included from /private/tmp/vision/torchvision/csrc/ops/autocast/../deform_conv2d.h:3:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/ATen.h:9:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/DeviceGuard.h:3:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/core/IListRef.h:631:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/core/IListRef_inl.h:3:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/core/List.h:490:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/core/List_inl.h:4:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/core/ivalue.h:1564:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/core/ivalue_inl.h:16:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/c10/core/DeviceGuard.h:5:
/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/c10/core/impl/InlineDeviceGuard.h:241:39: error: 'value' is unavailable: introduced in macOS 10.13
      guard_.emplace(device_index_opt.value());
                                      ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/optional:1066:27: note: 'value' has been explicitly marked unavailable here
    constexpr value_type& value() &
                          ^
In file included from /private/tmp/vision/torchvision/csrc/ops/autocast/deform_conv2d_kernel.cpp:1:
In file included from /private/tmp/vision/torchvision/csrc/ops/autocast/../deform_conv2d.h:3:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/ATen.h:9:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/DeviceGuard.h:3:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/core/IListRef.h:631:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/core/IListRef_inl.h:3:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/core/List.h:490:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/core/List_inl.h:4:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/core/ivalue.h:1564:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/core/ivalue_inl.h:20:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/c10/core/StreamGuard.h:5:
/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/c10/core/impl/InlineStreamGuard.h:144:33: error: 'value' is unavailable: introduced in macOS 10.13
      guard_.emplace(stream_opt.value());
                                ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/optional:1066:27: note: 'value' has been explicitly marked unavailable here
    constexpr value_type& value() &
                          ^
In file included from /private/tmp/vision/torchvision/csrc/ops/autocast/deform_conv2d_kernel.cpp:1:
In file included from /private/tmp/vision/torchvision/csrc/ops/autocast/../deform_conv2d.h:3:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/ATen.h:9:
/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/DeviceGuard.h:27:38: error: 'value' is unavailable: introduced in macOS 10.13
  return t.has_value() ? device_of(t.value()) : c10::nullopt;
                                     ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/optional:1057:33: note: 'value' has been explicitly marked unavailable here
    constexpr value_type const& value() const&
                                ^
In file included from /private/tmp/vision/torchvision/csrc/ops/autocast/deform_conv2d_kernel.cpp:1:
In file included from /private/tmp/vision/torchvision/csrc/ops/autocast/../deform_conv2d.h:3:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/ATen.h:18:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/TensorIndexing.h:13:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/NativeFunctions.h:37:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/ops/_addmm_activation_native.h:15:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/ops/_addmm_activation_meta.h:12:
/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/TensorIterator.h:324:34: error: 'value' is unavailable: introduced in macOS 10.13
    return operands_[arg].device.value();
                                 ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/optional:1057:33: note: 'value' has been explicitly marked unavailable here
    constexpr value_type const& value() const&
                                ^
In file included from /private/tmp/vision/torchvision/csrc/ops/autocast/deform_conv2d_kernel.cpp:1:
In file included from /private/tmp/vision/torchvision/csrc/ops/autocast/../deform_conv2d.h:3:
In file included from /opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/ATen.h:18:
/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/ATen/TensorIndexing.h:48:37: error: 'value' is unavailable: introduced in macOS 10.13
      step_ = std::move(step_index).value();
                                    ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/optional:1075:28: 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.
error: command '/usr/bin/clang' failed with exit code 1

If I try to target a higher version of macOS (to combat the 'is unavailable: introduced in macOS '), e.g. _TARGET=11.0:
MACOSX_DEPLOYMENT_TARGET=11.0 CC=clang CXX=clang++ python setup.py develop
I get an error about 'error: invalid argument '-std=c++17' not allowed with 'C')' when trying to use 'dgif_lib.c':

MACOSX_DEPLOYMENT_TARGET=11.0 Error output
<same as before>
building 'torchvision.image' extension
clang -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /opt/miniconda3/envs/.torchvision_venv/include -arch arm64 -fPIC -O2 -isystem /opt/miniconda3/envs/.torchvision_venv/include -arch arm64 -DPNG_FOUND=1 -DJPEG_FOUND=0 -DNVJPEG_FOUND=0 -I/private/tmp/vision/torchvision/csrc -I/opt/homebrew/Cellar/libpng/1.6.43/include/libpng16 -I/private/tmp/vision/torchvision/csrc -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/torch/csrc/api/include -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/TH -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/THC -I/private/tmp/vision/torchvision/csrc/io/image -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/torch/csrc/api/include -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/TH -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/THC -I/opt/miniconda3/envs/.torchvision_venv/include/python3.11 -c /private/tmp/vision/torchvision/csrc/io/image/cpu/common_jpeg.cpp -o build/temp.macosx-11.1-arm64-cpython-311/private/tmp/vision/torchvision/csrc/io/image/cpu/common_jpeg.o -g0 -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_clang\" -DPYBIND11_STDLIB=\"_libcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1002\" -DTORCH_EXTENSION_NAME=image -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++17
clang -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /opt/miniconda3/envs/.torchvision_venv/include -arch arm64 -fPIC -O2 -isystem /opt/miniconda3/envs/.torchvision_venv/include -arch arm64 -DPNG_FOUND=1 -DJPEG_FOUND=0 -DNVJPEG_FOUND=0 -I/private/tmp/vision/torchvision/csrc -I/opt/homebrew/Cellar/libpng/1.6.43/include/libpng16 -I/private/tmp/vision/torchvision/csrc -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/torch/csrc/api/include -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/TH -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/THC -I/private/tmp/vision/torchvision/csrc/io/image -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/torch/csrc/api/include -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/TH -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/THC -I/opt/miniconda3/envs/.torchvision_venv/include/python3.11 -c /private/tmp/vision/torchvision/csrc/io/image/cpu/decode_gif.cpp -o build/temp.macosx-11.1-arm64-cpython-311/private/tmp/vision/torchvision/csrc/io/image/cpu/decode_gif.o -g0 -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_clang\" -DPYBIND11_STDLIB=\"_libcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1002\" -DTORCH_EXTENSION_NAME=image -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++17
clang -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /opt/miniconda3/envs/.torchvision_venv/include -arch arm64 -fPIC -O2 -isystem /opt/miniconda3/envs/.torchvision_venv/include -arch arm64 -DPNG_FOUND=1 -DJPEG_FOUND=0 -DNVJPEG_FOUND=0 -I/private/tmp/vision/torchvision/csrc -I/opt/homebrew/Cellar/libpng/1.6.43/include/libpng16 -I/private/tmp/vision/torchvision/csrc -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/torch/csrc/api/include -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/TH -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/THC -I/private/tmp/vision/torchvision/csrc/io/image -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/torch/csrc/api/include -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/TH -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/THC -I/opt/miniconda3/envs/.torchvision_venv/include/python3.11 -c /private/tmp/vision/torchvision/csrc/io/image/cpu/decode_image.cpp -o build/temp.macosx-11.1-arm64-cpython-311/private/tmp/vision/torchvision/csrc/io/image/cpu/decode_image.o -g0 -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_clang\" -DPYBIND11_STDLIB=\"_libcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1002\" -DTORCH_EXTENSION_NAME=image -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++17
clang -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /opt/miniconda3/envs/.torchvision_venv/include -arch arm64 -fPIC -O2 -isystem /opt/miniconda3/envs/.torchvision_venv/include -arch arm64 -DPNG_FOUND=1 -DJPEG_FOUND=0 -DNVJPEG_FOUND=0 -I/private/tmp/vision/torchvision/csrc -I/opt/homebrew/Cellar/libpng/1.6.43/include/libpng16 -I/private/tmp/vision/torchvision/csrc -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/torch/csrc/api/include -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/TH -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/THC -I/private/tmp/vision/torchvision/csrc/io/image -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/torch/csrc/api/include -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/TH -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/THC -I/opt/miniconda3/envs/.torchvision_venv/include/python3.11 -c /private/tmp/vision/torchvision/csrc/io/image/cpu/decode_jpeg.cpp -o build/temp.macosx-11.1-arm64-cpython-311/private/tmp/vision/torchvision/csrc/io/image/cpu/decode_jpeg.o -g0 -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_clang\" -DPYBIND11_STDLIB=\"_libcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1002\" -DTORCH_EXTENSION_NAME=image -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++17
clang -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /opt/miniconda3/envs/.torchvision_venv/include -arch arm64 -fPIC -O2 -isystem /opt/miniconda3/envs/.torchvision_venv/include -arch arm64 -DPNG_FOUND=1 -DJPEG_FOUND=0 -DNVJPEG_FOUND=0 -I/private/tmp/vision/torchvision/csrc -I/opt/homebrew/Cellar/libpng/1.6.43/include/libpng16 -I/private/tmp/vision/torchvision/csrc -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/torch/csrc/api/include -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/TH -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/THC -I/private/tmp/vision/torchvision/csrc/io/image -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/torch/csrc/api/include -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/TH -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/THC -I/opt/miniconda3/envs/.torchvision_venv/include/python3.11 -c /private/tmp/vision/torchvision/csrc/io/image/cpu/decode_png.cpp -o build/temp.macosx-11.1-arm64-cpython-311/private/tmp/vision/torchvision/csrc/io/image/cpu/decode_png.o -g0 -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_clang\" -DPYBIND11_STDLIB=\"_libcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1002\" -DTORCH_EXTENSION_NAME=image -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++17
clang -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /opt/miniconda3/envs/.torchvision_venv/include -arch arm64 -fPIC -O2 -isystem /opt/miniconda3/envs/.torchvision_venv/include -arch arm64 -DPNG_FOUND=1 -DJPEG_FOUND=0 -DNVJPEG_FOUND=0 -I/private/tmp/vision/torchvision/csrc -I/opt/homebrew/Cellar/libpng/1.6.43/include/libpng16 -I/private/tmp/vision/torchvision/csrc -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/torch/csrc/api/include -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/TH -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/THC -I/private/tmp/vision/torchvision/csrc/io/image -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/torch/csrc/api/include -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/TH -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/THC -I/opt/miniconda3/envs/.torchvision_venv/include/python3.11 -c /private/tmp/vision/torchvision/csrc/io/image/cpu/encode_jpeg.cpp -o build/temp.macosx-11.1-arm64-cpython-311/private/tmp/vision/torchvision/csrc/io/image/cpu/encode_jpeg.o -g0 -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_clang\" -DPYBIND11_STDLIB=\"_libcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1002\" -DTORCH_EXTENSION_NAME=image -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++17
clang -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /opt/miniconda3/envs/.torchvision_venv/include -arch arm64 -fPIC -O2 -isystem /opt/miniconda3/envs/.torchvision_venv/include -arch arm64 -DPNG_FOUND=1 -DJPEG_FOUND=0 -DNVJPEG_FOUND=0 -I/private/tmp/vision/torchvision/csrc -I/opt/homebrew/Cellar/libpng/1.6.43/include/libpng16 -I/private/tmp/vision/torchvision/csrc -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/torch/csrc/api/include -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/TH -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/THC -I/private/tmp/vision/torchvision/csrc/io/image -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/torch/csrc/api/include -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/TH -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/THC -I/opt/miniconda3/envs/.torchvision_venv/include/python3.11 -c /private/tmp/vision/torchvision/csrc/io/image/cpu/encode_png.cpp -o build/temp.macosx-11.1-arm64-cpython-311/private/tmp/vision/torchvision/csrc/io/image/cpu/encode_png.o -g0 -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_clang\" -DPYBIND11_STDLIB=\"_libcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1002\" -DTORCH_EXTENSION_NAME=image -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++17
clang -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /opt/miniconda3/envs/.torchvision_venv/include -arch arm64 -fPIC -O2 -isystem /opt/miniconda3/envs/.torchvision_venv/include -arch arm64 -DPNG_FOUND=1 -DJPEG_FOUND=0 -DNVJPEG_FOUND=0 -I/private/tmp/vision/torchvision/csrc -I/opt/homebrew/Cellar/libpng/1.6.43/include/libpng16 -I/private/tmp/vision/torchvision/csrc -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/torch/csrc/api/include -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/TH -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/THC -I/private/tmp/vision/torchvision/csrc/io/image -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/torch/csrc/api/include -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/TH -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/THC -I/opt/miniconda3/envs/.torchvision_venv/include/python3.11 -c /private/tmp/vision/torchvision/csrc/io/image/cpu/giflib/dgif_lib.c -o build/temp.macosx-11.1-arm64-cpython-311/private/tmp/vision/torchvision/csrc/io/image/cpu/giflib/dgif_lib.o -g0 -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_clang\" -DPYBIND11_STDLIB=\"_libcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1002\" -DTORCH_EXTENSION_NAME=image -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++17
error: invalid argument '-std=c++17' not allowed with 'C'
error: command '/usr/bin/clang' failed with exit code 1

If I try straight python setup.py develop I get a similar error

python setup.py develop Error output
<same as before>
building 'torchvision.image' extension
clang -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /opt/miniconda3/envs/.torchvision_venv/include -arch arm64 -fPIC -O2 -isystem /opt/miniconda3/envs/.torchvision_venv/include -arch arm64 -DPNG_FOUND=1 -DJPEG_FOUND=0 -DNVJPEG_FOUND=0 -I/private/tmp/vision/torchvision/csrc -I/opt/homebrew/Cellar/libpng/1.6.43/include/libpng16 -I/private/tmp/vision/torchvision/csrc -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/torch/csrc/api/include -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/TH -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/THC -I/private/tmp/vision/torchvision/csrc/io/image -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/torch/csrc/api/include -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/TH -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/THC -I/opt/miniconda3/envs/.torchvision_venv/include/python3.11 -c /private/tmp/vision/torchvision/csrc/io/image/cpu/common_jpeg.cpp -o build/temp.macosx-11.1-arm64-cpython-311/private/tmp/vision/torchvision/csrc/io/image/cpu/common_jpeg.o -g0 -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_clang\" -DPYBIND11_STDLIB=\"_libcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1002\" -DTORCH_EXTENSION_NAME=image -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++17
clang -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /opt/miniconda3/envs/.torchvision_venv/include -arch arm64 -fPIC -O2 -isystem /opt/miniconda3/envs/.torchvision_venv/include -arch arm64 -DPNG_FOUND=1 -DJPEG_FOUND=0 -DNVJPEG_FOUND=0 -I/private/tmp/vision/torchvision/csrc -I/opt/homebrew/Cellar/libpng/1.6.43/include/libpng16 -I/private/tmp/vision/torchvision/csrc -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/torch/csrc/api/include -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/TH -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/THC -I/private/tmp/vision/torchvision/csrc/io/image -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/torch/csrc/api/include -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/TH -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/THC -I/opt/miniconda3/envs/.torchvision_venv/include/python3.11 -c /private/tmp/vision/torchvision/csrc/io/image/cpu/decode_gif.cpp -o build/temp.macosx-11.1-arm64-cpython-311/private/tmp/vision/torchvision/csrc/io/image/cpu/decode_gif.o -g0 -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_clang\" -DPYBIND11_STDLIB=\"_libcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1002\" -DTORCH_EXTENSION_NAME=image -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++17
clang -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /opt/miniconda3/envs/.torchvision_venv/include -arch arm64 -fPIC -O2 -isystem /opt/miniconda3/envs/.torchvision_venv/include -arch arm64 -DPNG_FOUND=1 -DJPEG_FOUND=0 -DNVJPEG_FOUND=0 -I/private/tmp/vision/torchvision/csrc -I/opt/homebrew/Cellar/libpng/1.6.43/include/libpng16 -I/private/tmp/vision/torchvision/csrc -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/torch/csrc/api/include -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/TH -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/THC -I/private/tmp/vision/torchvision/csrc/io/image -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/torch/csrc/api/include -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/TH -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/THC -I/opt/miniconda3/envs/.torchvision_venv/include/python3.11 -c /private/tmp/vision/torchvision/csrc/io/image/cpu/decode_image.cpp -o build/temp.macosx-11.1-arm64-cpython-311/private/tmp/vision/torchvision/csrc/io/image/cpu/decode_image.o -g0 -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_clang\" -DPYBIND11_STDLIB=\"_libcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1002\" -DTORCH_EXTENSION_NAME=image -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++17
clang -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /opt/miniconda3/envs/.torchvision_venv/include -arch arm64 -fPIC -O2 -isystem /opt/miniconda3/envs/.torchvision_venv/include -arch arm64 -DPNG_FOUND=1 -DJPEG_FOUND=0 -DNVJPEG_FOUND=0 -I/private/tmp/vision/torchvision/csrc -I/opt/homebrew/Cellar/libpng/1.6.43/include/libpng16 -I/private/tmp/vision/torchvision/csrc -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/torch/csrc/api/include -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/TH -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/THC -I/private/tmp/vision/torchvision/csrc/io/image -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/torch/csrc/api/include -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/TH -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/THC -I/opt/miniconda3/envs/.torchvision_venv/include/python3.11 -c /private/tmp/vision/torchvision/csrc/io/image/cpu/decode_jpeg.cpp -o build/temp.macosx-11.1-arm64-cpython-311/private/tmp/vision/torchvision/csrc/io/image/cpu/decode_jpeg.o -g0 -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_clang\" -DPYBIND11_STDLIB=\"_libcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1002\" -DTORCH_EXTENSION_NAME=image -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++17
clang -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /opt/miniconda3/envs/.torchvision_venv/include -arch arm64 -fPIC -O2 -isystem /opt/miniconda3/envs/.torchvision_venv/include -arch arm64 -DPNG_FOUND=1 -DJPEG_FOUND=0 -DNVJPEG_FOUND=0 -I/private/tmp/vision/torchvision/csrc -I/opt/homebrew/Cellar/libpng/1.6.43/include/libpng16 -I/private/tmp/vision/torchvision/csrc -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/torch/csrc/api/include -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/TH -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/THC -I/private/tmp/vision/torchvision/csrc/io/image -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/torch/csrc/api/include -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/TH -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/THC -I/opt/miniconda3/envs/.torchvision_venv/include/python3.11 -c /private/tmp/vision/torchvision/csrc/io/image/cpu/decode_png.cpp -o build/temp.macosx-11.1-arm64-cpython-311/private/tmp/vision/torchvision/csrc/io/image/cpu/decode_png.o -g0 -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_clang\" -DPYBIND11_STDLIB=\"_libcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1002\" -DTORCH_EXTENSION_NAME=image -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++17
clang -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /opt/miniconda3/envs/.torchvision_venv/include -arch arm64 -fPIC -O2 -isystem /opt/miniconda3/envs/.torchvision_venv/include -arch arm64 -DPNG_FOUND=1 -DJPEG_FOUND=0 -DNVJPEG_FOUND=0 -I/private/tmp/vision/torchvision/csrc -I/opt/homebrew/Cellar/libpng/1.6.43/include/libpng16 -I/private/tmp/vision/torchvision/csrc -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/torch/csrc/api/include -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/TH -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/THC -I/private/tmp/vision/torchvision/csrc/io/image -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/torch/csrc/api/include -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/TH -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/THC -I/opt/miniconda3/envs/.torchvision_venv/include/python3.11 -c /private/tmp/vision/torchvision/csrc/io/image/cpu/encode_jpeg.cpp -o build/temp.macosx-11.1-arm64-cpython-311/private/tmp/vision/torchvision/csrc/io/image/cpu/encode_jpeg.o -g0 -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_clang\" -DPYBIND11_STDLIB=\"_libcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1002\" -DTORCH_EXTENSION_NAME=image -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++17
clang -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /opt/miniconda3/envs/.torchvision_venv/include -arch arm64 -fPIC -O2 -isystem /opt/miniconda3/envs/.torchvision_venv/include -arch arm64 -DPNG_FOUND=1 -DJPEG_FOUND=0 -DNVJPEG_FOUND=0 -I/private/tmp/vision/torchvision/csrc -I/opt/homebrew/Cellar/libpng/1.6.43/include/libpng16 -I/private/tmp/vision/torchvision/csrc -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/torch/csrc/api/include -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/TH -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/THC -I/private/tmp/vision/torchvision/csrc/io/image -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/torch/csrc/api/include -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/TH -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/THC -I/opt/miniconda3/envs/.torchvision_venv/include/python3.11 -c /private/tmp/vision/torchvision/csrc/io/image/cpu/encode_png.cpp -o build/temp.macosx-11.1-arm64-cpython-311/private/tmp/vision/torchvision/csrc/io/image/cpu/encode_png.o -g0 -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_clang\" -DPYBIND11_STDLIB=\"_libcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1002\" -DTORCH_EXTENSION_NAME=image -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++17
clang -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /opt/miniconda3/envs/.torchvision_venv/include -arch arm64 -fPIC -O2 -isystem /opt/miniconda3/envs/.torchvision_venv/include -arch arm64 -DPNG_FOUND=1 -DJPEG_FOUND=0 -DNVJPEG_FOUND=0 -I/private/tmp/vision/torchvision/csrc -I/opt/homebrew/Cellar/libpng/1.6.43/include/libpng16 -I/private/tmp/vision/torchvision/csrc -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/torch/csrc/api/include -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/TH -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/THC -I/private/tmp/vision/torchvision/csrc/io/image -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/torch/csrc/api/include -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/TH -I/opt/miniconda3/envs/.torchvision_venv/lib/python3.11/site-packages/torch/include/THC -I/opt/miniconda3/envs/.torchvision_venv/include/python3.11 -c /private/tmp/vision/torchvision/csrc/io/image/cpu/giflib/dgif_lib.c -o build/temp.macosx-11.1-arm64-cpython-311/private/tmp/vision/torchvision/csrc/io/image/cpu/giflib/dgif_lib.o -g0 -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_clang\" -DPYBIND11_STDLIB=\"_libcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1002\" -DTORCH_EXTENSION_NAME=image -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++17
error: invalid argument '-std=c++17' not allowed with 'C'
error: command '/usr/bin/clang' failed with exit code 1

I have tried a couple other flags (e.g. USE_METAL=1, USE_CUDA=0) but am getting the same errors.
Any help will be greatly appreciated!
Versions
Collecting environment information...
PyTorch version: 2.4.0.dev20240510
Is debug build: False
CUDA used to build PyTorch: None
ROCM used to build PyTorch: N/A
OS: macOS 14.4.1 (arm64)
GCC version: Could not collect
Clang version: 15.0.0 (clang-15<IP_ADDRESS>)
CMake version: Could not collect
Libc version: N/A
Python version: 3.11.9 (main, Apr 19 2024, 11:43:47) [Clang 14.0.6 ] (64-bit runtime)
Python platform: macOS-14.4.1-arm64-arm-64bit
Is CUDA available: False
CUDA runtime version: No CUDA
CUDA_MODULE_LOADING set to: N/A
GPU models and configuration: No CUDA
Nvidia driver version: No CUDA
cuDNN version: No CUDA
HIP runtime version: N/A
MIOpen runtime version: N/A
Is XNNPACK available: True
CPU:
Apple M1 Pro
Versions of relevant libraries:
[pip3] torch==2.4.0.dev20240510
[conda] pytorch                   2.4.0.dev20240510        py3.11_0    pytorch-nightly

As a hack, can you check if the build works if you change the extension of all the .c files in https://github.com/pytorch/vision/tree/main/torchvision/csrc/io/image/cpu/giflib into .cpp (with MACOSX_DEPLOYMENT_TARGET=11.0)

That worked! Thank you 😄

Although now building successfully, all the tests in tests/test_image.py are now failing. I'm seeing this warning:
serWarning: Failed to load image Python extension: 'dlopen(/tmp/vision/torchvision/image.so, 0x0006): symbol not found in flat namespace '_DGifCloseFile''If you don't plan on using image functionality from `torchvision.io`, you can ignore this warning. Otherwise, there might be something wrong with your environment. Did you have `libjpeg` or `libpng` installed before building `torchvision` from source?

I did install libjpeg-turbo and libpng with conda before building from source.
I'm seeing a lot of failures due to AttributeError: '_OpNamespace' 'image' object has no attribute 'read_file' for the attributes read_file, write_file, decode_jpeg, etc.

gif_lib C files breaks the tochvision build also least on Fedora 40 and Mageia 9 for the same 'error: invalid argument '-std=c++17' not allowed with 'C')'  error.
To me it looks like that the cpp_extension.py from pytorch adds the "std=c++17" compilation flag blindly to all type of files, no matter whether the extension is C or C++. I got it now building with this hack, but something better would be needed.
[lamikr@halsey pytorch ((3489a558fc7...))]$ diff -Naur torch/utils/cpp_extension.py /opt/rocm_sdk_612/lib/python3.11/site-packages/torch/utils/cpp_extension.py
--- torch/utils/cpp_extension.py	2024-08-02 18:04:56.673120304 -0700
+++ /opt/rocm_sdk_612/lib/python3.11/site-packages/torch/utils/cpp_extension.py	2024-08-03 01:21:36.356596205 -0700
@@ -568,8 +568,8 @@
cpp_format_prefix = '/{}:' if self.compiler.compiler_type == 'msvc' else '-{}='
cpp_flag_prefix = cpp_format_prefix.format('std')
cpp_flag = cpp_flag_prefix + 'c++17'

       if not any(flag.startswith(cpp_flag_prefix) for flag in cflags):

           cflags.append(cpp_flag)

       #if not any(flag.startswith(cpp_flag_prefix) for flag in cflags):

       #    cflags.append(cpp_flag)

   def unix_cuda_flags(cflags):
       cflags = (COMMON_NVCC_FLAGS +

Did this ever get resolved? I tried running the exact same set of commands listed by @joshestein above, using the nightly current main branch of vision and whether I set MACOSX_DEPLOYMENT_TARGET= 10.9 or 11.0 I still get the error: invalid argument '-std=c++17' not allowed with 'C'

Hi folks.
Looks like the mac compiler is unhappy compiling C files while passing C++ flags, while the other compilers just ignore the flags. Perhaps the fix just a matter of renaming the .c files into c++, or compiling the libgif files with separate flags.
I don't have access to a mac, so it'll be hard for me to debug or fix this one. I'm happy to review a PR though, if you'd like to submit one.

More then happy to give it a go as this would make future contribution helps easier!
I'll give an initial go tonight be capture more detailed outputs for you to review on the PR since no Mac.
On question for you @NicolasHug, on the CONTRIBUTE.md file it calls out for Mac to set target for 10.9. Is there a specific comparability reason or is that just a dated piece of the file?

That part hasn't been updated in a while, there's a good chance it's not needed anymore or needs to be updated!

A quick retry of the previous comments, I think a change of the extension type may be the most straight forward solution.

Its the only package (giflib) with .c extension
Looked at creating a torchvision specific version of the cpp_extension and it seems a bit useless if PyTorch is already maintaining it.
Even with this change of extension type, if (with a big IF) PyTorch made a change to the logic on the flags it applies it would break this fix for Macs.

@NicolasHug I'll get a more formal PR together. Also it appears that everything built fine without a target for MacOSx. I'll make an update in the PR too for the contrib file

I had the same error and found out that ninja was not installed on my mac (there is a warning to that end in the attached build log above). after running
brew install ninja
and rerunning
python setup.py develop
the error disappears


Support deleting table on V1 endpoint + FF fix

Description

This PR adds support to delete a structured table through the V1 endpoint. It also fixes the different places where we check for the feature flag.
Risk

Deploy Plan

Updated @fontanierh.


Support for Post-Quantum Signature Types

https://datatracker.ietf.org/doc/draft-prorock-cose-post-quantum-signatures/

Go impl of Kyber! https://github.com/cloudflare/circl/tree/main/kem

the "kyber crystal" name really does make it hard to take seriously ;)

Opened https://github.com/lestrrat-go/jwx/issues/912 which is needed for support for our jw* code

There is an incompatibility issue between the go and js dilithium suites which must be resolved before test vectors can be implemented https://github.com/cloudflare/circl/issues/435


Support for TypeOrmModule.forRootAsync

Hello,
I'm facing the following issue.
Is TypeOrmModule.forRootAsync supported ?

It should, I don't think the lib is dependent on whether you use forRoot or forRootAsync.
It looks like the AdminEntity isn't discovered by TypeORM, could you paste your orm config here? In particular, did you do this:
// If you use an ormconfig.js
const AdminUser = require('nestjs-admin').AdminUserEntity
module.exports = {
  /* ... */,
  entities: [/* ... */, AdminUser],
  // Alternatively:
  // entities: [/* ... */, 'node_modules/nestjs-admin/**/*.entity.js'],
}

# If you use environment variables
TYPEORM_ENTITIES=your_existing_paths,node_modules/nestjs-admin/**/*.entity.js

I've followed the docs, I have an ormconfig.json file so I added to the entities 'node_modules/nestjs-admin/**/*.entity.js' but then my DataBase is corrupted with the nestjs admin example and test entities.
I've tried to scope better the entities which the typeorm have to had into account using this configuration 'node_modules/nestjs-admin/dist/src/adminUser.entity.js' and it has worked well.
I hope this helps you @Samox.
@williamdclt shall I create a PR with the docs updated?

@almarto Thanks for reporting! It shouldn't happen, the AdminUser should be the only entity in there. I'll fix it ASAP!


Lock down public schema

#Context
idea from @shawnvanderjagt in this PR: https://github.com/navapbc/template-infra/pull/282/files#r1219726316

mmm, on second thought not sure if we really need to spend time on this

There is the public schema (the default schema if no qualifier is used or if the search_path is unmodified). There is also the PUBLIC role that is granted to all users by default. Even if you restrict all the privileges on a user permissions are still inherited via the public role and that allows all users to create objects in the public schema by default. So a readonly role could create a table in public and then due to how table ownership works, write to that table despite being configured as a read only role. Generally the following two commands are run when a new database is spun up:
REVOKE CREATE ON SCHEMA public FROM PUBLIC;
REVOKE ALL ON DATABASE app FROM PUBLIC;
The first command will revoke the privilege of creating objects in the public schema using the PUBLIC role and the second command revokes all privileges from the PUBLIC role so that users will require explicit permission to connect to the db, or do anything for that matter.
https://aws.amazon.com/blogs/database/managing-postgresql-users-and-roles/


MSTestRunner prioritizes VS2017 over VS2019

What You Are Seeing?
When Visual Studio 2019 and 2017 are installed SxS, the MSTestRunner prioritizes the resolution of the lower version MSTest.exe binary.
The change made in PR#2619 should probably have followed the pattern already in use there tool resolution as prioritized version-descending.
Working around by specifying an explicit ToolPath is convenient enough.
new MSTestSettings
{
    ToolPath = new FilePath("C:/Program Files (x86)/Microsoft Visual Studio/2019/Professional/Common7/IDE/MSTest.exe")
}

It does, though, seem like this should be switched.
What is Expected?
I would have expected the tool discovery to prioritize the highest installed version in the absence of any settings property providing affinity.
What version of Cake are you using?
0.37.0
Are you running on a 32 or 64 bit system?
x64
What environment are you running on?  Windows? Linux? Mac?
Windows
Are you running on a CI Server?  If so, which one?
N/A
How Did You Get This To Happen? (Steps to Reproduce)
Attempt to run the MSTest alias against an .orderedtest file.  This would happen in any case where the resolution falls through to the GetAlternativeToolPaths method.
Output Log
Executing task: Run-Smoke-Tests
Executing ordered test 'C:/git/Project/TestCases/bin/debug/TestCases.orderedtest'
Executing: "C:/Program Files (x86)/Microsoft Visual Studio/2017/Enterprise/Common7/IDE/mstest.exe" "/testcontainer:C:/git/Project/TestCases/bin/debug/TestCases.orderedtest" /noisolation
Microsoft (R) Test Execution Command Line Tool Version 15.0.27729.1
Copyright (c) Microsoft Corporation. All rights reserved.

Loading C:/git/Project/TestCases/bin/debug/TestCases.orderedtest...
Starting execution...

I will have a PR momentarily.

fixed by #2753


advance projects

This is for someone who has learned the fundamental Python libraries and some of the external libraries. You should now know how to install external libraries and work with them. So if you are at that level now, you can work on all the advanced Python projects with the source code mentioned below.

All projects added


SDSS-29 Get Schema details

Implement the API changes for getting the schema details
Change the app unit tests to replace the database with a mock
Add a new function to the database module for putting the schema data in the database
Change the integration tests to check that meta-data can be set and retrieved

Finish re-arrange of folders
Time should be UTC format
Comments on tests
Remove surveys collection and replace with search for latest version
Database unit tests should make an assertion


Update/v1.4.5

This PR:

Updates Keptn v1 to v1.4.5 (the final release)
Adds visible EOL warnings to each page

Note: Typo in Git branch name which doesn't affect the PR. update/v1.4.6 should be update/v1.4.5

Can you merge this please? The warning I see is: "The base branch requires all commits to be signed".
Assuming the base is main, I very much doubt every commit there is signed as we were messing around for a long time and I know I didn't sign any!
Both commits in this PR are signed...


Use shim scripts for mCRL2.

After making all changes to the cask:

[x] brew cask audit --download {{cask_file}} is error-free.
[x] brew cask style --fix {{cask_file}} reports no offenses.
[x] The commit message includes the cask’s name and version.

Additionally, if adding a new cask:

[ ] Named the cask according to the token reference.
[ ] brew cask install {{cask_file}} worked successfully.
[ ] brew cask uninstall {{cask_file}} worked successfully.
[ ] Checked there are no open pull requests for the same cask.
[ ] Checked the cask was not already refused in closed issues.
[ ] Checked the cask is submitted to the correct repo.

Error: Checksum for Cask 'mcrl2-nightly' does not match.
Expected: 37b260017a4b7def9b782461555b703fa04522aa845bd5cbc52cd8ed7b9482eb
Actual:   bc00d17bf0b25997f5c46e3d7208fb704d9f090828f665ce70ab985e8f070a9e

As this is a nightly it might be better to use a url do block


[docs] akka: update for change_queue_processor

The changes in https://github.com/tumblr/collins/pull/283 necessitate some changes to the Akka dispatcher config. To reflect those, I've added the change_queue_processor dispatcher config to the docs for Akka configs.
I changed some of the other Akka config docs just to standardize the phrasing, and also remove the part about this being in devel since our next release will include it.
RFR @tumblr/systems

:+1:

lgtm

LGTM


Ability to generate skeleton for Windows service in C++

This will require the Project templates dialogs but I guess I can force it for now.


After training process, how to run dqn_stages with the save_model?

For Turtlebot [ROS 1] Machine Learning: https://emanual.robotis.com/docs/en/platform/turtlebot3/machine_learning/
After training your stages, a model is saved in the save_model directory. For example: If I trained dqn_stage_4 for around 3000 episodes, it saves the trained model in "save_model" folder in several formats such as JSON and h5. Whenever trying to run the dqn_stage_4, it starts from the beginning. If I wanna test my trained model, how can I load the JSON or h5 saved model into code so that I can avoid training from the beginning every time running the code?
@ROBOTIS-David @ROBOTIS-Will

@is0437if
Hi is0437if, thank you for getting my attention to you.
I would like to transfer this issue to our TurtleBot3 issue section as this is a inquiry as to TurtleBot3.
@ROBOTIS-Will  or @ashekim  is going to help your issue, but you might as well fill the template so that a member in the team can give you a better solution.
Thank you :)

Thanks @ROBOTIS-David for forwarding my issue here! I am eagerly waiting for having a reply from @ashekim @ROBOTIS-Will

@is0437if
HI. @is0437if . I'm sorry for the late reply.
I will check and get back to you.
Thank you for your patience


heat_map_analysis without ground truth label

Hi experts,
I noticed that we need the ground truth label to generate the heat map in our dlpy "heat_map_analysis" function.
Is there any function we can use to generate the heat map of a new testing image without ground truth label?
Thanks!

Hi Stacey,
The heat maps are calculated based on the probability of the correct class, which means ground truth labels are necessary.
Thanks,
Maggie

Thanks! I'm going to close it


feat: add a config param to avoid grouping partitions

Which issue does this PR close?

Closes #https://github.com/apache/datafusion/issues/10257
Rationale for this change

What changes are included in this PR?
Add an option to avoid converting Union to Interleave

Are these changes tested?
Yes

Are there any user-facing changes?
No, because by the fault, nothing is changed

@alamb Is this PR is good enough? We do not need to set prefer_existing_union in DF, right? It will be set in IOx?

cc @mustafasrepo and @ozankabak  for your thoughts

Thanks @NGA-TRAN and @alamb, we will take a look and circle back on Monday

I think having dedicated config setting is more verbose and clear (as in prefer_existing_union). If we were to  use prefer_existing_sort that might also work. However, if the condition to replace UnionExec to InterleaveExec is changed to
plan.as_any().is::<UnionExec>()
&& !config.optimizer.prefer_existing_sort
&& can_interleave(children_plans.iter())

this will prefer UnionExec instead of InterleaveExec even if inputs of the UnionExec is  unordered when the config.optimizer.prefer_existing_sort flag is true. Which might be counter intuitive given there is no ordering to preserve. However, config.optimizer.prefer_existing_union does exactly what it says. Hence, it is a bit clearer to me. Hence, I think it is better to proceed with current approach in this PR.
In the future, if we add support for OrderPreservingInterleaveExec (this might be accomplished by replacing CombinedRecordBatchStream with streaming_merge in the fn execute method of the InterleaveExec.)
using the flag config.optimizer.prefer_existing_sort to decide between InterleaveExec and OrderPreservingInterleaveExec might solve the issue. This approach may invalidate the requirement for prefer_existing_union setting. However, until we have this support current approach is much more clear.

Hence, I think it is better to proceed with current approach in this PR.  (as in prefer_existing_union)

Sounds good to me.

In the future, if we add support for OrderPreservingInterleaveExec (this might be accomplished by replacing CombinedRecordBatchStream with streaming_merge in the fn execute method of the InterleaveExec.)

This is an excellent idea, I will file a ticket to track the idea

Since this PR is good to go, merging it in. I am also in the process of filing the follow on work

Filed https://github.com/apache/datafusion/issues/10314 to track order preserving UnionExec


Add --prune-images for upgrade process

What this PR does / why we need it:
This PR add --prune-images for upgrade process.
Which issue(s) this PR fixes:

Fixes #3231
What type of PR is this?

/kind feature
Special notes for your reviewer:
Does this PR introduce a user-facing change? Then add your Release Note here:

Delete unused container images after upgrading the cluster (Mostly the old control plane images)

Documentation:

NONE

/retest

/lgtm
/approve
/hold cancel


feat: Provide LoginSkel on UserPassword.login

Implements action skel LoginSkel correctly with the right action
Modifies PasswordBone to not render tests when test_threshold is set to 0, which is a security improvement, as it is not rendered to non-authenticated users

Hi, I've tested it, works fine.


Update KrishJ4856.json

Updated my profile
Changes:

Modified the names attribute of my links
Added Tags
Added Linkedin Profile

Done 👍

Hey, is it fine now?


ack() on view submission does not accept response_action arguments

Description
The ack() function should accept any value that is acceptable to respond to an incoming HTTP request. In the context of view submissions, there are a few response_actions that are acceptable, but currently do not work because the ack utility is incorrectly typed to take RespondArguments.
The solution is likely to use the AckFn<T> type to describe the additional response_action payloads:

update
push
clear
errors

https://api.slack.com/surfaces/modals/using#modifying
https://api.slack.com/surfaces/modals/using#displaying_errors
Requirements (place an x in each of the [ ])

[x] I've read and understood the Contributing guidelines and have done my best effort to follow them.
[x] I've read and agree to the Code of Conduct.
[x] I've searched for any related issues and avoided creating a duplicate issue.

Bug Report
Filling out the following details about bugs will help us solve your issue sooner.
Reproducible in:
package version: 1.4.1
node version: all
OS version(s): all
Steps to reproduce:

Open a modal
Add a listener for view submission of that modal
Call ack({ response_action: "clear" }) in the listener.

Expected result:
The TypeScript typechecker is happy.
Actual result:
The TypeScript typechecker is sad.

Has this been fixed? How am I supposed to send an error message to a modal upon submission using bolt?

@jacklein Unfortunately, it hasn't been fixed yet.
... I know this is not a preferable workaround but the only thing TypeScript users can do as a workaround is cast the response to any until it has been fixed in future versions.
app.view('callback_id', ({ ack }) => {
    ack({
        response_action: 'errors',
        errors: []
    } as any /* Tentative workaround for https://github.com/slackapi/bolt/issues/305 */);
});

I will take look at this issue. I'm also a big fan of TS.

@seratch I'm using node.js not typescript (I'm not at all familiar with typescript), is there any workaround for plain javascript?

@jacklein In JavaScript, there is no obstacle. You can give respond_action and errors like this:
https://github.com/seratch/bolt-starter/blob/5e1e4e49279856d70a7d4b8824a24d0056b33206/index.js#L143-L146
  const errors = {};
  if (title.length <= 5) {
    errors['input-title'] = 'Title must be longer than 5 characters'
  }
  if (Object.entries(errors).length > 0) {
    ack({
      response_action: 'errors',
      errors: errors
    });
  } else {
    ack(); // close this modal - or also possible to set `response_action: 'clear'`
  }

@seratch You really saved my life with that example code. Thank you, I really appreciate the help.
One potential bug I would like to point out is I had a group of date pickers that looks like:
{
  "type": "actions",
  "block_id": "date_select",
  "elements": [
    {
      "type": "datepicker",
      "action_id": "departure_date",
      "placeholder": {
        "type": "plain_text",
        "text": "Departure date"
      },
    },
    {
      "type": "datepicker",
      "action_id": "return_date",
      "placeholder": {
        "type": "plain_text",
        "text": "Return date"
      },
    },
  ]
}

and the error message wasn't working for date_select. Is this to be expected since it's an action type?

@jacklein
An actions block cannot be a part of view_submission data. Use input blocks instead:
{
    "type": "input",
    "block_id": "departure_date",
    "element": {
        "type": "datepicker",
        "action_id": "input",
        "placeholder": {
            "type": "plain_text",
            "text": "Departure date"
        },
    },
    "label": {
        "type": "plain_text",
        "text": "Departure date",
        "emoji": true
    }
},
{
    "type": "input",
    "block_id": "return_date",
    "element": {
        "type": "datepicker",
        "action_id": "input",
        "placeholder": {
            "type": "plain_text",
            "text": "Return date"
        },
    },
    "label": {
        "type": "plain_text",
        "text": "Return date",
        "emoji": true
    }
}

@seratch Awesome! Thanks again, really appreciate your help!

@seratch Can you please advise? I am building an application and after the modals filter the user actions they arrive on a form. Once the form is submitted I would like some validation applied. I have looked at the above and tried variations BUT I am still not seeing the error payload pushed back to the modal.
Here is the form:
{
"response_action": "update",
"view": {
"type": "modal",
"private_metadata" : "xxxxxxx_[System] Service request",
"callback_id": "view_4",
"title": {
"type": "plain_text",
"text": "xxxxxxx Helpdesk"
},
"submit": {
"type": "plain_text",
"text": "Submit",
"emoji": true
},
"close": {
"type": "plain_text",
"text": "Cancel",
"emoji": true
},
"blocks": [
{
"type": "header",
"text": {
"type": "plain_text",
"text": "XXXXXX Engineering Service Desk",
"emoji": true
}
},
{
"type": "section",
"text": {
"type": "plain_text",
"text": "Use the forms here to raise a ticket to the XXXXXX Engineering Service Desk Team.",
"emoji": true
}
},
{
"type": "section",
"text": {
"type": "plain_text",
"text": "Database Access",
"emoji": true
}
},
{
"type": "input",
"element": {
"type": "plain_text_input",
"action_id": "email",
"placeholder": {
"type": "plain_text",
"text": "Provide your email address here"
}
},
"label": {
"type": "plain_text",
"text": "Raise this request on behalf of*",
"emoji": true
}
},
{
"type": "input",
"element": {
"type": "plain_text_input",
"action_id": "summary",
"placeholder": {
"type": "plain_text",
"text": "Provide a summary of the issue"
}
},
"label": {
"type": "plain_text",
"text": "Summary*",
"emoji": true
}
},
{
"type": "input",
"element": {
"type": "plain_text_input",
"multiline": true,
"action_id": "description",
"placeholder": {
"type": "plain_text",
"text": "Provide a description of the issue"
}
},
"label": {
"type": "plain_text",
"text": "Description*",
"emoji": true
}
},
{
"type": "context",
"elements": [
{
"type": "plain_text",
"text": "Please upload any supporting to the ticket once its created and added to the chat",
"emoji": true
}
]
}
]
}
}
....
Here is the listener for the submission. I am just trying to brute force an error .... so I am not apply a check.
// Save final modal form submits
app.view('view_4', async ({ ack, body, view, client, logger }) => {
const errors = {};
errors['email'] = 'email is not cool!!!!';
ack({
response_action: 'errors',
errors: errors
});
});
Any advice or steering would be appreciated.


Build configuration should succeed on Linux when xcode and xctest plugins applied to project

When a project applies the xcode and xctest plugins, configuration fails on Linux with the following:
FAILURE: Build failed with an exception.

* Where:
Build file '/mnt/hgfs/gradle/test-projects/swift/build.gradle' line: 7

* What went wrong:
A problem occurred evaluating root project 'testApp'.
> Failed to apply plugin [id 'org.gradle.xcode']
   > Task with name 'bundleSwiftTest' not found in root project 'testApp'.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

* Get more help at https://help.gradle.org

BUILD FAILED in 1s

Configuration should always succeed, and execution should fail. In this case, it should be an error to attempt to generate the xcode configuration files on Linux.

Fixed in https://github.com/gradle/gradle/commit/8652282abee547ecd5db8e82b23bd402a8a3fb00


Enabling compilation from source (.move)

It is possible to build GlobalEnv (and then continue with LLVM BE) straight from the Move source.
The new option --compile will compile from .move source and build GlobalEnv.
This is the same GlobalEnv that we assemble from CompiledModule by deserializing from .mv file.
The old options behave without changes.
Only main.rs, cli.rs (for adding new option) and Cargo require changes.

Nice. This is timely and should solve our need to build a full application with all the stdlib files-- without including the source in each test case as we do now.

Yes, that is the purpose.

However, the big missing item here is testing for the new functionality.

I'm working on adding tests for the new option. This should include passing error messages to the user.

I'm approving with assumption tests will be added, but it might be worth getting one more pair of eyes on it before commit.

Thx!

It would also be good to update at least this section in the documentation docs/MoveToLLVM.md:
# Move to llvm-ir compiler

Generates llvm-ir from move bytecode. It provides a bridge between move-bytecode and llvm.
It leverages the llvm’s Rust C bindings (llvm-sys) and can support all targets llvm supports.
For example, it can generate eBPF or executable binaries.

Look about right to me. I agree we need a test harness for this. I would probably do a separate test harness since the input format is different from our single-move-file rbpf-tests, but they can probably share most of their code.

Look about right to me. I agree we need a test harness for this. I would probably do a separate test harness since the input format is different from our single-move-file rbpf-tests, but they can probably share most of their code.

I'm working on a new harness but it will be a different PR. Hope to publish it very soon.
I'll take care of suggested fixes in this new PR.


use int32 in tests where possible

I don't like changing int8 to int32 but we won't be able to run these tests on webgpu without changing it. The rest of the changes avoid implicitly creating long tensors due to numpy/torch initialization which we do in most places already.

webgpu doesn't support int8?

No, only 32 bit scalars and f16 are supported in the spec, https://www.w3.org/TR/WGSL/#host-shareable-types.

I don't like PRs like this. This is not an improvement to tinygrad, this is a weird prereq that's changing tests.
How can you do this stuff while improving tinygrad? If a test doesn't test anything accelerator specific, it should be in test/unit then you don't have to worry about it.


[FEEDBACK] Reload all packages after setVersions

I am writing a web ide, and I use this plugin for the first time. I want to reload all package versions after I setversions. For example, react has been loaded at this time. When setversions, there is no react dependency, so monaco needs to reload The import of react is marked in red

  public setVersions(versions: { [packageName: string]: string }) {
    this.versions = versions;
    this.options.onUpdateVersions?.(versions);
    // TODO reload packages whose version has changed
  }

Or can the respected author tell me the implementation idea of reload, I am willing to submit a pull request for the warehouse

@lukasbach


import/paste markdown into editor

Should be quite easy to support drag and drop of markdown
https://www.tiny.cloud/docs/configure/file-image-upload/

fixed by ab4faf3531405945203f28a70621ae2f96bc7bb0


change DB::listen to Event::Listen to avoid wrong database connection

Motivation

[X] Bug fix

Related Issue(s)
This PR Fixes the Issue #176
Description
This Pull Request changes DB::listen to DB::event to avoid having the wrong connection when you're changing connections on-the-fly (i.e. switching tenants)
Documentation

[X] No

Thank you @danielrona


ChromeDriver Click Not Working

Setup
Windows 7
Excel 2010
Seleniumbasic - Pulled 1 week ago
The Click method doesn't work in the ChromeDriver.  It works in Firefox and IE.  I tried executing Javascript to click it and it doesn't work.  I pulled the latest Chrome driver from the Selenium site and replacing the Seleniumbasic driver and it doesn't work.  This is a simple test case.
`Sub teste3()
Dim strCaptcha As String
Dim SubmitButton As WebElement
Dim InputBox As WebElement
Dim Element As WebElement
Dim driver As ChromeDriver   '**** Driver doesn't click button.
Set driver = New ChromeDriver
'Dim driver As IEDriver        '**** Works on IE
'Set driver = New IEDriver
'Dim driver As FirefoxDriver    '**** Works on Firefox
'Set driver = New FirefoxDriver
driver.Get "http://www.anp.gov.br/preco/prc/Resumo_Semanal_Index.asp"
strCaptcha = driver.FindElementById("letra1").Text
strCaptcha = strCaptcha & driver.FindElementById("letra2").Text
strCaptcha = strCaptcha & driver.FindElementById("letra3").Text
strCaptcha = strCaptcha & driver.FindElementById("letra4").Text
Set InputBox = driver.FindElementById("txtValor")
InputBox.SendKeys (strCaptcha)
Set SubmitButton = driver.FindElementById("image1")
SubmitButton.Click
'rtn = driver.ExecuteScript("arguments[0].click();", SubmitButton)  'Tried Javascript approach - Chrome NO , Firefox YES
driver.Wait (2000)
For Each Element In driver.FindElementsByCss(".table_padrao tr td")
Debug.Print Element.Text
Next Element
End Sub
`

If you issue 2 consecutive click events Chrome seems to work.  I would still like the issue addressed but this is certainly a viable workaround.

This issue seems to be specific to one site and is not a general problem.

Yes, the problem is in site. An unknown script or frame or form or something is making problem and that not allowing to make click in automation or in manual.


MF-571 - Add basic UI in elm

What does this do?
A basic UI  for Mainflux system that has following functionalities:

User creation
Provisioning, editing and removing things
Provisioning, editing and removing channels
Connecting and disconnecting multiple things with multiple channels
Sending messages as thing to multipe channels

Which issue(s) does this PR fix/relate to?
Resolves #571
List any changes that modify/break current functionality
No changes to current functionality
Have you included tests for your changes?
No
Did you document any new/modified functionality?
README with install instructions
Notes

Closing this one as a duplicate of https://github.com/mainflux/mainflux/pull/632 to avoid confusion.


Change $grid-gutter-width to rem from px

This changes $grid-gutter-width from 30px to 1.875rem. The px value makes it hard to calculate things based on $grid-gutter-width when everything else is based on rems.

Hi @pat270 this has come up many times, for example here #23999
The grid is measured in pixels. I don't think we want to measure breakpoints in px and gutters in rem


SRE-1245: Use 'engineer' as server default role, not 'default'.

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


complaints - GET

Codecov Report
Attention: Patch coverage is 88.37209% with 5 lines in your changes missing coverage. Please review.

Project coverage is 74.70%. Comparing base (6deeef3) to head (5f7ec79).
Report is 3 commits behind head on develop.

Files with missing lines
Patch %
Lines

...ance-api/src/compliance_api/resources/complaint.py
62.50%
3 Missing :warning:

...liance-api/src/compliance_api/schemas/complaint.py
95.83%
1 Missing :warning:

...iance-api/src/compliance_api/services/complaint.py
66.66%
1 Missing :warning:

Additional details and impacted files
@@             Coverage Diff             @@
##           develop      #69      +/-   ##
===========================================
+ Coverage    68.75%   74.70%   +5.94%
===========================================
  Files           81       82       +1
  Lines         1466     2514    +1048
  Branches       387        0     -387
===========================================
+ Hits          1008     1878     +870
- Misses         435      636     +201
+ Partials        23        0      -23

Flag
Coverage Δ

compliance-api
74.70% <88.37%> (?)

compliance-web
?

Flags with carried forward coverage won't be shown. Click here to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Benchmark tSVD on DAI

Lets see if we can use tSVD internally!

Choose a set of datasets, they should be diverse (different types of columns, different sizes) but preferably something users would use
Benchmark current DAI impl on those datasets
Switch DAI code to use our tSVD and rerun the benchmarks

Lets see what we get.
Please also have a look at memory footprint - if we notice that for certain datasets we're running OOM we will need a switch in our wrapper to use scikit instead.

Initial benchmarks on tsvd impl in h2o4gpu:


Better widget for container service command

Is your enhancement related to a problem? Please describe.

Now the container command input widget is wired, need another widget to input command

Describe the solution you'd like
Better command list widget, may like

Additional context

Environment

Walrus version: v0.5.1

Test Result:


Document Required Dependencies to Build

We spent way to log tracking down this when building new CI images. When installing only the Microsoft.VisualStudio.Workload.NativeDesktop workloads (Desktop development with C++) using the command line, by default optional/recommended packages are not installed (e.g. when installing for CI). If you attempt to run the bootstrapper, the following is given:
Building vcpkg.exe ...

  TRACKER : error TRK0005: Failed to locate: "CL.exe". The system cannot find the file specified.
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(320,5): error MSB6006: "CL.exe" exited with code 5. [C:\__w\2\s\profiler\vcpkg\toolsrc\vcpkglib\vcpkglib.vcxproj]
C:\__w\2\s\profiler\vcpkg\scripts\bootstrap.ps1 : Building vcpkg.exe failed.
Please ensure you have installed Visual Studio with the Desktop C++ workload
and the Windows SDK for Desktop C++.

This may be caused by the bootstrap script selecting the build version based on the install VS version. For example, when VS2019 is installed, the script selects VC 142. This may not be the case e.g. VS2019 is installed, but is using VC 141.
I think the docs should be updated to specify that the Microsoft.VisualStudio.Component.VC.Tools.x86.x64 (MSVC v142 - VS 2019 C++ x64/x86 build tools (v14.21)) component must be installed along with Desktop development with C++.

@Silvenga, thank you for posting this issue!
It mentioned in https://github.com/microsoft/vcpkg/blob/master/docs/users/triplets.md#VCPKG_VISUAL_STUDIO_PATH.
VCPKG_PLATFORM_TOOLSET
Specifies the VS-based C/C++ compiler toolchain to use.
See VCPKG_VISUAL_STUDIO_PATH for the full selection algorithm.
Valid settings:
The Visual Studio 2019 platform toolset is v142.
The Visual Studio 2017 platform toolset is v141.
The Visual Studio 2015 platform toolset is v140.