The Swift Package Index logo.Swift Package Index

Build Information

Failed to build mlx-swift, reference 0.33.0 (7ede4f), with Swift 6.3 for Linux on 30 Oct 2026 09:34:17 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344844-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:linux-6.3-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 5.1.4
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ml-explore/mlx-swift.git
Reference: 0.33.0
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/ml-explore/mlx-swift
 * tag               0.33.0     -> FETCH_HEAD
HEAD is now at 7ede4fd Fix firstError (#513)
Submodule path 'Source/Cmlx/mlx': checked out '36969c094354086e15d2a327a9c50feb20b9cf11'
Submodule path 'Source/Cmlx/mlx-c': checked out 'a26f2d584a14ec619ae8db9a09be03becd47598a'
Submodule 'submodules/mlx' (https://github.com/ml-explore/mlx) registered for path 'Source/Cmlx/mlx'
Submodule 'submodules/mlx-c' (https://github.com/ml-explore/mlx-c) registered for path 'Source/Cmlx/mlx-c'
Cloning into '/host/spi-builder-workspace/Source/Cmlx/mlx'...
Cloning into '/host/spi-builder-workspace/Source/Cmlx/mlx-c'...
Cloned https://github.com/ml-explore/mlx-swift.git
Revision (git rev-parse @):
7ede4fd6d05f63305c1c0ebf4f8c1909a637c574
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/ml-explore/mlx-swift.git at 0.33.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.3
Building package at path:  $PWD
https://github.com/ml-explore/mlx-swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344844-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:linux-6.3-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
linux-6.3-latest: Pulling from saguaro1/spi-images
Digest: sha256:caade26a8dd5b9e237c5c17486feb4a843d699145c768feadca9f1b811831234
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:linux-6.3-latest
Fetching https://github.com/apple/swift-numerics
Fetching https://github.com/apple/swift-argument-parser
[1/6766] Fetching swift-numerics
[6632/26079] Fetching swift-numerics, swift-argument-parser
Fetched https://github.com/apple/swift-numerics from cache (0.80s)
Fetched https://github.com/apple/swift-argument-parser from cache (0.80s)
Computing version for https://github.com/apple/swift-numerics
Computed https://github.com/apple/swift-numerics at 1.1.1 (0.98s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.8.2 (0.16s)
Creating working copy for https://github.com/apple/swift-numerics
Working copy of https://github.com/apple/swift-numerics resolved at 1.1.1
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.8.2
warning: 'spi-builder-workspace': Invalid Exclude '/host/spi-builder-workspace/Source/Cmlx/mlx/CODE_OF_CONDUCT.md': File not found.
warning: 'spi-builder-workspace': Invalid Exclude '/host/spi-builder-workspace/Source/Cmlx/mxl/mlx/backend/metal/cross_entropy.cpp': File not found.
warning: 'spi-builder-workspace': Invalid Exclude '/host/spi-builder-workspace/Source/Cmlx/mlx/build': File not found.
[0/9] Write sources
[3/9] Write swift-version-24593BA9C3E375BF.txt
[5/11] Emitting module ArgumentParserToolInfo
[6/11] Compiling ArgumentParserToolInfo ToolInfo.swift
[7/12] Wrapping AST for ArgumentParserToolInfo for debugging
[9/59] Emitting module ArgumentParser
[10/65] Compiling ArgumentParser ParentCommand.swift
[11/65] Compiling ArgumentParser AsyncParsableCommand.swift
[12/65] Compiling ArgumentParser CommandConfiguration.swift
[13/65] Compiling ArgumentParser CommandGroup.swift
[14/65] Compiling ArgumentParser EnumerableFlag.swift
[15/65] Compiling ArgumentParser ExpressibleByArgument.swift
[16/65] Compiling ArgumentParser ParsableArguments.swift
[17/65] Compiling ArgumentParser Name.swift
[18/65] Compiling ArgumentParser Parsed.swift
[19/65] Compiling ArgumentParser ParsedValues.swift
[20/65] Compiling ArgumentParser ParserError.swift
[21/65] Compiling ArgumentParser SplitArguments.swift
[22/65] Compiling ArgumentParser DumpHelpGenerator.swift
[23/65] Compiling ArgumentParser ArgumentVisibility.swift
[24/65] Compiling ArgumentParser CompletionKind.swift
[25/65] Compiling ArgumentParser Errors.swift
[26/65] Compiling ArgumentParser Flag.swift
[27/65] Compiling ArgumentParser NameSpecification.swift
[28/65] Compiling ArgumentParser Option.swift
[29/65] Compiling ArgumentParser OptionGroup.swift
[30/65] Compiling ArgumentParser AsyncCompletionsValidator.swift
[31/65] Compiling ArgumentParser CodingKeyValidator.swift
[32/65] Compiling ArgumentParser NonsenseFlagsValidator.swift
[33/65] Compiling ArgumentParser ParsableArgumentsValidation.swift
[34/65] Compiling ArgumentParser PositionalArgumentsValidator.swift
[35/65] Compiling ArgumentParser UniqueNamesValidator.swift
[36/65] Compiling ArgumentParser BashCompletionsGenerator.swift
[37/65] Compiling ArgumentParser CompletionsGenerator.swift
[38/65] Compiling ArgumentParser FishCompletionsGenerator.swift
[39/65] Compiling ArgumentParser ZshCompletionsGenerator.swift
[40/65] Compiling ArgumentParser Argument.swift
[41/65] Compiling ArgumentParser ArgumentDiscussion.swift
[42/65] Compiling ArgumentParser ArgumentHelp.swift
[43/65] Compiling ArgumentParser Mutex.swift
[44/65] Compiling ArgumentParser Platform.swift
[45/65] Compiling ArgumentParser SequenceExtensions.swift
[46/65] Compiling ArgumentParser StringExtensions.swift
[47/65] Compiling ArgumentParser SwiftExtensions.swift
[48/65] Compiling ArgumentParser Tree.swift
[49/65] Compiling ArgumentParser HelpCommand.swift
[50/65] Compiling ArgumentParser HelpGenerator.swift
[51/65] Compiling ArgumentParser MessageInfo.swift
[52/65] Compiling ArgumentParser UsageGenerator.swift
[53/65] Compiling ArgumentParser CollectionExtensions.swift
[54/65] Compiling ArgumentParser Foundation.swift
[55/65] Compiling ArgumentParser ParsableCommand.swift
[56/65] Compiling ArgumentParser ArgumentDecoder.swift
[57/65] Compiling ArgumentParser ArgumentDefinition.swift
[58/65] Compiling ArgumentParser ArgumentSet.swift
[59/65] Compiling ArgumentParser CommandParser.swift
[60/65] Compiling ArgumentParser InputKey.swift
[61/65] Compiling ArgumentParser InputOrigin.swift
[62/66] Wrapping AST for ArgumentParser for debugging
[64/72] Compiling encuda encuda.swift
[65/72] Emitting module encuda
[66/72] Compiling encuda encuda-compile.swift
[67/72] Compiling encuda encuda-error.swift
[68/72] Compiling encuda encuda-link.swift
[69/72] Compiling encuda encuda-utils.swift
[70/73] Wrapping AST for encuda for debugging
[71/73] Write Objects.LinkFileList
[72/73] Linking encuda-tool
warning: 'spi-builder-workspace': found 3 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/Source/Examples/CustomFunctionExampleSimple.swift
    /host/spi-builder-workspace/Source/Examples/CustomFunctionExample.swift
    /host/spi-builder-workspace/Source/Examples/Example1.swift
warning: 'spi-builder-workspace': found 3 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/Source/Examples/CustomFunctionExampleSimple.swift
    /host/spi-builder-workspace/Source/Examples/CustomFunctionExample.swift
    /host/spi-builder-workspace/Source/Examples/Tutorial.swift
warning: 'spi-builder-workspace': found 3 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/Source/Examples/Example1.swift
    /host/spi-builder-workspace/Source/Examples/CustomFunctionExample.swift
    /host/spi-builder-workspace/Source/Examples/Tutorial.swift
warning: 'spi-builder-workspace': found 3 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/Source/Examples/CustomFunctionExampleSimple.swift
    /host/spi-builder-workspace/Source/Examples/Example1.swift
    /host/spi-builder-workspace/Source/Examples/Tutorial.swift
[1/1] Compiling plugin CudaBuild
[2/2] Compiling plugin GenerateManual
[3/3] Compiling plugin GenerateDoccReference
Building for debugging...
[3/440] Write swift-version-24593BA9C3E375BF.txt
[4/440] Write sources
[6/440] Compiling _NumericsShims _NumericsShims.c
[7/440] Write sources
[10/451] Compiling RealModule ElementaryFunctions.swift
[11/451] Compiling RealModule Float+Real.swift
[12/452] Compiling RealModule Float80+Real.swift
[13/452] Compiling RealModule Real.swift
[14/452] Compiling RealModule Float16+Real.swift
[15/452] Compiling RealModule RealFunctions.swift
[16/452] Compiling RealModule AugmentedArithmetic.swift
[17/452] Compiling RealModule Double+Real.swift
[18/452] Compiling RealModule AlgebraicField.swift
[19/452] Compiling RealModule ApproximateEquality.swift
[20/452] Compiling RealModule RelaxedArithmetic.swift
[21/452] Emitting module RealModule
[22/453] Wrapping AST for RealModule for debugging
[23/453] Write sources
[37/464] Compiling ComplexModule Complex+Numeric.swift
[38/465] Compiling ComplexModule Complex+Hashable.swift
[39/465] Compiling ComplexModule Complex+IntegerLiteral.swift
[40/465] Compiling ComplexModule Complex+StringConvertible.swift
[41/465] Compiling ComplexModule Polar.swift
[42/465] Compiling ComplexModule Complex.swift
[43/465] Compiling ComplexModule Scale.swift
[44/465] Compiling ComplexModule Complex+AdditiveArithmetic.swift
[45/465] Compiling ComplexModule Complex+AlgebraicField.swift
[46/465] Emitting module ComplexModule
[47/465] Compiling ComplexModule Complex+Codable.swift
[48/465] Compiling ComplexModule Complex+ElementaryFunctions.swift
[49/466] Compiling version.cpp
[51/468] Compiling Numerics Numerics.swift
[52/468] Emitting module Numerics
[53/469] Wrapping AST for ComplexModule for debugging
[54/469] Wrapping AST for Numerics for debugging
[55/469] Compiling cuda.cpp
[56/469] Compiling compile.cpp
[57/469] Compiling distributed_group.cpp
[58/469] Compiling distributed.cpp
[59/469] Compiling device.cpp
[60/469] Compiling utils.cpp
[61/469] Compiling closure.cpp
[62/469] Compiling array.cpp
[63/469] Compiling stream.cpp
[64/469] Compiling memory.cpp
[65/469] Compiling scheduler.cpp
[66/469] Compiling random.cpp
[67/469] Compiling linalg.cpp
[68/469] Compiling no_gguf.cpp
[69/469] Compiling transforms.cpp
[70/469] Compiling load.cpp
[71/469] Compiling primitives.cpp
[72/469] Compiling graph_utils.cpp
[73/469] Compiling fft.cpp
[74/469] Compiling dtype.cpp
[75/469] Compiling dtype_utils.cpp
[76/469] Compiling safetensors.cpp
[77/469] Compiling fast.cpp
[78/469] Compiling utils.cpp
[79/469] Compiling einsum.cpp
[80/469] Compiling ops.cpp
[81/469] Compiling no_mpi.cpp
[82/469] Compiling no_nccl.cpp
[83/469] Compiling primitives.cpp
[84/469] Compiling no_jaccl.cpp
[85/469] Compiling ops.cpp
[85/469] Compiling device.cpp
[87/469] Compiling no_metal.cpp
[88/469] Compiling distributed.cpp
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/backend/metal/cross_entropy.cpp:5:
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/backend/metal/device.h:5:10: fatal error: 'Metal/Metal.hpp' file not found
    5 | #include <Metal/Metal.hpp>
      |          ^~~~~~~~~~~~~~~~~
1 error generated.
[89/469] Compiling cross_entropy.cpp
[89/469] Compiling worker.cpp
[89/469] Compiling copy.cpp
[89/469] Compiling slicing.cpp
[89/469] Compiling primitives.cpp
[89/469] Compiling compile.cpp
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:19:
In file included from /host/spi-builder-workspace/Source/Cmlx/json/single_include/nlohmann/json.hpp:23:
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:552:2: warning: 'result_of<std::_Bind<void (RingGroup::*(mlx::core::distributed::ring::RingGroup *, bool *, bool *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<bool>))(bool *, bool *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<bool>)> &()>' is deprecated: use 'std::invoke_result' instead [-Wdeprecated-declarations]
  552 |         using _Res_type_impl
      |         ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:556:20: note: in instantiation of template type alias '_Res_type_impl' requested here
  556 |         using _Res_type = _Res_type_impl<_Functor, _CallArgs, _Bound_args...>;
      |                           ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:555:7: note: in instantiation of template type alias '_Res_type' requested here
  555 |       template<typename _CallArgs>
      |       ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:881:5: note: in instantiation of template class 'std::_Bind<std::_Bind<void (RingGroup::*(mlx::core::distributed::ring::RingGroup *, bool *, bool *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<bool>))(bool *, bool *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<bool>)> ()>' requested here
  881 |     bind(_Func&& __f, _BoundArgs&&... __args)
      |     ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/threadpool.h:65:12: note: in instantiation of function template specialization 'std::bind<std::_Bind<void (RingGroup::*(mlx::core::distributed::ring::RingGroup *, bool *, bool *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<bool>))(bool *, bool *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<bool>)>>' requested here
   65 |       std::bind(std::forward<F>(f), std::forward<Args>(args)...));
      |            ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:611:37: note: in instantiation of function template specialization 'ThreadPool::enqueue<std::_Bind<void (RingGroup::*(mlx::core::distributed::ring::RingGroup *, bool *, bool *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<bool>))(bool *, bool *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<bool>)>>' requested here
  611 |         all_sums.emplace_back(pool_.enqueue(
      |                                     ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:446:7: note: in instantiation of function template specialization 'mlx::core::distributed::ring::RingGroup::all_reduce<bool, mlx::core::distributed::detail::SumOp<bool>>' requested here
  446 |       all_reduce<T>(input, output, stream, detail::SumOp<T>());
      |       ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:444:5: note: in instantiation of function template specialization 'mlx::core::dispatch_all_types<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:444:40)>' requested here
  444 |     dispatch_all_types(output.dtype(), [&](auto type_tag) {
      |     ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/type_traits:2590:9: note: 'result_of<std::_Bind<void (RingGroup::*(mlx::core::distributed::ring::RingGroup *, bool *, bool *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<bool>))(bool *, bool *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<bool>)> &()>' has been explicitly marked deprecated here
 2590 |     { } _GLIBCXX17_DEPRECATED_SUGGEST("std::invoke_result");
      |         ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13/bits/c++config.h:122:45: note: expanded from macro '_GLIBCXX17_DEPRECATED_SUGGEST'
  122 | # define _GLIBCXX17_DEPRECATED_SUGGEST(ALT) _GLIBCXX_DEPRECATED_SUGGEST(ALT)
      |                                             ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13/bits/c++config.h:98:19: note: expanded from macro '_GLIBCXX_DEPRECATED_SUGGEST'
   98 |   __attribute__ ((__deprecated__ ("use '" ALT "' instead")))
      |                   ^
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:19:
In file included from /host/spi-builder-workspace/Source/Cmlx/json/single_include/nlohmann/json.hpp:23:
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:552:2: warning: 'result_of<std::_Bind<void (RingGroup::*(mlx::core::distributed::ring::RingGroup *, bool *, bool *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<bool>))(bool *, bool *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<bool>)> &()>' is deprecated: use 'std::invoke_result' instead [-Wdeprecated-declarations]
  552 |         using _Res_type_impl
      |         ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:556:2: note: in instantiation of template type alias '_Res_type_impl' requested here
  556 |         using _Res_type = _Res_type_impl<_Functor, _CallArgs, _Bound_args...>;
      |         ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:586:28: note: in instantiation of template type alias '_Res_type' requested here
  586 |                typename _Result = _Res_type<tuple<_Args...>>>
      |                                   ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:881:5: note: in instantiation of template class 'std::_Bind<std::_Bind<void (RingGroup::*(mlx::core::distributed::ring::RingGroup *, bool *, bool *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<bool>))(bool *, bool *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<bool>)> ()>' requested here
  881 |     bind(_Func&& __f, _BoundArgs&&... __args)
      |     ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/threadpool.h:65:12: note: in instantiation of function template specialization 'std::bind<std::_Bind<void (RingGroup::*(mlx::core::distributed::ring::RingGroup *, bool *, bool *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<bool>))(bool *, bool *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<bool>)>>' requested here
   65 |       std::bind(std::forward<F>(f), std::forward<Args>(args)...));
      |            ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:611:37: note: in instantiation of function template specialization 'ThreadPool::enqueue<std::_Bind<void (RingGroup::*(mlx::core::distributed::ring::RingGroup *, bool *, bool *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<bool>))(bool *, bool *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<bool>)>>' requested here
  611 |         all_sums.emplace_back(pool_.enqueue(
      |                                     ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:446:7: note: in instantiation of function template specialization 'mlx::core::distributed::ring::RingGroup::all_reduce<bool, mlx::core::distributed::detail::SumOp<bool>>' requested here
  446 |       all_reduce<T>(input, output, stream, detail::SumOp<T>());
      |       ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:444:5: note: in instantiation of function template specialization 'mlx::core::dispatch_all_types<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:444:40)>' requested here
  444 |     dispatch_all_types(output.dtype(), [&](auto type_tag) {
      |     ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/type_traits:2590:9: note: 'result_of<std::_Bind<void (RingGroup::*(mlx::core::distributed::ring::RingGroup *, bool *, bool *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<bool>))(bool *, bool *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<bool>)> &()>' has been explicitly marked deprecated here
 2590 |     { } _GLIBCXX17_DEPRECATED_SUGGEST("std::invoke_result");
      |         ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13/bits/c++config.h:122:45: note: expanded from macro '_GLIBCXX17_DEPRECATED_SUGGEST'
  122 | # define _GLIBCXX17_DEPRECATED_SUGGEST(ALT) _GLIBCXX_DEPRECATED_SUGGEST(ALT)
      |                                             ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13/bits/c++config.h:98:19: note: expanded from macro '_GLIBCXX_DEPRECATED_SUGGEST'
   98 |   __attribute__ ((__deprecated__ ("use '" ALT "' instead")))
      |                   ^
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:19:
In file included from /host/spi-builder-workspace/Source/Cmlx/json/single_include/nlohmann/json.hpp:23:
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:552:2: warning: 'result_of<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:565:22) &()>' is deprecated: use 'std::invoke_result' instead [-Wdeprecated-declarations]
  552 |         using _Res_type_impl
      |         ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:556:20: note: in instantiation of template type alias '_Res_type_impl' requested here
  556 |         using _Res_type = _Res_type_impl<_Functor, _CallArgs, _Bound_args...>;
      |                           ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:555:7: note: in instantiation of template type alias '_Res_type' requested here
  555 |       template<typename _CallArgs>
      |       ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:881:5: note: in instantiation of template class 'std::_Bind<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:565:22) ()>' requested here
  881 |     bind(_Func&& __f, _BoundArgs&&... __args)
      |     ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/backend/cpu/encoder.h:46:22: note: in instantiation of function template specialization 'std::bind<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:565:22)>' requested here
   46 |     auto task = std::bind(std::forward<F>(f), std::forward<Args>(args)...);
      |                      ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:565:13: note: in instantiation of function template specialization 'mlx::core::cpu::CommandEncoder::dispatch<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:565:22)>' requested here
  565 |     encoder.dispatch([in_ptr, out_ptr, size = input.size(), this, reduce_op]() {
      |             ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:446:7: note: in instantiation of function template specialization 'mlx::core::distributed::ring::RingGroup::all_reduce<bool, mlx::core::distributed::detail::SumOp<bool>>' requested here
  446 |       all_reduce<T>(input, output, stream, detail::SumOp<T>());
      |       ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:444:5: note: in instantiation of function template specialization 'mlx::core::dispatch_all_types<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:444:40)>' requested here
  444 |     dispatch_all_types(output.dtype(), [&](auto type_tag) {
      |     ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/type_traits:2590:9: note: 'result_of<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:565:22) &()>' has been explicitly marked deprecated here
 2590 |     { } _GLIBCXX17_DEPRECATED_SUGGEST("std::invoke_result");
      |         ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13/bits/c++config.h:122:45: note: expanded from macro '_GLIBCXX17_DEPRECATED_SUGGEST'
  122 | # define _GLIBCXX17_DEPRECATED_SUGGEST(ALT) _GLIBCXX_DEPRECATED_SUGGEST(ALT)
      |                                             ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13/bits/c++config.h:98:19: note: expanded from macro '_GLIBCXX_DEPRECATED_SUGGEST'
   98 |   __attribute__ ((__deprecated__ ("use '" ALT "' instead")))
      |                   ^
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:19:
In file included from /host/spi-builder-workspace/Source/Cmlx/json/single_include/nlohmann/json.hpp:23:
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:552:2: warning: 'result_of<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:565:22) &()>' is deprecated: use 'std::invoke_result' instead [-Wdeprecated-declarations]
  552 |         using _Res_type_impl
      |         ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:556:2: note: in instantiation of template type alias '_Res_type_impl' requested here
  556 |         using _Res_type = _Res_type_impl<_Functor, _CallArgs, _Bound_args...>;
      |         ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:586:28: note: in instantiation of template type alias '_Res_type' requested here
  586 |                typename _Result = _Res_type<tuple<_Args...>>>
      |                                   ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:881:5: note: in instantiation of template class 'std::_Bind<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:565:22) ()>' requested here
  881 |     bind(_Func&& __f, _BoundArgs&&... __args)
      |     ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/backend/cpu/encoder.h:46:22: note: in instantiation of function template specialization 'std::bind<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:565:22)>' requested here
   46 |     auto task = std::bind(std::forward<F>(f), std::forward<Args>(args)...);
      |                      ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:565:13: note: in instantiation of function template specialization 'mlx::core::cpu::CommandEncoder::dispatch<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:565:22)>' requested here
  565 |     encoder.dispatch([in_ptr, out_ptr, size = input.size(), this, reduce_op]() {
      |             ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:446:7: note: in instantiation of function template specialization 'mlx::core::distributed::ring::RingGroup::all_reduce<bool, mlx::core::distributed::detail::SumOp<bool>>' requested here
  446 |       all_reduce<T>(input, output, stream, detail::SumOp<T>());
      |       ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:444:5: note: in instantiation of function template specialization 'mlx::core::dispatch_all_types<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:444:40)>' requested here
  444 |     dispatch_all_types(output.dtype(), [&](auto type_tag) {
      |     ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/type_traits:2590:9: note: 'result_of<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:565:22) &()>' has been explicitly marked deprecated here
 2590 |     { } _GLIBCXX17_DEPRECATED_SUGGEST("std::invoke_result");
      |         ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13/bits/c++config.h:122:45: note: expanded from macro '_GLIBCXX17_DEPRECATED_SUGGEST'
  122 | # define _GLIBCXX17_DEPRECATED_SUGGEST(ALT) _GLIBCXX_DEPRECATED_SUGGEST(ALT)
      |                                             ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13/bits/c++config.h:98:19: note: expanded from macro '_GLIBCXX_DEPRECATED_SUGGEST'
   98 |   __attribute__ ((__deprecated__ ("use '" ALT "' instead")))
      |                   ^
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:19:
In file included from /host/spi-builder-workspace/Source/Cmlx/json/single_include/nlohmann/json.hpp:23:
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:552:2: warning: 'result_of<std::_Bind<void (RingGroup::*(mlx::core::distributed::ring::RingGroup *, signed char *, signed char *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<signed char>))(signed char *, signed char *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<signed char>)> &()>' is deprecated: use 'std::invoke_result' instead [-Wdeprecated-declarations]
  552 |         using _Res_type_impl
      |         ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:556:20: note: in instantiation of template type alias '_Res_type_impl' requested here
  556 |         using _Res_type = _Res_type_impl<_Functor, _CallArgs, _Bound_args...>;
      |                           ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:555:7: note: in instantiation of template type alias '_Res_type' requested here
  555 |       template<typename _CallArgs>
      |       ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:881:5: note: in instantiation of template class 'std::_Bind<std::_Bind<void (RingGroup::*(mlx::core::distributed::ring::RingGroup *, signed char *, signed char *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<signed char>))(signed char *, signed char *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<signed char>)> ()>' requested here
  881 |     bind(_Func&& __f, _BoundArgs&&... __args)
      |     ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/threadpool.h:65:12: note: in instantiation of function template specialization 'std::bind<std::_Bind<void (RingGroup::*(mlx::core::distributed::ring::RingGroup *, signed char *, signed char *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<signed char>))(signed char *, signed char *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<signed char>)>>' requested here
   65 |       std::bind(std::forward<F>(f), std::forward<Args>(args)...));
      |            ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:611:37: note: in instantiation of function template specialization 'ThreadPool::enqueue<std::_Bind<void (RingGroup::*(mlx::core::distributed::ring::RingGroup *, signed char *, signed char *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<signed char>))(signed char *, signed char *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<signed char>)>>' requested here
  611 |         all_sums.emplace_back(pool_.enqueue(
      |                                     ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:446:7: note: in instantiation of function template specialization 'mlx::core::distributed::ring::RingGroup::all_reduce<signed char, mlx::core::distributed::detail::SumOp<signed char>>' requested here
  446 |       all_reduce<T>(input, output, stream, detail::SumOp<T>());
      |       ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:444:5: note: in instantiation of function template specialization 'mlx::core::dispatch_all_types<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:444:40)>' requested here
  444 |     dispatch_all_types(output.dtype(), [&](auto type_tag) {
      |     ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/type_traits:2590:9: note: 'result_of<std::_Bind<void (RingGroup::*(mlx::core::distributed::ring::RingGroup *, signed char *, signed char *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<signed char>))(signed char *, signed char *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<signed char>)> &()>' has been explicitly marked deprecated here
 2590 |     { } _GLIBCXX17_DEPRECATED_SUGGEST("std::invoke_result");
      |         ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13/bits/c++config.h:122:45: note: expanded from macro '_GLIBCXX17_DEPRECATED_SUGGEST'
  122 | # define _GLIBCXX17_DEPRECATED_SUGGEST(ALT) _GLIBCXX_DEPRECATED_SUGGEST(ALT)
      |                                             ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13/bits/c++config.h:98:19: note: expanded from macro '_GLIBCXX_DEPRECATED_SUGGEST'
   98 |   __attribute__ ((__deprecated__ ("use '" ALT "' instead")))
      |                   ^
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:19:
In file included from /host/spi-builder-workspace/Source/Cmlx/json/single_include/nlohmann/json.hpp:23:
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:552:2: warning: 'result_of<std::_Bind<void (RingGroup::*(mlx::core::distributed::ring::RingGroup *, signed char *, signed char *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<signed char>))(signed char *, signed char *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<signed char>)> &()>' is deprecated: use 'std::invoke_result' instead [-Wdeprecated-declarations]
  552 |         using _Res_type_impl
      |         ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:556:2: note: in instantiation of template type alias '_Res_type_impl' requested here
  556 |         using _Res_type = _Res_type_impl<_Functor, _CallArgs, _Bound_args...>;
      |         ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:586:28: note: in instantiation of template type alias '_Res_type' requested here
  586 |                typename _Result = _Res_type<tuple<_Args...>>>
      |                                   ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:881:5: note: in instantiation of template class 'std::_Bind<std::_Bind<void (RingGroup::*(mlx::core::distributed::ring::RingGroup *, signed char *, signed char *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<signed char>))(signed char *, signed char *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<signed char>)> ()>' requested here
  881 |     bind(_Func&& __f, _BoundArgs&&... __args)
      |     ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/threadpool.h:65:12: note: in instantiation of function template specialization 'std::bind<std::_Bind<void (RingGroup::*(mlx::core::distributed::ring::RingGroup *, signed char *, signed char *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<signed char>))(signed char *, signed char *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<signed char>)>>' requested here
   65 |       std::bind(std::forward<F>(f), std::forward<Args>(args)...));
      |            ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:611:37: note: in instantiation of function template specialization 'ThreadPool::enqueue<std::_Bind<void (RingGroup::*(mlx::core::distributed::ring::RingGroup *, signed char *, signed char *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<signed char>))(signed char *, signed char *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<signed char>)>>' requested here
  611 |         all_sums.emplace_back(pool_.enqueue(
      |                                     ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:446:7: note: in instantiation of function template specialization 'mlx::core::distributed::ring::RingGroup::all_reduce<signed char, mlx::core::distributed::detail::SumOp<signed char>>' requested here
  446 |       all_reduce<T>(input, output, stream, detail::SumOp<T>());
      |       ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:444:5: note: in instantiation of function template specialization 'mlx::core::dispatch_all_types<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:444:40)>' requested here
  444 |     dispatch_all_types(output.dtype(), [&](auto type_tag) {
      |     ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/type_traits:2590:9: note: 'result_of<std::_Bind<void (RingGroup::*(mlx::core::distributed::ring::RingGroup *, signed char *, signed char *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<signed char>))(signed char *, signed char *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<signed char>)> &()>' has been explicitly marked deprecated here
 2590 |     { } _GLIBCXX17_DEPRECATED_SUGGEST("std::invoke_result");
      |         ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13/bits/c++config.h:122:45: note: expanded from macro '_GLIBCXX17_DEPRECATED_SUGGEST'
  122 | # define _GLIBCXX17_DEPRECATED_SUGGEST(ALT) _GLIBCXX_DEPRECATED_SUGGEST(ALT)
      |                                             ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13/bits/c++config.h:98:19: note: expanded from macro '_GLIBCXX_DEPRECATED_SUGGEST'
   98 |   __attribute__ ((__deprecated__ ("use '" ALT "' instead")))
      |                   ^
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:19:
In file included from /host/spi-builder-workspace/Source/Cmlx/json/single_include/nlohmann/json.hpp:23:
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:552:2: warning: 'result_of<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:565:22) &()>' is deprecated: use 'std::invoke_result' instead [-Wdeprecated-declarations]
  552 |         using _Res_type_impl
      |         ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:556:20: note: in instantiation of template type alias '_Res_type_impl' requested here
  556 |         using _Res_type = _Res_type_impl<_Functor, _CallArgs, _Bound_args...>;
      |                           ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:555:7: note: in instantiation of template type alias '_Res_type' requested here
  555 |       template<typename _CallArgs>
      |       ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:881:5: note: in instantiation of template class 'std::_Bind<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:565:22) ()>' requested here
  881 |     bind(_Func&& __f, _BoundArgs&&... __args)
      |     ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/backend/cpu/encoder.h:46:22: note: in instantiation of function template specialization 'std::bind<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:565:22)>' requested here
   46 |     auto task = std::bind(std::forward<F>(f), std::forward<Args>(args)...);
      |                      ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:565:13: note: in instantiation of function template specialization 'mlx::core::cpu::CommandEncoder::dispatch<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:565:22)>' requested here
  565 |     encoder.dispatch([in_ptr, out_ptr, size = input.size(), this, reduce_op]() {
      |             ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:446:7: note: in instantiation of function template specialization 'mlx::core::distributed::ring::RingGroup::all_reduce<signed char, mlx::core::distributed::detail::SumOp<signed char>>' requested here
  446 |       all_reduce<T>(input, output, stream, detail::SumOp<T>());
      |       ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:444:5: note: in instantiation of function template specialization 'mlx::core::dispatch_all_types<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:444:40)>' requested here
  444 |     dispatch_all_types(output.dtype(), [&](auto type_tag) {
      |     ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/type_traits:2590:9: note: 'result_of<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:565:22) &()>' has been explicitly marked deprecated here
 2590 |     { } _GLIBCXX17_DEPRECATED_SUGGEST("std::invoke_result");
      |         ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13/bits/c++config.h:122:45: note: expanded from macro '_GLIBCXX17_DEPRECATED_SUGGEST'
  122 | # define _GLIBCXX17_DEPRECATED_SUGGEST(ALT) _GLIBCXX_DEPRECATED_SUGGEST(ALT)
      |                                             ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13/bits/c++config.h:98:19: note: expanded from macro '_GLIBCXX_DEPRECATED_SUGGEST'
   98 |   __attribute__ ((__deprecated__ ("use '" ALT "' instead")))
      |                   ^
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:19:
In file included from /host/spi-builder-workspace/Source/Cmlx/json/single_include/nlohmann/json.hpp:23:
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:552:2: warning: 'result_of<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:565:22) &()>' is deprecated: use 'std::invoke_result' instead [-Wdeprecated-declarations]
  552 |         using _Res_type_impl
      |         ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:556:2: note: in instantiation of template type alias '_Res_type_impl' requested here
  556 |         using _Res_type = _Res_type_impl<_Functor, _CallArgs, _Bound_args...>;
      |         ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:586:28: note: in instantiation of template type alias '_Res_type' requested here
  586 |                typename _Result = _Res_type<tuple<_Args...>>>
      |                                   ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:881:5: note: in instantiation of template class 'std::_Bind<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:565:22) ()>' requested here
  881 |     bind(_Func&& __f, _BoundArgs&&... __args)
      |     ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/backend/cpu/encoder.h:46:22: note: in instantiation of function template specialization 'std::bind<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:565:22)>' requested here
   46 |     auto task = std::bind(std::forward<F>(f), std::forward<Args>(args)...);
      |                      ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:565:13: note: in instantiation of function template specialization 'mlx::core::cpu::CommandEncoder::dispatch<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:565:22)>' requested here
  565 |     encoder.dispatch([in_ptr, out_ptr, size = input.size(), this, reduce_op]() {
      |             ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:446:7: note: in instantiation of function template specialization 'mlx::core::distributed::ring::RingGroup::all_reduce<signed char, mlx::core::distributed::detail::SumOp<signed char>>' requested here
  446 |       all_reduce<T>(input, output, stream, detail::SumOp<T>());
      |       ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:444:5: note: in instantiation of function template specialization 'mlx::core::dispatch_all_types<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:444:40)>' requested here
  444 |     dispatch_all_types(output.dtype(), [&](auto type_tag) {
      |     ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/type_traits:2590:9: note: 'result_of<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:565:22) &()>' has been explicitly marked deprecated here
 2590 |     { } _GLIBCXX17_DEPRECATED_SUGGEST("std::invoke_result");
      |         ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13/bits/c++config.h:122:45: note: expanded from macro '_GLIBCXX17_DEPRECATED_SUGGEST'
  122 | # define _GLIBCXX17_DEPRECATED_SUGGEST(ALT) _GLIBCXX_DEPRECATED_SUGGEST(ALT)
      |                                             ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13/bits/c++config.h:98:19: note: expanded from macro '_GLIBCXX_DEPRECATED_SUGGEST'
   98 |   __attribute__ ((__deprecated__ ("use '" ALT "' instead")))
      |                   ^
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:19:
In file included from /host/spi-builder-workspace/Source/Cmlx/json/single_include/nlohmann/json.hpp:23:
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:552:2: warning: 'result_of<std::_Bind<void (RingGroup::*(mlx::core::distributed::ring::RingGroup *, short *, short *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<short>))(short *, short *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<short>)> &()>' is deprecated: use 'std::invoke_result' instead [-Wdeprecated-declarations]
  552 |         using _Res_type_impl
      |         ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:556:20: note: in instantiation of template type alias '_Res_type_impl' requested here
  556 |         using _Res_type = _Res_type_impl<_Functor, _CallArgs, _Bound_args...>;
      |                           ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:555:7: note: in instantiation of template type alias '_Res_type' requested here
  555 |       template<typename _CallArgs>
      |       ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:881:5: note: in instantiation of template class 'std::_Bind<std::_Bind<void (RingGroup::*(mlx::core::distributed::ring::RingGroup *, short *, short *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<short>))(short *, short *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<short>)> ()>' requested here
  881 |     bind(_Func&& __f, _BoundArgs&&... __args)
      |     ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/threadpool.h:65:12: note: in instantiation of function template specialization 'std::bind<std::_Bind<void (RingGroup::*(mlx::core::distributed::ring::RingGroup *, short *, short *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<short>))(short *, short *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<short>)>>' requested here
   65 |       std::bind(std::forward<F>(f), std::forward<Args>(args)...));
      |            ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:611:37: note: in instantiation of function template specialization 'ThreadPool::enqueue<std::_Bind<void (RingGroup::*(mlx::core::distributed::ring::RingGroup *, short *, short *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<short>))(short *, short *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<short>)>>' requested here
  611 |         all_sums.emplace_back(pool_.enqueue(
      |                                     ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:446:7: note: in instantiation of function template specialization 'mlx::core::distributed::ring::RingGroup::all_reduce<short, mlx::core::distributed::detail::SumOp<short>>' requested here
  446 |       all_reduce<T>(input, output, stream, detail::SumOp<T>());
      |       ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:444:5: note: in instantiation of function template specialization 'mlx::core::dispatch_all_types<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:444:40)>' requested here
  444 |     dispatch_all_types(output.dtype(), [&](auto type_tag) {
      |     ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/type_traits:2590:9: note: 'result_of<std::_Bind<void (RingGroup::*(mlx::core::distributed::ring::RingGroup *, short *, short *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<short>))(short *, short *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<short>)> &()>' has been explicitly marked deprecated here
 2590 |     { } _GLIBCXX17_DEPRECATED_SUGGEST("std::invoke_result");
      |         ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13/bits/c++config.h:122:45: note: expanded from macro '_GLIBCXX17_DEPRECATED_SUGGEST'
  122 | # define _GLIBCXX17_DEPRECATED_SUGGEST(ALT) _GLIBCXX_DEPRECATED_SUGGEST(ALT)
      |                                             ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13/bits/c++config.h:98:19: note: expanded from macro '_GLIBCXX_DEPRECATED_SUGGEST'
   98 |   __attribute__ ((__deprecated__ ("use '" ALT "' instead")))
      |                   ^
In file included from /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:19:
In file included from /host/spi-builder-workspace/Source/Cmlx/json/single_include/nlohmann/json.hpp:23:
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:552:2: warning: 'result_of<std::_Bind<void (RingGroup::*(mlx::core::distributed::ring::RingGroup *, short *, short *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<short>))(short *, short *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<short>)> &()>' is deprecated: use 'std::invoke_result' instead [-Wdeprecated-declarations]
  552 |         using _Res_type_impl
      |         ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:556:2: note: in instantiation of template type alias '_Res_type_impl' requested here
  556 |         using _Res_type = _Res_type_impl<_Functor, _CallArgs, _Bound_args...>;
      |         ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:586:28: note: in instantiation of template type alias '_Res_type' requested here
  586 |                typename _Result = _Res_type<tuple<_Args...>>>
      |                                   ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/functional:881:5: note: in instantiation of template class 'std::_Bind<std::_Bind<void (RingGroup::*(mlx::core::distributed::ring::RingGroup *, short *, short *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<short>))(short *, short *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<short>)> ()>' requested here
  881 |     bind(_Func&& __f, _BoundArgs&&... __args)
      |     ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/threadpool.h:65:12: note: in instantiation of function template specialization 'std::bind<std::_Bind<void (RingGroup::*(mlx::core::distributed::ring::RingGroup *, short *, short *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<short>))(short *, short *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<short>)>>' requested here
   65 |       std::bind(std::forward<F>(f), std::forward<Args>(args)...));
      |            ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:611:37: note: in instantiation of function template specialization 'ThreadPool::enqueue<std::_Bind<void (RingGroup::*(mlx::core::distributed::ring::RingGroup *, short *, short *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<short>))(short *, short *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<short>)>>' requested here
  611 |         all_sums.emplace_back(pool_.enqueue(
      |                                     ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:446:7: note: in instantiation of function template specialization 'mlx::core::distributed::ring::RingGroup::all_reduce<short, mlx::core::distributed::detail::SumOp<short>>' requested here
  446 |       all_reduce<T>(input, output, stream, detail::SumOp<T>());
      |       ^
/host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:444:5: note: in instantiation of function template specialization 'mlx::core::dispatch_all_types<(lambda at /host/spi-builder-workspace/Source/Cmlx/mlx/mlx/distributed/ring/ring.cpp:444:40)>' requested here
  444 |     dispatch_all_types(output.dtype(), [&](auto type_tag) {
      |     ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/type_traits:2590:9: note: 'result_of<std::_Bind<void (RingGroup::*(mlx::core::distributed::ring::RingGroup *, short *, short *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<short>))(short *, short *, unsigned long, int, int, int, mlx::core::distributed::detail::SumOp<short>)> &()>' has been explicitly marked deprecated here
 2590 |     { } _GLIBCXX17_DEPRECATED_SUGGEST("std::invoke_result");
      |         ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13/bits/c++config.h:122:45: note: expanded from macro '_GLIBCXX17_DEPRECATED_SUGGEST'
  122 | # define _GLIBCXX17_DEPRECATED_SUGGEST(ALT) _GLIBCXX_DEPRECATED_SUGGEST(ALT)
      |                                             ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13/bits/c++config.h:98:19: note: expanded from macro '_GLIBCXX_DEPRECATED_SUGGEST'
   98 |   __attribute__ ((__deprecated__ ("use '" ALT "' instead")))
      |                   ^
[89/469] Compiling ring.cpp
[89/469] Compiling export.cpp
BUILD FAILURE 6.3 linux