==> Synchronizing chroot copy [/home/leming/armv8/root] -> [leming]...done
==> Making package: python-pillow-heif 1.0.0-1 (Thu Jul  3 09:28:59 2025)
==> Retrieving sources...
  -> Cloning pillow_heif git repo...
Cloning into bare repository '/home/leming/work/python-pillow-heif/pillow_heif'...
==> WARNING: Skipping verification of source file PGP signatures.
==> Validating source files with b2sums...
    pillow_heif ... Skipped
==> Making package: python-pillow-heif 1.0.0-1 (Thu 03 Jul 2025 09:29:14 AM MDT)
==> Checking runtime dependencies...
==> Installing missing dependencies...
[?25lresolving dependencies...
looking for conflicting packages...
warning: dependency cycle detected:
warning: harfbuzz will be installed before its freetype2 dependency

Packages (25) aom-3.12.1-1  freetype2-2.13.3-3  fribidi-1.0.16-2
              giflib-5.2.2-2  graphite-1:1.3.14-4  harfbuzz-11.2.1-1
              jbigkit-2.1-8  lcms2-2.17-1  libde265-1.0.16-1
              libimagequant-4.3.4-1  libjpeg-turbo-3.1.1-1  libpng-1.6.50-1
              libraqm-0.10.2-1  libtiff-4.7.0-1  libwebp-1.5.0-1
              libxau-1.0.12-1  libxcb-1.17.0-1  libxdmcp-1.1.5-1.1
              openjpeg2-2.5.3-1  python-packaging-25.0-1  x265-4.1-1
              xcb-proto-1.17.0-3  xorgproto-2024.1-2  libheif-1.20.1-1
              python-pillow-11.2.1-1

Total Installed Size:  59.02 MiB

:: Proceed with installation? [Y/n] 
checking keyring...
checking package integrity...
loading package files...
checking for file conflicts...
checking available disk space...
:: Processing package changes...
installing aom...
installing libde265...
Optional dependencies for libde265
    ffmpeg: for sherlock265
    qt5-base: for sherlock265
    sdl: dec265 YUV overlay output
installing giflib...
installing libjpeg-turbo...
installing libpng...
installing jbigkit...
installing libtiff...
Optional dependencies for libtiff
    freeglut: for using tiffgt
installing libwebp...
installing x265...
installing libheif...
Optional dependencies for libheif
    libjpeg-turbo: for heif-convert and heif-enc [installed]
    libpng: for heif-convert and heif-enc [installed]
    dav1d: dav1d encoder
    ffmpeg: hardware decode
    rav1e: rav1e encoder
installing python-packaging...
installing graphite...
Optional dependencies for graphite
    graphite-docs: Documentation
installing harfbuzz...
Optional dependencies for harfbuzz
    harfbuzz-utils: utilities
installing freetype2...
installing lcms2...
installing fribidi...
installing libraqm...
installing openjpeg2...
installing libimagequant...
installing xcb-proto...
installing xorgproto...
installing libxdmcp...
installing libxau...
installing libxcb...
installing python-pillow...
Optional dependencies for python-pillow
    libwebp: for webp images [installed]
    tk: for the ImageTK module
    python-olefile: OLE2 file support
    python-pyqt6: for the ImageQt module
    python-defusedxml: for reading XMP tags
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...
[?25h==> Checking buildtime dependencies...
==> Installing missing dependencies...
[?25lresolving dependencies...
looking for conflicting packages...

Packages (41) perl-error-0.17030-1  perl-mailtools-2.22-1  perl-timedate-2.33-7
              python-autocommand-2.2.2-7  python-babel-2.17.0-1
              python-charset-normalizer-3.4.2-1  python-docutils-1:0.21.2-3
              python-idna-3.10-2  python-imagesize-1.4.1-6
              python-jaraco.collections-5.1.0-1  python-jaraco.context-6.0.1-1
              python-jaraco.functools-4.1.0-1  python-jaraco.text-4.0.0-2
              python-jinja-1:3.1.6-1  python-markupsafe-3.0.2-1
              python-more-itertools-10.7.0-1  python-platformdirs-4.3.6-2
              python-pygments-2.19.2-1  python-pyproject-hooks-1.2.0-3
              python-pytz-2025.2-1  python-requests-2.32.4-1
              python-roman-numerals-py-3.1.0-1  python-snowballstemmer-2.2.0-7
              python-sphinx-8.2.3-1  python-sphinx-alabaster-theme-1.0.0-4
              python-sphinxcontrib-applehelp-2.0.0-3
              python-sphinxcontrib-devhelp-2.0.0-4
              python-sphinxcontrib-htmlhelp-2.1.0-3
              python-sphinxcontrib-jquery-4.1-4
              python-sphinxcontrib-jsmath-1.0.1-19
              python-sphinxcontrib-qthelp-2.0.0-3
              python-sphinxcontrib-serializinghtml-2.0.0-3
              python-urllib3-2.5.0-1  zlib-ng-2.2.4-1  git-2.50.0-1
              python-build-1.2.2-3  python-installer-0.7.0-10
              python-setuptools-1:80.9.0-1  python-sphinx-issues-5.0.0-2
              python-sphinx_rtd_theme-2.0.0-2  python-wheel-0.45.1-1

Total Download Size:    15.02 MiB
Total Installed Size:  138.62 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages...
 python-babel-2.17.0-1-any downloading...
 python-sphinx-8.2.3-1-any downloading...
 python-sphinx_rtd_theme-2.0.0-2-any downloading...
 python-pygments-2.19.2-1-any downloading...
 python-docutils-1:0.21.2-3-any downloading...
 python-jinja-1:3.1.6-1-any downloading...
 python-snowballstemmer-2.2.0-7-any downloading...
 python-sphinxcontrib-jquery-4.1-4-any downloading...
 python-pytz-2025.2-1-any downloading...
 python-sphinxcontrib-htmlhelp-2.1.0-3-any downloading...
 python-sphinxcontrib-applehelp-2.0.0-3-any downloading...
 python-sphinxcontrib-serializinghtml-2.0.0-3-any downloading...
 python-sphinxcontrib-qthelp-2.0.0-3-any downloading...
 python-sphinxcontrib-devhelp-2.0.0-4-any downloading...
 python-markupsafe-3.0.2-1-aarch64 downloading...
 python-sphinx-alabaster-theme-1.0.0-4-any downloading...
 python-sphinx-issues-5.0.0-2-any downloading...
 python-imagesize-1.4.1-6-any downloading...
 python-roman-numerals-py-3.1.0-1-any downloading...
 python-sphinxcontrib-jsmath-1.0.1-19-any downloading...
checking keyring...
checking package integrity...
loading package files...
checking for file conflicts...
checking available disk space...
:: Processing package changes...
installing perl-error...
installing perl-timedate...
installing perl-mailtools...
installing zlib-ng...
installing git...
Optional dependencies for git
    git-zsh-completion: upstream zsh completion
    tk: gitk and git gui
    openssh: ssh transport and crypto
    man: show help with `git command --help`
    perl-libwww: git svn
    perl-term-readkey: git svn and interactive.singlekey setting
    perl-io-socket-ssl: git send-email TLS support
    perl-authen-sasl: git send-email TLS support
    perl-mediawiki-api: git mediawiki support
    perl-datetime-format-iso8601: git mediawiki support
    perl-lwp-protocol-https: git mediawiki https support
    perl-cgi: gitweb (web interface) support
    python: git svn & git p4 [installed]
    subversion: git svn
    org.freedesktop.secrets: keyring credential helper
    libsecret: libsecret credential helper [installed]
installing python-pyproject-hooks...
installing python-build...
Optional dependencies for python-build
    python-pip: to use as the Python package installer (default)
    python-uv: to use as the Python package installer
    python-virtualenv: to use virtualenv for build isolation
installing python-installer...
installing python-more-itertools...
installing python-jaraco.functools...
installing python-jaraco.context...
installing python-autocommand...
installing python-jaraco.text...
Optional dependencies for python-jaraco.text
    python-inflect: for show-newlines script
installing python-jaraco.collections...
installing python-platformdirs...
installing python-wheel...
Optional dependencies for python-wheel
    python-keyring: for wheel.signatures
    python-xdg: for wheel.signatures
    python-setuptools: for legacy bdist_wheel subcommand [pending]
installing python-setuptools...
installing python-pytz...
installing python-babel...
installing python-docutils...
Optional dependencies for python-docutils
    python-myst-parser: to parse input in "Markdown" (CommonMark) format
    python-pillow: for some image manipulation operations [installed]
    python-pygments: for syntax highlighting of code directives and roles
    [pending]
installing python-imagesize...
installing python-markupsafe...
installing python-jinja...
Optional dependencies for python-jinja
    python-babel: for i18n support [installed]
installing python-pygments...
installing python-charset-normalizer...
installing python-idna...
installing python-urllib3...
Optional dependencies for python-urllib3
    python-brotli: Brotli support
    python-brotlicffi: Brotli support
    python-h2: HTTP/2 support
    python-pysocks: SOCKS support
    python-zstandard: Zstandard support
installing python-requests...
Optional dependencies for python-requests
    python-chardet: alternative character encoding library
    python-pysocks: SOCKS proxy support
installing python-roman-numerals-py...
installing python-snowballstemmer...
Optional dependencies for python-snowballstemmer
    python-pystemmer: for improved performance
installing python-sphinx-alabaster-theme...
installing python-sphinxcontrib-applehelp...
installing python-sphinxcontrib-devhelp...
installing python-sphinxcontrib-htmlhelp...
installing python-sphinxcontrib-jsmath...
installing python-sphinxcontrib-qthelp...
installing python-sphinxcontrib-serializinghtml...
installing python-sphinx...
Optional dependencies for python-sphinx
    imagemagick: for ext.imgconverter
    texlive-fontsextra: for the default admonition title icons in PDF output
    texlive-latexextra: for generation of PDF documentation
installing python-sphinx-issues...
installing python-sphinxcontrib-jquery...
installing python-sphinx_rtd_theme...
:: Running post-transaction hooks...
(1/4) Creating system user accounts...
Creating group 'git' with GID 971.
Creating user 'git' (git daemon user) with UID 971 and GID 971.
(2/4) Reloading system manager configuration...
  Skipped: Current root is not booted.
(3/4) Arming ConditionNeedsUpdate...
(4/4) Checking for old perl modules...
[?25h==> Retrieving sources...
==> WARNING: Skipping all source file integrity checks.
==> Extracting sources...
  -> Creating working copy of pillow_heif git repo...
Cloning into 'pillow_heif'...
done.
Switched to a new branch 'makepkg'
==> Starting build()...
* Getting build dependencies for wheel...
/usr/lib/python3.13/site-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated.
!!

        ********************************************************************************
        Please consider removing the following classifiers in favor of a SPDX license expression:

        License :: OSI Approved :: GNU General Public License v2 (GPLv2)

        See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
        ********************************************************************************

!!
  self._finalize_license_expression()
running egg_info
creating pillow_heif.egg-info
writing pillow_heif.egg-info/PKG-INFO
writing dependency_links to pillow_heif.egg-info/dependency_links.txt
writing requirements to pillow_heif.egg-info/requires.txt
writing top-level names to pillow_heif.egg-info/top_level.txt
writing manifest file 'pillow_heif.egg-info/SOURCES.txt'
reading manifest file 'pillow_heif.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files found matching '*.yaml'
warning: no previously-included files found matching '*.yml'
warning: no previously-included files found matching '.cirrus.star'
no previously-included directories found matching 'ci'
no previously-included directories found matching 'docs'
no previously-included directories found matching 'docker'
no previously-included directories found matching 'benchmarks'
warning: no previously-included files matching '*' found under directory '**/__pycache__'
warning: no previously-included files matching '*' found under directory 'pi-heif'
adding license file 'LICENSE.txt'
adding license file 'LICENSES_bundled.txt'
writing manifest file 'pillow_heif.egg-info/SOURCES.txt'
* Building wheel...
/usr/lib/python3.13/site-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated.
!!

        ********************************************************************************
        Please consider removing the following classifiers in favor of a SPDX license expression:

        License :: OSI Approved :: GNU General Public License v2 (GPLv2)

        See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
        ********************************************************************************

!!
  self._finalize_license_expression()
running bdist_wheel
running build
running build_py
creating build/lib.linux-aarch64-cpython-313/pillow_heif
copying pillow_heif/__init__.py -> build/lib.linux-aarch64-cpython-313/pillow_heif
copying pillow_heif/as_plugin.py -> build/lib.linux-aarch64-cpython-313/pillow_heif
copying pillow_heif/options.py -> build/lib.linux-aarch64-cpython-313/pillow_heif
copying pillow_heif/constants.py -> build/lib.linux-aarch64-cpython-313/pillow_heif
copying pillow_heif/misc.py -> build/lib.linux-aarch64-cpython-313/pillow_heif
copying pillow_heif/heif.py -> build/lib.linux-aarch64-cpython-313/pillow_heif
copying pillow_heif/HeifImagePlugin.py -> build/lib.linux-aarch64-cpython-313/pillow_heif
copying pillow_heif/_version.py -> build/lib.linux-aarch64-cpython-313/pillow_heif
copying pillow_heif/_deffered_error.py -> build/lib.linux-aarch64-cpython-313/pillow_heif
copying pillow_heif/_lib_info.py -> build/lib.linux-aarch64-cpython-313/pillow_heif
running build_ext
Looking for `libheif` using pkg-config.
Checking for include file 'heif.h' in '/usr/include'
Checking for include file 'heif.h' in '/usr/include/libheif'
Found 'heif.h' in '/usr/include/libheif'
building '_pillow_heif' extension
creating build/temp.linux-aarch64-cpython-313/pillow_heif
gcc -march=armv8-a -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fPIC -I/usr/include -I/usr/include/webp -I/usr/local/include -I/usr/include/python3.13 -c pillow_heif/_pillow_heif.c -o build/temp.linux-aarch64-cpython-313/pillow_heif/_pillow_heif.o -O3 -Werror
distcc[1871] ERROR: compile pillow_heif/_pillow_heif.c on 10.3.0.15:3932/8 failed
distcc[1871] (dcc_build_somewhere) Warning: remote compilation of 'pillow_heif/_pillow_heif.c' failed, retrying locally
distcc[1871] Warning: failed to distribute pillow_heif/_pillow_heif.c to 10.3.0.15:3932/8, running locally instead
pillow_heif/_pillow_heif.c: In function ‘_CtxImage_camera_intrinsic_matrix’:
pillow_heif/_pillow_heif.c:1350:45: error: storage size of ‘camera_intrinsic_matrix’ isn’t known
 1350 |         struct heif_camera_intrinsic_matrix camera_intrinsic_matrix;
      |                                             ^~~~~~~~~~~~~~~~~~~~~~~
pillow_heif/_pillow_heif.c:1352:14: error: implicit declaration of function ‘heif_image_handle_has_camera_intrinsic_matrix’ []8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wimplicit-function-declaration-Wimplicit-function-declaration]8;;]
 1352 |         if (!heif_image_handle_has_camera_intrinsic_matrix(self->handle)) {
      |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pillow_heif/_pillow_heif.c:1355:25: error: implicit declaration of function ‘heif_image_handle_get_camera_intrinsic_matrix’ []8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wimplicit-function-declaration-Wimplicit-function-declaration]8;;]
 1355 |         if (check_error(heif_image_handle_get_camera_intrinsic_matrix(self->handle, &camera_intrinsic_matrix))) {
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pillow_heif/_pillow_heif.c: In function ‘_CtxImage_camera_extrinsic_matrix_rot’:
pillow_heif/_pillow_heif.c:1377:14: error: implicit declaration of function ‘heif_image_handle_has_camera_extrinsic_matrix’ []8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wimplicit-function-declaration-Wimplicit-function-declaration]8;;]
 1377 |         if (!heif_image_handle_has_camera_extrinsic_matrix(self->handle)) {
      |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pillow_heif/_pillow_heif.c:1380:25: error: implicit declaration of function ‘heif_image_handle_get_camera_extrinsic_matrix’ []8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wimplicit-function-declaration-Wimplicit-function-declaration]8;;]
 1380 |         if (check_error(heif_image_handle_get_camera_extrinsic_matrix(self->handle, &camera_extrinsic_matrix))) {
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pillow_heif/_pillow_heif.c:1380:25: error: incompatible type for argument 1 of ‘check_error’
 1380 |         if (check_error(heif_image_handle_get_camera_extrinsic_matrix(self->handle, &camera_extrinsic_matrix))) {
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                         |
      |                         int
pillow_heif/_pillow_heif.c:14:35: note: expected ‘struct heif_error’ but argument is of type ‘int’
   14 | int check_error(struct heif_error error) {
      |                 ~~~~~~~~~~~~~~~~~~^~~~~
pillow_heif/_pillow_heif.c:1383:17: error: implicit declaration of function ‘heif_camera_extrinsic_matrix_get_rotation_matrix’ []8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wimplicit-function-declaration-Wimplicit-function-declaration]8;;]
 1383 |         error = heif_camera_extrinsic_matrix_get_rotation_matrix(camera_extrinsic_matrix, rot);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pillow_heif/_pillow_heif.c:1383:17: error: incompatible types when assigning to type ‘struct heif_error’ from type ‘intpillow_heif/_pillow_heif.c:1384:9: error: implicit declaration of function ‘heif_camera_extrinsic_matrix_release’ []8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wimplicit-function-declaration-Wimplicit-function-declaration]8;;]
 1384 |         heif_camera_extrinsic_matrix_release(camera_extrinsic_matrix);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
distcc[1871] ERROR: compile pillow_heif/_pillow_heif.c on localhost failed
error: command '/usr/lib/distcc/bin/gcc' failed with exit code 1

ERROR Backend subprocess exited when trying to invoke build_wheel
==> ERROR: A failure occurred in build().
    Aborting...
==> ERROR: Build failed, check /home/leming/armv8/leming/build