Skip to content

Instantly share code, notes, and snippets.

@xhochy
Created December 6, 2023 09:39
Show Gist options
  • Save xhochy/3290e73eba3fce442f4ba453fe8def60 to your computer and use it in GitHub Desktop.
Save xhochy/3290e73eba3fce442f4ba453fe8def60 to your computer and use it in GitHub Desktop.
WARNING: No numpy version specified in conda_build_config.yaml. Falling back to default numpy value of 1.22
Adding in variants from internal_defaults
Attempting to finalize metadata for mlx
Reloading output folder (local): ...working... done
Getting pinned dependencies: ...working... done
Reloading output folder (local): ...working... done
Getting pinned dependencies: ...working... done
Reloading output folder (local): ...working... done
Getting pinned dependencies: ...working... done
BUILD START: ['mlx-0.0.3-py39h8a0c2ca_0.tar.bz2']
Reloading output folder (local): ...working... done
Solving environment (_h_env): ...working... done
## Package Plan ##
environment location: /Users/uwe/mambaforge/conda-bld/mlx_1701855483044/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehol
The following NEW packages will be INSTALLED:
bzip2: 1.0.8-h93a5062_5 conda-forge
ca-certificates: 2023.11.17-hf0a4a13_0 conda-forge
libcxx: 16.0.6-h4653b0c_0 conda-forge
libffi: 3.4.2-h3422bc3_5 conda-forge
libsqlite: 3.44.2-h091b4b1_0 conda-forge
libzlib: 1.2.13-h53f4e23_5 conda-forge
ncurses: 6.4-h463b476_2 conda-forge
openssl: 3.2.0-h0d3ecfb_1 conda-forge
pip: 23.3.1-pyhd8ed1ab_0 conda-forge
pybind11: 2.11.1-py39hbd775c9_2 conda-forge
pybind11-global: 2.11.1-py39hbd775c9_2 conda-forge
python: 3.9.18-hfa1ae8a_0_cpython conda-forge
python_abi: 3.9-4_cp39 conda-forge
readline: 8.2-h92ec313_1 conda-forge
setuptools: 68.2.2-pyhd8ed1ab_0 conda-forge
tk: 8.6.13-h5083fa2_1 conda-forge
tzdata: 2023c-h71feb2d_0 conda-forge
wheel: 0.42.0-pyhd8ed1ab_0 conda-forge
xz: 5.2.6-h57fd34a_0 conda-forge
Preparing transaction: ...working... done
Verifying transaction: ...working... done
Executing transaction: ...working... done
Reloading output folder (local): ...working... done
Solving environment (_build_env): ...working... done
Reloading output folder (local): ...working... done
Solving environment (_test_env): ...working... done
## Package Plan ##
environment location: /Users/uwe/mambaforge/conda-bld/mlx_1701855483044/_build_env
The following NEW packages will be INSTALLED:
bzip2: 1.0.8-h93a5062_5 conda-forge
c-ares: 1.23.0-h93a5062_0 conda-forge
ca-certificates: 2023.11.17-hf0a4a13_0 conda-forge
cctools_osx-arm64: 973.0.1-h62378fb_15 conda-forge
clang: 16.0.6-haab561b_3 conda-forge
clang-16: 16.0.6-default_hd209bcb_3 conda-forge
clang_impl_osx-arm64: 16.0.6-hc421ffc_6 conda-forge
clang_osx-arm64: 16.0.6-h54d7cd3_6 conda-forge
clangxx: 16.0.6-default_h5c94ee4_3 conda-forge
cmake: 3.27.9-h04763b9_0 conda-forge
compiler-rt: 16.0.6-h3808999_2 conda-forge
compiler-rt_osx-arm64: 16.0.6-h3808999_2 conda-forge
icu: 73.2-hc8870d7_0 conda-forge
krb5: 1.21.2-h92f50d5_0 conda-forge
ld64_osx-arm64: 609-ha4bd21c_15 conda-forge
libclang-cpp16: 16.0.6-default_hd209bcb_3 conda-forge
libcurl: 8.4.0-h2d989ff_0 conda-forge
libcxx: 16.0.6-h4653b0c_0 conda-forge
libedit: 3.1.20191231-hc8eb9b7_2 conda-forge
libev: 4.33-h642e427_1 conda-forge
libexpat: 2.5.0-hb7217d7_1 conda-forge
libiconv: 1.17-he4db4b2_0 conda-forge
libllvm16: 16.0.6-haab561b_3 conda-forge
libnghttp2: 1.58.0-ha4dd798_0 conda-forge
libssh2: 1.11.0-h7a5bd25_0 conda-forge
libuv: 1.46.0-hb547adb_0 conda-forge
libxml2: 2.12.2-h0d0cfa8_0 conda-forge
libzlib: 1.2.13-h53f4e23_5 conda-forge
llvm-tools: 16.0.6-haab561b_3 conda-forge
ncurses: 6.4-h463b476_2 conda-forge
ninja: 1.11.1-hffc8910_0 conda-forge
openssl: 3.2.0-h0d3ecfb_1 conda-forge
rhash: 1.4.4-hb547adb_0 conda-forge
sigtool: 0.1.3-h44b9a77_0 conda-forge
tapi: 1100.0.11-he4954df_0 conda-forge
xz: 5.2.6-h57fd34a_0 conda-forge
zstd: 1.5.5-h4f39d0f_0 conda-forge
Preparing transaction: ...working... done
Verifying transaction: ...working... done
Executing transaction: ...working... done
Source cache directory is: /Users/uwe/mambaforge/conda-bld/src_cache
Found source in cache: v0.0.3_8d576482e8.tar.gz
Running command Preparing metadata (pyproject.toml)
running dist_info
creating /private/tmp/pip-modern-metadata-8d4rjj5t/mlx.egg-info
writing /private/tmp/pip-modern-metadata-8d4rjj5t/mlx.egg-info/PKG-INFO
writing dependency_links to /private/tmp/pip-modern-metadata-8d4rjj5t/mlx.egg-info/dependency_links.txt
writing top-level names to /private/tmp/pip-modern-metadata-8d4rjj5t/mlx.egg-info/top_level.txt
writing manifest file '/private/tmp/pip-modern-metadata-8d4rjj5t/mlx.egg-info/SOURCES.txt'
reading manifest file '/private/tmp/pip-modern-metadata-8d4rjj5t/mlx.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE'
writing manifest file '/private/tmp/pip-modern-metadata-8d4rjj5t/mlx.egg-info/SOURCES.txt'
creating '/private/tmp/pip-modern-metadata-8d4rjj5t/mlx-0.0.3.dist-info'
Running command Building wheel for mlx (pyproject.toml)
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-11.0-arm64-cpython-39
creating build/lib.macosx-11.0-arm64-cpython-39/mlx
copying python/mlx/optimizers.py -> build/lib.macosx-11.0-arm64-cpython-39/mlx
copying python/mlx/utils.py -> build/lib.macosx-11.0-arm64-cpython-39/mlx
copying python/mlx/extension.py -> build/lib.macosx-11.0-arm64-cpython-39/mlx
copying python/mlx/_reprlib_fix.py -> build/lib.macosx-11.0-arm64-cpython-39/mlx
creating build/lib.macosx-11.0-arm64-cpython-39/mlx/nn
copying python/mlx/nn/__init__.py -> build/lib.macosx-11.0-arm64-cpython-39/mlx/nn
copying python/mlx/nn/utils.py -> build/lib.macosx-11.0-arm64-cpython-39/mlx/nn
copying python/mlx/nn/losses.py -> build/lib.macosx-11.0-arm64-cpython-39/mlx/nn
creating build/lib.macosx-11.0-arm64-cpython-39/mlx/nn/layers
copying python/mlx/nn/layers/convolution.py -> build/lib.macosx-11.0-arm64-cpython-39/mlx/nn/layers
copying python/mlx/nn/layers/embedding.py -> build/lib.macosx-11.0-arm64-cpython-39/mlx/nn/layers
copying python/mlx/nn/layers/activations.py -> build/lib.macosx-11.0-arm64-cpython-39/mlx/nn/layers
copying python/mlx/nn/layers/containers.py -> build/lib.macosx-11.0-arm64-cpython-39/mlx/nn/layers
copying python/mlx/nn/layers/linear.py -> build/lib.macosx-11.0-arm64-cpython-39/mlx/nn/layers
copying python/mlx/nn/layers/__init__.py -> build/lib.macosx-11.0-arm64-cpython-39/mlx/nn/layers
copying python/mlx/nn/layers/transformer.py -> build/lib.macosx-11.0-arm64-cpython-39/mlx/nn/layers
copying python/mlx/nn/layers/dropout.py -> build/lib.macosx-11.0-arm64-cpython-39/mlx/nn/layers
copying python/mlx/nn/layers/positional_encoding.py -> build/lib.macosx-11.0-arm64-cpython-39/mlx/nn/layers
copying python/mlx/nn/layers/normalization.py -> build/lib.macosx-11.0-arm64-cpython-39/mlx/nn/layers
copying python/mlx/nn/layers/base.py -> build/lib.macosx-11.0-arm64-cpython-39/mlx/nn/layers
running egg_info
creating python/mlx.egg-info
writing python/mlx.egg-info/PKG-INFO
writing dependency_links to python/mlx.egg-info/dependency_links.txt
writing top-level names to python/mlx.egg-info/top_level.txt
writing manifest file 'python/mlx.egg-info/SOURCES.txt'
reading manifest file 'python/mlx.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE'
writing manifest file 'python/mlx.egg-info/SOURCES.txt'
running build_ext
-- The CXX compiler identification is AppleClang 15.0.0.15000040
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Building METAL sources
-- Detected macOS version 14.0
-- Accelerate found /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Accelerate.framework
-- Building Python bindings.
-- Found Python: /Users/uwe/mambaforge/conda-bld/mlx_1701855483044/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehol/bin/python3.9 (found version "3.9.18") found components: Interpreter Development Development.Module Development.Embed
-- Performing Test HAS_FLTO
-- Performing Test HAS_FLTO - Success
-- Performing Test HAS_FLTO_THIN
-- Performing Test HAS_FLTO_THIN - Success
-- Found pybind11: /Users/uwe/mambaforge/conda-bld/mlx_1701855483044/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehol/include (found version "2.11.1")
-- Configuring done (5.1s)
-- Generating done (0.0s)
CMake Warning:
Manually-specified variables were not used by the project:
CMAKE_C_COMPILER_AR
CMAKE_C_COMPILER_RANLIB
CMAKE_LIBTOOL
-- Build files have been written to: /Users/uwe/mambaforge/conda-bld/mlx_1701855483044/work/build/temp.macosx-11.0-arm64-cpython-39/mlx.core
[1/74] Building arange.air
[2/74] Building arg_reduce.air
FAILED: mlx/backend/metal/kernels/arg_reduce.air /Users/uwe/mambaforge/conda-bld/mlx_1701855483044/work/build/temp.macosx-11.0-arm64-cpython-39/mlx.core/mlx/backend/metal/kernels/arg_reduce.air
cd /Users/uwe/mambaforge/conda-bld/mlx_1701855483044/work/build/temp.macosx-11.0-arm64-cpython-39/mlx.core/mlx/backend/metal/kernels && xcrun -sdk macosx metal -Wall -Wextra -fno-fast-math -c /Users/uwe/mambaforge/conda-bld/mlx_1701855483044/work/mlx/backend/metal/kernels/arg_reduce.metal -I/Users/uwe/mambaforge/conda-bld/mlx_1701855483044/work -o arg_reduce.air
In file included from /Users/uwe/mambaforge/conda-bld/mlx_1701855483044/work/mlx/backend/metal/kernels/arg_reduce.metal:6:
/Users/uwe/mambaforge/conda-bld/mlx_1701855483044/work/mlx/backend/metal/kernels/utils.h:15:27: error: variable in constant address space must be initialized
static const constant U max;
^
/Users/uwe/mambaforge/conda-bld/mlx_1701855483044/work/mlx/backend/metal/kernels/utils.h:16:27: error: variable in constant address space must be initialized
static const constant U min;
^
/Users/uwe/mambaforge/conda-bld/mlx_1701855483044/work/mlx/backend/metal/kernels/utils.h:17:27: error: variable in constant address space must be initialized
static const constant U finite_max;
^
/Users/uwe/mambaforge/conda-bld/mlx_1701855483044/work/mlx/backend/metal/kernels/utils.h:18:27: error: variable in constant address space must be initialized
static const constant U finite_min;
^
4 errors generated.
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
File "/Users/uwe/mambaforge/conda-bld/mlx_1701855483044/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehol/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
main()
File "/Users/uwe/mambaforge/conda-bld/mlx_1701855483044/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehol/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/Users/uwe/mambaforge/conda-bld/mlx_1701855483044/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehol/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 251, in build_wheel
return _build_backend().build_wheel(wheel_directory, config_settings,
File "/Users/uwe/mambaforge/conda-bld/mlx_1701855483044/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehol/lib/python3.9/site-packages/setuptools/build_meta.py", line 434, in build_wheel
return self._build_with_temp_dir(
File "/Users/uwe/mambaforge/conda-bld/mlx_1701855483044/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehol/lib/python3.9/site-packages/setuptools/build_meta.py", line 419, in _build_with_temp_dir
self.run_setup()
File "/Users/uwe/mambaforge/conda-bld/mlx_1701855483044/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehol/lib/python3.9/site-packages/setuptools/build_meta.py", line 341, in run_setup
exec(code, locals())
File "<string>", line 137, in <module>
File "/Users/uwe/mambaforge/conda-bld/mlx_1701855483044/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehol/lib/python3.9/site-packages/setuptools/__init__.py", line 103, in setup
return distutils.core.setup(**attrs)
File "/Users/uwe/mambaforge/conda-bld/mlx_1701855483044/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehol/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 185, in setup
return run_commands(dist)
File "/Users/uwe/mambaforge/conda-bld/mlx_1701855483044/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehol/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
dist.run_commands()
File "/Users/uwe/mambaforge/conda-bld/mlx_1701855483044/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehol/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
self.run_command(cmd)
File "/Users/uwe/mambaforge/conda-bld/mlx_1701855483044/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehol/lib/python3.9/site-packages/setuptools/dist.py", line 989, in run_command
super().run_command(command)
File "/Users/uwe/mambaforge/conda-bld/mlx_1701855483044/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehol/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/Users/uwe/mambaforge/conda-bld/mlx_1701855483044/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehol/lib/python3.9/site-packages/wheel/bdist_wheel.py", line 368, in run
self.run_command("build")
File "/Users/uwe/mambaforge/conda-bld/mlx_1701855483044/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehol/lib/python3.9/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "/Users/uwe/mambaforge/conda-bld/mlx_1701855483044/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehol/lib/python3.9/site-packages/setuptools/dist.py", line 989, in run_command
super().run_command(command)
File "/Users/uwe/mambaforge/conda-bld/mlx_1701855483044/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehol/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/Users/uwe/mambaforge/conda-bld/mlx_1701855483044/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehol/lib/python3.9/site-packages/setuptools/_distutils/command/build.py", line 131, in run
self.run_command(cmd_name)
File "/Users/uwe/mambaforge/conda-bld/mlx_1701855483044/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehol/lib/python3.9/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "/Users/uwe/mambaforge/conda-bld/mlx_1701855483044/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehol/lib/python3.9/site-packages/setuptools/dist.py", line 989, in run_command
super().run_command(command)
File "/Users/uwe/mambaforge/conda-bld/mlx_1701855483044/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehol/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "<string>", line 110, in run
File "/Users/uwe/mambaforge/conda-bld/mlx_1701855483044/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehol/lib/python3.9/site-packages/setuptools/command/build_ext.py", line 88, in run
_build_ext.run(self)
File "/Users/uwe/mambaforge/conda-bld/mlx_1701855483044/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehol/lib/python3.9/site-packages/setuptools/_distutils/command/build_ext.py", line 345, in run
self.build_extensions()
File "/Users/uwe/mambaforge/conda-bld/mlx_1701855483044/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehol/lib/python3.9/site-packages/setuptools/_distutils/command/build_ext.py", line 467, in build_extensions
self._build_extensions_serial()
File "/Users/uwe/mambaforge/conda-bld/mlx_1701855483044/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehol/lib/python3.9/site-packages/setuptools/_distutils/command/build_ext.py", line 493, in _build_extensions_serial
self.build_extension(ext)
File "<string>", line 102, in build_extension
File "/Users/uwe/mambaforge/conda-bld/mlx_1701855483044/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehol/lib/python3.9/subprocess.py", line 528, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--target', 'install']' returned non-zero exit status 1.
error: subprocess-exited-with-error
× Building wheel for mlx (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
full command: /Users/uwe/mambaforge/conda-bld/mlx_1701855483044/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehol/bin/python /Users/uwe/mambaforge/conda-bld/mlx_1701855483044/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehol/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py build_wheel /tmp/tmpmm38k30y
cwd: /Users/uwe/mambaforge/conda-bld/mlx_1701855483044/work
ERROR: Failed building wheel for mlx
ERROR: Could not build wheels for mlx, which is required to install pyproject.toml-based projects
# >>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<<
Traceback (most recent call last):
File "/Users/uwe/mambaforge/lib/python3.9/site-packages/conda/exception_handler.py", line 17, in __call__
return func(*args, **kwargs)
File "/Users/uwe/mambaforge/lib/python3.9/site-packages/conda/cli/main.py", line 83, in main_subshell
exit_code = do_call(args, parser)
File "/Users/uwe/mambaforge/lib/python3.9/site-packages/conda/cli/conda_argparse.py", line 140, in do_call
result = plugin_subcommand.action(getattr(args, "_args", args))
File "/Users/uwe/mambaforge/lib/python3.9/site-packages/conda_build/plugin.py", line 10, in build
execute(*args, **kwargs)
File "/Users/uwe/mambaforge/lib/python3.9/site-packages/conda_build/cli/main_build.py", line 568, in execute
outputs = api.build(
File "/Users/uwe/mambaforge/lib/python3.9/site-packages/conda_build/api.py", line 253, in build
return build_tree(
File "/Users/uwe/mambaforge/lib/python3.9/site-packages/conda_build/build.py", line 3804, in build_tree
packages_from_this = build(
File "/Users/uwe/mambaforge/lib/python3.9/site-packages/conda_build/build.py", line 2673, in build
utils.check_call_env(
File "/Users/uwe/mambaforge/lib/python3.9/site-packages/conda_build/utils.py", line 445, in check_call_env
return _func_defaulting_env_to_os_environ("call", *popenargs, **kwargs)
File "/Users/uwe/mambaforge/lib/python3.9/site-packages/conda_build/utils.py", line 421, in _func_defaulting_env_to_os_environ
raise subprocess.CalledProcessError(proc.returncode, _args)
subprocess.CalledProcessError: Command '['/bin/bash', '-o', 'errexit', '/Users/uwe/mambaforge/conda-bld/mlx_1701855483044/work/conda_build.sh']' returned non-zero exit status 1.
`$ /Users/uwe/mambaforge/bin/conda build .`
environment variables:
CIO_TEST=<not set>
CONDA_ALLOW_SOFTLINKS=false
CONDA_DEFAULT_ENV=base
CONDA_EXE=/Users/uwe/mambaforge/bin/conda
CONDA_PREFIX=/Users/uwe/mambaforge
CONDA_PROMPT_MODIFIER=(base)
CONDA_PYTHONBREAKPOINT=
CONDA_PYTHON_EXE=/Users/uwe/mambaforge/bin/python
CONDA_ROOT=/Users/uwe/mambaforge
CONDA_SHLVL=1
CURL_CA_BUNDLE=<not set>
LD_PRELOAD=<not set>
PATH=/opt/google-cloud-sdk/bin:/Users/uwe/mambaforge/bin:/Users/uwe/mambafo
rge/condabin:/opt/homebrew/bin:/usr/local/bin:/System/Cryptexes/App/us
r/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.crypte
xd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cr
yptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryp
texd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/b
in:/Applications/Keybase.app/Contents/SharedSupport/bin:/Library/TeX/t
exbin:/Users/uwe/.local/bin:/Users/uwe/.orbstack/bin:/Users/uwe/.pixi/
bin
PYTHONBREAKPOINT=ipdb.set_trace
REQUESTS_CA_BUNDLE=<not set>
SSL_CERT_FILE=<not set>
active environment : base
active env location : /Users/uwe/mambaforge
shell level : 1
user config file : /Users/uwe/.condarc
populated config files : /Users/uwe/mambaforge/.condarc
/Users/uwe/.condarc
conda version : 23.10.0
conda-build version : 3.27.0
python version : 3.9.18.final.0
virtual packages : __archspec=1=m1
__osx=14.0=0
__unix=0=0
base environment : /Users/uwe/mambaforge (writable)
conda av data dir : /Users/uwe/mambaforge/etc/conda
conda av metadata url : None
channel URLs : https://conda.anaconda.org/conda-forge/osx-arm64
https://conda.anaconda.org/conda-forge/noarch
package cache : /Users/uwe/mambaforge/pkgs
/Users/uwe/.conda/pkgs
envs directories : /Users/uwe/mambaforge/envs
/Users/uwe/.conda/envs
platform : osx-arm64
user-agent : conda/23.10.0 requests/2.31.0 CPython/3.9.18 Darwin/23.0.0 OSX/14.0 solver/libmamba conda-libmamba-solver/23.11.1 libmambapy/1.5.3
UID:GID : 501:20
netrc file : None
offline mode : False
An unexpected error has occurred. Conda has prepared the above report.
If you suspect this error is being caused by a malfunctioning plugin,
consider using the --no-plugins option to turn off plugins.
Example: conda --no-plugins install <package>
Alternatively, you can set the CONDA_NO_PLUGINS environment variable on
the command line to run the command without plugins enabled.
Example: CONDA_NO_PLUGINS=true conda install <package>
Extracting download
source tree in: /Users/uwe/mambaforge/conda-bld/mlx_1701855483044/work
export PREFIX=/Users/uwe/mambaforge/conda-bld/mlx_1701855483044/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehol
export BUILD_PREFIX=/Users/uwe/mambaforge/conda-bld/mlx_1701855483044/_build_env
export SRC_DIR=/Users/uwe/mambaforge/conda-bld/mlx_1701855483044/work
INFO: activate_clang_osx-arm64.sh made the following environmental changes:
+AR=arm64-apple-darwin20.0.0-ar
+AS=arm64-apple-darwin20.0.0-as
+CC=arm64-apple-darwin20.0.0-clang
+CC_FOR_BUILD=$BUILD_PREFIX/bin/arm64-apple-darwin20.0.0-clang
+CFLAGS=-ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -isystem $PREFIX/include -fdebug-prefix-map=$SRC_DIR=/usr/local/src/conda/mlx-0.0.3 -fdebug-prefix-map=$PREFIX=/usr/local/src/conda-prefix
+CHECKSYMS=arm64-apple-darwin20.0.0-checksyms
+CLANG=arm64-apple-darwin20.0.0-clang
+CMAKE_ARGS=-DCMAKE_AR=$BUILD_PREFIX/bin/arm64-apple-darwin20.0.0-ar -DCMAKE_CXX_COMPILER_AR=$BUILD_PREFIX/bin/arm64-apple-darwin20.0.0-ar -DCMAKE_C_COMPILER_AR=$BUILD_PREFIX/bin/arm64-apple-darwin20.0.0-ar -DCMAKE_RANLIB=$BUILD_PREFIX/bin/arm64-apple-darwin20.0.0-ranlib -DCMAKE_CXX_COMPILER_RANLIB=$BUILD_PREFIX/bin/arm64-apple-darwin20.0.0-ranlib -DCMAKE_C_COMPILER_RANLIB=$BUILD_PREFIX/bin/arm64-apple-darwin20.0.0-ranlib -DCMAKE_LINKER=$BUILD_PREFIX/bin/arm64-apple-darwin20.0.0-ld -DCMAKE_STRIP=$BUILD_PREFIX/bin/arm64-apple-darwin20.0.0-strip -DCMAKE_INSTALL_NAME_TOOL=$BUILD_PREFIX/bin/arm64-apple-darwin20.0.0-install_name_tool -DCMAKE_LIBTOOL=$BUILD_PREFIX/bin/arm64-apple-darwin20.0.0-libtool -DCMAKE_OSX_DEPLOYMENT_TARGET=11.0 -DCMAKE_BUILD_TYPE=Release -DCMAKE_OSX_SYSROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_FIND_APPBUNDLE=LAST -DCMAKE_INSTALL_PREFIX=$PREFIX -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_PROGRAM_PATH=$BUILD_PREFIX/bin;$PREFIX/bin
+CMAKE_PREFIX_PATH=:$PREFIX
+CONDA_BUILD_SYSROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk
+CONDA_TOOLCHAIN_BUILD=arm64-apple-darwin20.0.0
+CONDA_TOOLCHAIN_HOST=arm64-apple-darwin20.0.0
+CPPFLAGS=-D_FORTIFY_SOURCE=2 -isystem $PREFIX/include -mmacosx-version-min=11.0
+DEBUG_CFLAGS=-ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -Og -g -Wall -Wextra -isystem $PREFIX/include -fdebug-prefix-map=$SRC_DIR=/usr/local/src/conda/mlx-0.0.3 -fdebug-prefix-map=$PREFIX=/usr/local/src/conda-prefix
+HOST=arm64-apple-darwin20.0.0
+INSTALL_NAME_TOOL=arm64-apple-darwin20.0.0-install_name_tool
+LD=arm64-apple-darwin20.0.0-ld
+LDFLAGS=-Wl,-pie -Wl,-headerpad_max_install_names -Wl,-dead_strip_dylibs -Wl,-rpath,$PREFIX/lib -L$PREFIX/lib
+LDFLAGS_LD=-pie -headerpad_max_install_names -dead_strip_dylibs -rpath $PREFIX/lib -L$PREFIX/lib
+LIBTOOL=arm64-apple-darwin20.0.0-libtool
+LIPO=arm64-apple-darwin20.0.0-lipo
+MESON_ARGS=--buildtype release --prefix=$PREFIX -Dlibdir=lib
+NM=arm64-apple-darwin20.0.0-nm
+NMEDIT=arm64-apple-darwin20.0.0-nmedit
+OBJC=arm64-apple-darwin20.0.0-clang
+OBJC_FOR_BUILD=$BUILD_PREFIX/bin/arm64-apple-darwin20.0.0-clang
+OTOOL=arm64-apple-darwin20.0.0-otool
+PAGESTUFF=arm64-apple-darwin20.0.0-pagestuff
+RANLIB=arm64-apple-darwin20.0.0-ranlib
+REDO_PREBINDING=arm64-apple-darwin20.0.0-redo_prebinding
+SDKROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk
+SEGEDIT=arm64-apple-darwin20.0.0-segedit
+SEG_ADDR_TABLE=arm64-apple-darwin20.0.0-seg_addr_table
+SEG_HACK=arm64-apple-darwin20.0.0-seg_hack
+SIZE=arm64-apple-darwin20.0.0-size
+STRINGS=arm64-apple-darwin20.0.0-strings
+STRIP=arm64-apple-darwin20.0.0-strip
+_CONDA_PYTHON_SYSCONFIGDATA_NAME=_sysconfigdata_arm64_apple_darwin20_0_0
+ac_cv_func_malloc_0_nonnull=yes
+ac_cv_func_realloc_0_nonnull=yes
+build_alias=arm64-apple-darwin20.0.0
+host_alias=arm64-apple-darwin20.0.0
Using pip 23.3.1 from $PREFIX/lib/python3.9/site-packages/pip (python 3.9)
Non-user install because user site-packages disabled
Ignoring indexes: https://pypi.org/simple
Created temporary directory: /private/tmp/pip-build-tracker-x_enl892
Initialized build tracking at /private/tmp/pip-build-tracker-x_enl892
Created build tracker: /private/tmp/pip-build-tracker-x_enl892
Entered build tracker: /private/tmp/pip-build-tracker-x_enl892
Created temporary directory: /private/tmp/pip-install-mx3u03xo
Created temporary directory: /private/tmp/pip-ephem-wheel-cache-3ay29vu1
Processing $SRC_DIR
Added file://$SRC_DIR to build tracker '/private/tmp/pip-build-tracker-x_enl892'
Created temporary directory: /private/tmp/pip-modern-metadata-8d4rjj5t
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status 'done'
Source in $SRC_DIR has version 0.0.3, which satisfies requirement mlx==0.0.3 from file://$SRC_DIR
Removed mlx==0.0.3 from file://$SRC_DIR from build tracker '/private/tmp/pip-build-tracker-x_enl892'
Created temporary directory: /private/tmp/pip-unpack-7ea5nkvu
Building wheels for collected packages: mlx
Created temporary directory: /private/tmp/pip-wheel-jk6xl_vq
Destination directory: /private/tmp/pip-wheel-jk6xl_vq
Building wheel for mlx (pyproject.toml): started
Building wheel for mlx (pyproject.toml): finished with status 'error'
Failed to build mlx
Exception information:
Traceback (most recent call last):
File "$PREFIX/lib/python3.9/site-packages/pip/_internal/cli/base_command.py", line 180, in exc_logging_wrapper
status = run_func(*args)
File "$PREFIX/lib/python3.9/site-packages/pip/_internal/cli/req_command.py", line 245, in wrapper
return func(self, options, args)
File "$PREFIX/lib/python3.9/site-packages/pip/_internal/commands/install.py", line 429, in run
raise InstallationError(
pip._internal.exceptions.InstallationError: Could not build wheels for mlx, which is required to install pyproject.toml-based projects
Removed build tracker: '/private/tmp/pip-build-tracker-x_enl892'
36,40s user 12,31s system 70% cpu 1:09,40 total
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment