Hi,
I hit this when building graphics/py-pillow on
# uname -aKU
FreeBSD mcai 15.2-PRERELEASE FreeBSD 15.2-PRERELEASE
stable/15-n286147-c31cc4376dac GENERIC amd64 1501504 1501504
...
building 'PIL._imagingmorph' extension
building 'PIL._imagingmath' extension
Traceback (most recent call last):
File "/usr/local/lib/python3.12/multiprocessing/pool.py", line 215, in
__init__
self._repopulate_pool()
File "/usr/local/lib/python3.12/multiprocessing/pool.py", line 306, in
_repopulate_pool
return self._repopulate_pool_static(self._ctx, self.Process,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/multiprocessing/pool.py", line 329, in
_repopulate_pool_static
w.start()
File "/usr/local/lib/python3.12/multiprocessing/dummy/__init__.py",
line 51, in start
threading.Thread.start(self)
File "/usr/local/lib/python3.12/threading.py", line 994, in start
_start_new_thread(self._bootstrap, ())
RuntimeError: can't start new thread
I managed to solve by serializing the build procedure, but maybe this is
too restrictive, and I am not really sure why non serial builds fail.
With this MAKE_ENV+= MAX_CONCURRENCY=1 builds.
--
José Pérez