Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build failure: python3Packages.pillow-heif on aarch64-darwin #313403

Closed
shivaraj-bh opened this issue May 21, 2024 · 3 comments
Closed

Build failure: python3Packages.pillow-heif on aarch64-darwin #313403

shivaraj-bh opened this issue May 21, 2024 · 3 comments
Labels
0.kind: build failure A package fails to build

Comments

@shivaraj-bh
Copy link
Member

Steps To Reproduce

Steps to reproduce the behavior:

  1. build python3Packages.pillow-heif

Build log

@nix { "action": "setPhase", "phase": "pytestCheckPhase" }
Running phase: pytestCheckPhase
Executing pytestCheckPhase
�[1m============================= test session starts ==============================�[0m
platform darwin -- Python 3.11.9, pytest-8.1.1, pluggy-1.4.0
rootdir: /private/tmp/nix-build-python3.11-pillow-heif-0.16.0.drv-0/source
configfile: pyproject.toml
testpaths: tests
�[1mcollecting ... �[0m�[1m
collecting 151 items / 1 skipped                                               �[0m�[1m
collecting 358 items / 1 skipped                                               �[0m�[1m
collected 913 items / 2 deselected / 1 skipped / 911 selected                  �[0m

tests/basic_test.py �[32m.�[0m�[33ms�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m [  5%]
�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m [ 13%]
�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[32m.�[0m�[33ms�[0m�[33ms�[0m�[33ms�[0m�[32m                                              [ 16%]�[0m
tests/leaks_test.py �[32m.�[0m�[32m.�[0m�[33ms�[0m�[33ms�[0m�[33ms�[0m�[33ms�[0m�[33ms�[0m�[32m                                              [ 17%]�[0m
tests/metadata_etc_test.py �[32m.�[0mFatal Python error: Illegal instruction

Current thread 0x00000001dfccd000 (most recent call first):
  File "/private/tmp/nix-build-python3.11-pillow-heif-0.16.0.drv-0/source/pillow_heif/misc.py", line 405 in _finish_add_image
  File "/private/tmp/nix-build-python3.11-pillow-heif-0.16.0.drv-0/source/pillow_heif/misc.py", line 379 in add_image
  File "/private/tmp/nix-build-python3.11-pillow-heif-0.16.0.drv-0/source/pillow_heif/heif.py", line 574 in _encode_images
  File "/private/tmp/nix-build-python3.11-pillow-heif-0.16.0.drv-0/source/pillow_heif/heif.py", line 362 in save
  File "/private/tmp/nix-build-python3.11-pillow-heif-0.16.0.drv-0/source/tests/helpers.py", line 142 in create_heif
  File "/private/tmp/nix-build-python3.11-pillow-heif-0.16.0.drv-0/source/tests/metadata_etc_test.py", line 17 in test_heif_primary_image
  File "/nix/store/0fxw7kl4mwl8dkddk8rjnrahyh8kywbj-python3.11-pytest-8.1.1/lib/python3.11/site-packages/_pytest/python.py", line 195 in pytest_pyfunc_call
  File "/nix/store/0sirs1a62ajkl1jv6mj6ql9939i7kxxi-python3.11-pluggy-1.4.0/lib/python3.11/site-packages/pluggy/_callers.py", line 102 in _multicall
  File "/nix/store/0sirs1a62ajkl1jv6mj6ql9939i7kxxi-python3.11-pluggy-1.4.0/lib/python3.11/site-packages/pluggy/_manager.py", line 119 in _hookexec
  File "/nix/store/0sirs1a62ajkl1jv6mj6ql9939i7kxxi-python3.11-pluggy-1.4.0/lib/python3.11/site-packages/pluggy/_hooks.py", line 501 in __call__
  File "/nix/store/0fxw7kl4mwl8dkddk8rjnrahyh8kywbj-python3.11-pytest-8.1.1/lib/python3.11/site-packages/_pytest/python.py", line 1772 in runtest
  File "/nix/store/0fxw7kl4mwl8dkddk8rjnrahyh8kywbj-python3.11-pytest-8.1.1/lib/python3.11/site-packages/_pytest/runner.py", line 172 in pytest_runtest_call
  File "/nix/store/0sirs1a62ajkl1jv6mj6ql9939i7kxxi-python3.11-pluggy-1.4.0/lib/python3.11/site-packages/pluggy/_callers.py", line 102 in _multicall
  File "/nix/store/0sirs1a62ajkl1jv6mj6ql9939i7kxxi-python3.11-pluggy-1.4.0/lib/python3.11/site-packages/pluggy/_manager.py", line 119 in _hookexec
  File "/nix/store/0sirs1a62ajkl1jv6mj6ql9939i7kxxi-python3.11-pluggy-1.4.0/lib/python3.11/site-packages/pluggy/_hooks.py", line 501 in __call__
  File "/nix/store/0fxw7kl4mwl8dkddk8rjnrahyh8kywbj-python3.11-pytest-8.1.1/lib/python3.11/site-packages/_pytest/runner.py", line 240 in <lambda>
  File "/nix/store/0fxw7kl4mwl8dkddk8rjnrahyh8kywbj-python3.11-pytest-8.1.1/lib/python3.11/site-packages/_pytest/runner.py", line 340 in from_call
  File "/nix/store/0fxw7kl4mwl8dkddk8rjnrahyh8kywbj-python3.11-pytest-8.1.1/lib/python3.11/site-packages/_pytest/runner.py", line 239 in call_and_report
  File "/nix/store/0fxw7kl4mwl8dkddk8rjnrahyh8kywbj-python3.11-pytest-8.1.1/lib/python3.11/site-packages/_pytest/runner.py", line 134 in runtestprotocol
  File "/nix/store/0fxw7kl4mwl8dkddk8rjnrahyh8kywbj-python3.11-pytest-8.1.1/lib/python3.11/site-packages/_pytest/runner.py", line 115 in pytest_runtest_protocol
  File "/nix/store/0sirs1a62ajkl1jv6mj6ql9939i7kxxi-python3.11-pluggy-1.4.0/lib/python3.11/site-packages/pluggy/_callers.py", line 102 in _multicall
  File "/nix/store/0sirs1a62ajkl1jv6mj6ql9939i7kxxi-python3.11-pluggy-1.4.0/lib/python3.11/site-packages/pluggy/_manager.py", line 119 in _hookexec
  File "/nix/store/0sirs1a62ajkl1jv6mj6ql9939i7kxxi-python3.11-pluggy-1.4.0/lib/python3.11/site-packages/pluggy/_hooks.py", line 501 in __call__
  File "/nix/store/0fxw7kl4mwl8dkddk8rjnrahyh8kywbj-python3.11-pytest-8.1.1/lib/python3.11/site-packages/_pytest/main.py", line 364 in pytest_runtestloop
  File "/nix/store/0sirs1a62ajkl1jv6mj6ql9939i7kxxi-python3.11-pluggy-1.4.0/lib/python3.11/site-packages/pluggy/_callers.py", line 102 in _multicall
  File "/nix/store/0sirs1a62ajkl1jv6mj6ql9939i7kxxi-python3.11-pluggy-1.4.0/lib/python3.11/site-packages/pluggy/_manager.py", line 119 in _hookexec
  File "/nix/store/0sirs1a62ajkl1jv6mj6ql9939i7kxxi-python3.11-pluggy-1.4.0/lib/python3.11/site-packages/pluggy/_hooks.py", line 501 in __call__
  File "/nix/store/0fxw7kl4mwl8dkddk8rjnrahyh8kywbj-python3.11-pytest-8.1.1/lib/python3.11/site-packages/_pytest/main.py", line 339 in _main
  File "/nix/store/0fxw7kl4mwl8dkddk8rjnrahyh8kywbj-python3.11-pytest-8.1.1/lib/python3.11/site-packages/_pytest/main.py", line 285 in wrap_session
  File "/nix/store/0fxw7kl4mwl8dkddk8rjnrahyh8kywbj-python3.11-pytest-8.1.1/lib/python3.11/site-packages/_pytest/main.py", line 332 in pytest_cmdline_main
  File "/nix/store/0sirs1a62ajkl1jv6mj6ql9939i7kxxi-python3.11-pluggy-1.4.0/lib/python3.11/site-packages/pluggy/_callers.py", line 102 in _multicall
  File "/nix/store/0sirs1a62ajkl1jv6mj6ql9939i7kxxi-python3.11-pluggy-1.4.0/lib/python3.11/site-packages/pluggy/_manager.py", line 119 in _hookexec
  File "/nix/store/0sirs1a62ajkl1jv6mj6ql9939i7kxxi-python3.11-pluggy-1.4.0/lib/python3.11/site-packages/pluggy/_hooks.py", line 501 in __call__
  File "/nix/store/0fxw7kl4mwl8dkddk8rjnrahyh8kywbj-python3.11-pytest-8.1.1/lib/python3.11/site-packages/_pytest/config/__init__.py", line 174 in main
  File "/nix/store/0fxw7kl4mwl8dkddk8rjnrahyh8kywbj-python3.11-pytest-8.1.1/lib/python3.11/site-packages/_pytest/config/__init__.py", line 197 in console_main
  File "/nix/store/0fxw7kl4mwl8dkddk8rjnrahyh8kywbj-python3.11-pytest-8.1.1/lib/python3.11/site-packages/pytest/__main__.py", line 7 in <module>
  File "<frozen runpy>", line 88 in _run_code
  File "<frozen runpy>", line 198 in _run_module_as_main

Extension modules: PIL._imaging, PIL._imagingmath, _pillow_heif, numpy.core._multiarray_umath, numpy.core._multiarray_tests, numpy.linalg._umath_linalg, numpy.fft._pocketfft_internal, numpy.random._common, numpy.random.bit_generator, numpy.random._bounded_integers, numpy.random._mt19937, numpy.random.mtrand, numpy.random._philox, numpy.random._pcg64, numpy.random._sfc64, numpy.random._generator, PIL._webp, cv2, PIL._imagingcms, _testcapi (total: 20)
/nix/store/x93s1hhc7864y6nqvmkqfs5dzsis7nga-pytest-check-hook/nix-support/setup-hook: line 53: 38446 Illegal instruction: 4  /nix/store/nmy6fyvrl4lyvn69nsliigpk0rhi4b4f-python3-3.11.9/bin/python3.11 -m pytest -k "not test_decode_threads and not test_opencv_crash"
/nix/store/g224xn9nwzf16jr94f1jx4jsnlazkl2a-stdenv-darwin/setup: line 1588: pop_var_context: head of shell_variables not a function context

Additional context

Add any other context about the problem here.

Notify maintainers

@dali99

@shivaraj-bh shivaraj-bh added the 0.kind: build failure A package fails to build label May 21, 2024
@dali99
Copy link
Member

dali99 commented May 21, 2024

#311751

@shivaraj-bh
Copy link
Member Author

I just have to wait for these changes to move from staging-next to master then. Thanks @dali99!

@shivaraj-bh
Copy link
Member Author

shivaraj-bh commented May 22, 2024

Looks like it is done: #312133

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: build failure A package fails to build
Projects
None yet
Development

No branches or pull requests

2 participants