Trying to pip install NLopt (2.10) in a linux based container on a M2 MacOS there are no available wheels for manylinux_*_aarch64 (1). Since there are no wheels pip tries to build NLopt (2.6.2) with CMake. The build reaches 100% but then it crashes (2).
The lack of wheels can worked around by emulating amd64 in the container but this is so slow that its unusable as an actual solution.
Python version: 3.14
CMake version: 3.25.1-1
NLopt version: 2.10
(1)
STEP 8/15: RUN uv pip install --system --no-cache -r .requirements.txt Using Python 3.14.6 environment at: /usr/local × No solution found when resolving dependencies: ╰─▶ Because nlopt==2.10.0 has no wheels with a matching platform tag (e.g., manylinux_2_41_aarch64) and you require nlopt==2.10, we can conclude that your requirements are unsatisfiable.
hint: Wheels are available for nlopt (v2.10.0) on the following platforms: manylinux_2_17_x86_64, manylinux2014_x86_64, macosx_11_0_arm64, win_amd64Error: building at STEP "RUN uv pip install --system --no-cache -r .requirements.txt": while running runtime: exit status 1
(2)
Update the VERSION argument value. Or, use the ...
syntax
to tell CMake that the project requires at least but has been
updated
to work with policies introduced by or earlier.
CMake Warning (dev) at CMakeLists.txt:12 (find_package):
Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs
modules
are removed. Run "cmake --help-policy CMP0148" for policy details.
Use
the cmake_policy command to set the policy and suppress this warning.
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Deprecation Warning at extern/nlopt/CMakeLists.txt:15
(cmake_minimum_required):
Compatibility with CMake < 3.10 will be removed from a future version
of
CMake.
Update the VERSION argument <min> value. Or, use the <min>...<max>
syntax
to tell CMake that the project requires at least but has been
updated
to work with policies introduced by or earlier.
CMake Warning (dev) at extern/nlopt/CMakeLists.txt:306 (find_package):
Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs
modules
are removed. Run "cmake --help-policy CMP0148" for policy details.
Use
the cmake_policy command to set the policy and suppress this warning.
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at extern/nlopt/CMakeLists.txt:307 (find_package):
Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs
modules
are removed. Run "cmake --help-policy CMP0148" for policy details.
Use
the cmake_policy command to set the policy and suppress this warning.
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at extern/nlopt/cmake/FindNumPy.cmake:45
(find_package):
Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs
modules
are removed. Run "cmake --help-policy CMP0148" for policy details.
Use
the cmake_policy command to set the policy and suppress this warning.
Call Stack (most recent call first):
extern/nlopt/CMakeLists.txt:308 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Deprecation Warning at
/tmp/.tmpjuU7sm/sdists-v9/pypi/nlopt/2.6.2/ZhtsHV94I0Tz2pTD/src/extern/nlopt/cmake/generate-cpp.cmake:1
(cmake_minimum_required):
Compatibility with CMake < 3.10 will be removed from a future version
of
CMake.
Update the VERSION argument <min> value. Or, use the <min>...<max>
syntax
to tell CMake that the project requires at least but has been
updated
to work with policies introduced by or earlier.
CMake Deprecation Warning at
/tmp/.tmpjuU7sm/sdists-v9/pypi/nlopt/2.6.2/ZhtsHV94I0Tz2pTD/src/extern/nlopt/cmake/generate-fortran.cmake:1
(cmake_minimum_required):
Compatibility with CMake < 3.10 will be removed from a future version
of
CMake.
Update the VERSION argument <min> value. Or, use the <min>...<max>
syntax
to tell CMake that the project requires at least but has been
updated
to work with policies introduced by or earlier.
/tmp/.tmpjuU7sm/sdists-v9/pypi/nlopt/2.6.2/ZhtsHV94I0Tz2pTD/src/extern/nlopt/src/algs/neldermead/nldrmd.c:
In function ‘nldrmd_minimize_’:
/tmp/.tmpjuU7sm/sdists-v9/pypi/nlopt/2.6.2/ZhtsHV94I0Tz2pTD/src/extern/nlopt/src/algs/neldermead/nldrmd.c:205:11:
warning: ‘memset’ specified bound between 18446744056529682432 and
18446744073709551608 exceeds maximum object size 9223372036854775807
[-Wstringop-overflow=]
205 | memset(xcur, 0, sizeof(double)*n);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Traceback (most recent call last):
File "", line 11, in
wheel_filename =
backend.build_wheel("/tmp/.tmpjuU7sm/builds-v0/.tmpvUeKjf", {}, None)
File
"/tmp/.tmpjuU7sm/builds-v0/.tmpfypfRY/lib/python3.14/site-packages/setuptools/build_meta.py",
line 438, in build_wheel
return _build(['bdist_wheel'])
File
"/tmp/.tmpjuU7sm/builds-v0/.tmpfypfRY/lib/python3.14/site-packages/setuptools/build_meta.py",
line 429, in _build
return self._build_with_temp_dir(
~~~~~~~~~~~~~~~~~~~~~~~~~^
cmd,
^^^^
...<3 lines>...
self._arbitrary_args(config_settings),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File
"/tmp/.tmpjuU7sm/builds-v0/.tmpfypfRY/lib/python3.14/site-packages/setuptools/build_meta.py",
line 410, in _build_with_temp_dir
self.run_setup()
~~~~~~~~~~~~~~^^
File
"/tmp/.tmpjuU7sm/builds-v0/.tmpfypfRY/lib/python3.14/site-packages/setuptools/build_meta.py",
line 520, in run_setup
super().run_setup(setup_script=setup_script)
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"/tmp/.tmpjuU7sm/builds-v0/.tmpfypfRY/lib/python3.14/site-packages/setuptools/build_meta.py",
line 317, in run_setup
exec(code, locals())
~~~~^^^^^^^^^^^^^^^^
File "", line 85, in
File
"/tmp/.tmpjuU7sm/builds-v0/.tmpfypfRY/lib/python3.14/site-packages/setuptools/init.py",
line 117, in setup
return distutils.core.setup(**attrs) # type: ignore[return-value]
~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
File
"/tmp/.tmpjuU7sm/builds-v0/.tmpfypfRY/lib/python3.14/site-packages/setuptools/_distutils/core.py",
line 186, in setup
return run_commands(dist)
File
"/tmp/.tmpjuU7sm/builds-v0/.tmpfypfRY/lib/python3.14/site-packages/setuptools/_distutils/core.py",
line 202, in run_commands
dist.run_commands()
~~~~~~~~~~~~~~~~~^^
File
"/tmp/.tmpjuU7sm/builds-v0/.tmpfypfRY/lib/python3.14/site-packages/setuptools/_distutils/dist.py",
line 1001, in run_commands
self.run_command(cmd)
~~~~~~~~~~~~~~~~^^^^^
File
"/tmp/.tmpjuU7sm/builds-v0/.tmpfypfRY/lib/python3.14/site-packages/setuptools/dist.py",
line 1107, in run_command
super().run_command(command)
~~~~~~~~~~~~~~~~~~~^^^^^^^^^
File
"/tmp/.tmpjuU7sm/builds-v0/.tmpfypfRY/lib/python3.14/site-packages/setuptools/_distutils/dist.py",
line 1020, in run_command
cmd_obj.run()
~~~~~~~~~~~^^
File
"/tmp/.tmpjuU7sm/builds-v0/.tmpfypfRY/lib/python3.14/site-packages/setuptools/command/bdist_wheel.py",
line 370, in run
self.run_command("build")
~~~~~~~~~~~~~~~~^^^^^^^^^
File
"/tmp/.tmpjuU7sm/builds-v0/.tmpfypfRY/lib/python3.14/site-packages/setuptools/_distutils/cmd.py",
line 341, in run_command
self.distribution.run_command(command)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
File
"/tmp/.tmpjuU7sm/builds-v0/.tmpfypfRY/lib/python3.14/site-packages/setuptools/dist.py",
line 1107, in run_command
super().run_command(command)
~~~~~~~~~~~~~~~~~~~^^^^^^^^^
File
"/tmp/.tmpjuU7sm/builds-v0/.tmpfypfRY/lib/python3.14/site-packages/setuptools/_distutils/dist.py",
line 1020, in run_command
cmd_obj.run()
~~~~~~~~~~~^^
File
"/tmp/.tmpjuU7sm/builds-v0/.tmpfypfRY/lib/python3.14/site-packages/setuptools/_distutils/command/build.py",
line 135, in run
self.run_command(cmd_name)
~~~~~~~~~~~~~~~~^^^^^^^^^^
File
"/tmp/.tmpjuU7sm/builds-v0/.tmpfypfRY/lib/python3.14/site-packages/setuptools/_distutils/cmd.py",
line 341, in run_command
self.distribution.run_command(command)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
File
"/tmp/.tmpjuU7sm/builds-v0/.tmpfypfRY/lib/python3.14/site-packages/setuptools/dist.py",
line 1107, in run_command
super().run_command(command)
~~~~~~~~~~~~~~~~~~~^^^^^^^^^
File
"/tmp/.tmpjuU7sm/builds-v0/.tmpfypfRY/lib/python3.14/site-packages/setuptools/_distutils/dist.py",
line 1020, in run_command
cmd_obj.run()
~~~~~~~~~~~^^
File "", line 28, in run
File "", line 70, in build_extension
StopIteration
Trying to pip install NLopt (2.10) in a linux based container on a M2 MacOS there are no available wheels for manylinux_*_aarch64 (1). Since there are no wheels pip tries to build NLopt (2.6.2) with CMake. The build reaches 100% but then it crashes (2).
The lack of wheels can worked around by emulating amd64 in the container but this is so slow that its unusable as an actual solution.
Python version: 3.14
CMake version: 3.25.1-1
NLopt version: 2.10
(1)
STEP 8/15: RUN uv pip install --system --no-cache -r .requirements.txt Using Python 3.14.6 environment at: /usr/local × No solution found when resolving dependencies: ╰─▶ Because nlopt==2.10.0 has no wheels with a matching platform tag (e.g., manylinux_2_41_aarch64) and you require nlopt==2.10, we can conclude that your requirements are unsatisfiable.
hint: Wheels are available for nlopt (v2.10.0) on the following platforms: manylinux_2_17_x86_64, manylinux2014_x86_64, macosx_11_0_arm64, win_amd64Error: building at STEP "RUN uv pip install --system --no-cache -r .requirements.txt": while running runtime: exit status 1
(2)
Update the VERSION argument value. Or, use the ...
syntax
to tell CMake that the project requires at least but has been
updated
to work with policies introduced by or earlier.
CMake Warning (dev) at CMakeLists.txt:12 (find_package):
Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs
modules
are removed. Run "cmake --help-policy CMP0148" for policy details.
Use
the cmake_policy command to set the policy and suppress this warning.
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Deprecation Warning at extern/nlopt/CMakeLists.txt:15
(cmake_minimum_required):
Compatibility with CMake < 3.10 will be removed from a future version
of
CMake.
syntax
to tell CMake that the project requires at least but has been
updated
to work with policies introduced by or earlier.
CMake Warning (dev) at extern/nlopt/CMakeLists.txt:306 (find_package):
Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs
modules
are removed. Run "cmake --help-policy CMP0148" for policy details.
Use
the cmake_policy command to set the policy and suppress this warning.
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at extern/nlopt/CMakeLists.txt:307 (find_package):
Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs
modules
are removed. Run "cmake --help-policy CMP0148" for policy details.
Use
the cmake_policy command to set the policy and suppress this warning.
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at extern/nlopt/cmake/FindNumPy.cmake:45
(find_package):
Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs
modules
are removed. Run "cmake --help-policy CMP0148" for policy details.
Use
the cmake_policy command to set the policy and suppress this warning.
Call Stack (most recent call first):
extern/nlopt/CMakeLists.txt:308 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Deprecation Warning at
/tmp/.tmpjuU7sm/sdists-v9/pypi/nlopt/2.6.2/ZhtsHV94I0Tz2pTD/src/extern/nlopt/cmake/generate-cpp.cmake:1
(cmake_minimum_required):
Compatibility with CMake < 3.10 will be removed from a future version
of
CMake.
syntax
to tell CMake that the project requires at least but has been
updated
to work with policies introduced by or earlier.
CMake Deprecation Warning at
/tmp/.tmpjuU7sm/sdists-v9/pypi/nlopt/2.6.2/ZhtsHV94I0Tz2pTD/src/extern/nlopt/cmake/generate-fortran.cmake:1
(cmake_minimum_required):
Compatibility with CMake < 3.10 will be removed from a future version
of
CMake.
syntax
to tell CMake that the project requires at least but has been
updated
to work with policies introduced by or earlier.
/tmp/.tmpjuU7sm/sdists-v9/pypi/nlopt/2.6.2/ZhtsHV94I0Tz2pTD/src/extern/nlopt/src/algs/neldermead/nldrmd.c:
In function ‘nldrmd_minimize_’:
/tmp/.tmpjuU7sm/sdists-v9/pypi/nlopt/2.6.2/ZhtsHV94I0Tz2pTD/src/extern/nlopt/src/algs/neldermead/nldrmd.c:205:11:
warning: ‘memset’ specified bound between 18446744056529682432 and
18446744073709551608 exceeds maximum object size 9223372036854775807
[-Wstringop-overflow=]
205 | memset(xcur, 0, sizeof(double)*n);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Traceback (most recent call last):
File "", line 11, in
wheel_filename =
backend.build_wheel("/tmp/.tmpjuU7sm/builds-v0/.tmpvUeKjf", {}, None)
File
"/tmp/.tmpjuU7sm/builds-v0/.tmpfypfRY/lib/python3.14/site-packages/setuptools/build_meta.py",
line 438, in build_wheel
return _build(['bdist_wheel'])
File
"/tmp/.tmpjuU7sm/builds-v0/.tmpfypfRY/lib/python3.14/site-packages/setuptools/build_meta.py",
line 429, in _build
return self._build_with_temp_dir(
~~~~~~~~~~~~~~~~~~~~~~~~~^
cmd,
^^^^
...<3 lines>...
self._arbitrary_args(config_settings),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File
"/tmp/.tmpjuU7sm/builds-v0/.tmpfypfRY/lib/python3.14/site-packages/setuptools/build_meta.py",
line 410, in _build_with_temp_dir
self.run_setup()
~~~~~~~~~~~~~~^^
File
"/tmp/.tmpjuU7sm/builds-v0/.tmpfypfRY/lib/python3.14/site-packages/setuptools/build_meta.py",
line 520, in run_setup
super().run_setup(setup_script=setup_script)
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"/tmp/.tmpjuU7sm/builds-v0/.tmpfypfRY/lib/python3.14/site-packages/setuptools/build_meta.py",
line 317, in run_setup
exec(code, locals())
~~~~^^^^^^^^^^^^^^^^
File "", line 85, in
File
"/tmp/.tmpjuU7sm/builds-v0/.tmpfypfRY/lib/python3.14/site-packages/setuptools/init.py",
line 117, in setup
return distutils.core.setup(**attrs) # type: ignore[return-value]
~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
File
"/tmp/.tmpjuU7sm/builds-v0/.tmpfypfRY/lib/python3.14/site-packages/setuptools/_distutils/core.py",
line 186, in setup
return run_commands(dist)
File
"/tmp/.tmpjuU7sm/builds-v0/.tmpfypfRY/lib/python3.14/site-packages/setuptools/_distutils/core.py",
line 202, in run_commands
dist.run_commands()
~~~~~~~~~~~~~~~~~^^
File
"/tmp/.tmpjuU7sm/builds-v0/.tmpfypfRY/lib/python3.14/site-packages/setuptools/_distutils/dist.py",
line 1001, in run_commands
self.run_command(cmd)
~~~~~~~~~~~~~~~~^^^^^
File
"/tmp/.tmpjuU7sm/builds-v0/.tmpfypfRY/lib/python3.14/site-packages/setuptools/dist.py",
line 1107, in run_command
super().run_command(command)
~~~~~~~~~~~~~~~~~~~^^^^^^^^^
File
"/tmp/.tmpjuU7sm/builds-v0/.tmpfypfRY/lib/python3.14/site-packages/setuptools/_distutils/dist.py",
line 1020, in run_command
cmd_obj.run()
~~~~~~~~~~~^^
File
"/tmp/.tmpjuU7sm/builds-v0/.tmpfypfRY/lib/python3.14/site-packages/setuptools/command/bdist_wheel.py",
line 370, in run
self.run_command("build")
~~~~~~~~~~~~~~~~^^^^^^^^^
File
"/tmp/.tmpjuU7sm/builds-v0/.tmpfypfRY/lib/python3.14/site-packages/setuptools/_distutils/cmd.py",
line 341, in run_command
self.distribution.run_command(command)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
File
"/tmp/.tmpjuU7sm/builds-v0/.tmpfypfRY/lib/python3.14/site-packages/setuptools/dist.py",
line 1107, in run_command
super().run_command(command)
~~~~~~~~~~~~~~~~~~~^^^^^^^^^
File
"/tmp/.tmpjuU7sm/builds-v0/.tmpfypfRY/lib/python3.14/site-packages/setuptools/_distutils/dist.py",
line 1020, in run_command
cmd_obj.run()
~~~~~~~~~~~^^
File
"/tmp/.tmpjuU7sm/builds-v0/.tmpfypfRY/lib/python3.14/site-packages/setuptools/_distutils/command/build.py",
line 135, in run
self.run_command(cmd_name)
~~~~~~~~~~~~~~~~^^^^^^^^^^
File
"/tmp/.tmpjuU7sm/builds-v0/.tmpfypfRY/lib/python3.14/site-packages/setuptools/_distutils/cmd.py",
line 341, in run_command
self.distribution.run_command(command)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
File
"/tmp/.tmpjuU7sm/builds-v0/.tmpfypfRY/lib/python3.14/site-packages/setuptools/dist.py",
line 1107, in run_command
super().run_command(command)
~~~~~~~~~~~~~~~~~~~^^^^^^^^^
File
"/tmp/.tmpjuU7sm/builds-v0/.tmpfypfRY/lib/python3.14/site-packages/setuptools/_distutils/dist.py",
line 1020, in run_command
cmd_obj.run()
~~~~~~~~~~~^^
File "", line 28, in run
File "", line 70, in build_extension
StopIteration