Opened 13 months ago

Last modified 13 months ago

#71686 new defect

py312-brotli build error: error: ‘ZopfliCostModel’ has no member named ‘arena’

Reported by: barracuda156 Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.10.5
Keywords: Cc: raimue (Rainer Müller)
Port: py312-brotli

Description

--->  Building py312-brotli
Executing:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_python_py-brotli/py312-brotli/work/brotli-1.1.0" && /opt/local/Library/Frameworks/Python.framework/Versions/3.12/bin/python3.12 -m build --no-isolation --wheel --outdir /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_python_py-brotli/py312-brotli/work 
* Getting build dependencies for wheel...
/opt/local/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/setuptools/_distutils/dist.py:261: UserWarning: Unknown distribution option: 'test_suite'
  warnings.warn(msg)
running egg_info
creating python/Brotli.egg-info
writing python/Brotli.egg-info/PKG-INFO
writing dependency_links to python/Brotli.egg-info/dependency_links.txt
writing top-level names to python/Brotli.egg-info/top_level.txt
writing manifest file 'python/Brotli.egg-info/SOURCES.txt'
ERROR setuptools_scm._file_finders.git listing git files failed - pretending there aren't any
reading manifest file 'python/Brotli.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'python/_brotli.cc'
adding license file 'LICENSE'
writing manifest file 'python/Brotli.egg-info/SOURCES.txt'
* Building wheel...
/opt/local/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/setuptools/_distutils/dist.py:261: UserWarning: Unknown distribution option: 'test_suite'
  warnings.warn(msg)
running bdist_wheel
running build
running build_py
creating bin/lib.macosx-10.6-ppc-cpython-312
copying python/brotli.py -> bin/lib.macosx-10.6-ppc-cpython-312
running build_ext
<string>:70: DeprecationWarning: dep_util is Deprecated. Use functions from setuptools instead.
building '_brotli' extension
creating bin/temp.macosx-10.6-ppc-cpython-312/python
creating bin/temp.macosx-10.6-ppc-cpython-312/c/common
creating bin/temp.macosx-10.6-ppc-cpython-312/c/dec
creating bin/temp.macosx-10.6-ppc-cpython-312/c/enc
/usr/bin/gcc-4.2 -fno-strict-overflow -Wsign-compare -fno-common -dynamic -DNDEBUG -g -O3 -Wall -pipe -Os -std=c99 -DOS_MACOSX=1 -Ic/include -I/opt/local/Library/Frameworks/Python.framework/Versions/3.12/include/python3.12 -c python/_brotli.c -o bin/temp.macosx-10.6-ppc-cpython-312/python/_brotli.o -arch ppc -isysroot/
/usr/bin/gcc-4.2 -fno-strict-overflow -Wsign-compare -fno-common -dynamic -DNDEBUG -g -O3 -Wall -pipe -Os -std=c99 -DOS_MACOSX=1 -Ic/include -I/opt/local/Library/Frameworks/Python.framework/Versions/3.12/include/python3.12 -c c/common/constants.c -o bin/temp.macosx-10.6-ppc-cpython-312/c/common/constants.o -arch ppc -isysroot/
/usr/bin/gcc-4.2 -fno-strict-overflow -Wsign-compare -fno-common -dynamic -DNDEBUG -g -O3 -Wall -pipe -Os -std=c99 -DOS_MACOSX=1 -Ic/include -I/opt/local/Library/Frameworks/Python.framework/Versions/3.12/include/python3.12 -c c/common/context.c -o bin/temp.macosx-10.6-ppc-cpython-312/c/common/context.o -arch ppc -isysroot/
/usr/bin/gcc-4.2 -fno-strict-overflow -Wsign-compare -fno-common -dynamic -DNDEBUG -g -O3 -Wall -pipe -Os -std=c99 -DOS_MACOSX=1 -Ic/include -I/opt/local/Library/Frameworks/Python.framework/Versions/3.12/include/python3.12 -c c/common/dictionary.c -o bin/temp.macosx-10.6-ppc-cpython-312/c/common/dictionary.o -arch ppc -isysroot/
/usr/bin/gcc-4.2 -fno-strict-overflow -Wsign-compare -fno-common -dynamic -DNDEBUG -g -O3 -Wall -pipe -Os -std=c99 -DOS_MACOSX=1 -Ic/include -I/opt/local/Library/Frameworks/Python.framework/Versions/3.12/include/python3.12 -c c/common/platform.c -o bin/temp.macosx-10.6-ppc-cpython-312/c/common/platform.o -arch ppc -isysroot/
/usr/bin/gcc-4.2 -fno-strict-overflow -Wsign-compare -fno-common -dynamic -DNDEBUG -g -O3 -Wall -pipe -Os -std=c99 -DOS_MACOSX=1 -Ic/include -I/opt/local/Library/Frameworks/Python.framework/Versions/3.12/include/python3.12 -c c/common/shared_dictionary.c -o bin/temp.macosx-10.6-ppc-cpython-312/c/common/shared_dictionary.o -arch ppc -isysroot/
/usr/bin/gcc-4.2 -fno-strict-overflow -Wsign-compare -fno-common -dynamic -DNDEBUG -g -O3 -Wall -pipe -Os -std=c99 -DOS_MACOSX=1 -Ic/include -I/opt/local/Library/Frameworks/Python.framework/Versions/3.12/include/python3.12 -c c/common/transform.c -o bin/temp.macosx-10.6-ppc-cpython-312/c/common/transform.o -arch ppc -isysroot/
/usr/bin/gcc-4.2 -fno-strict-overflow -Wsign-compare -fno-common -dynamic -DNDEBUG -g -O3 -Wall -pipe -Os -std=c99 -DOS_MACOSX=1 -Ic/include -I/opt/local/Library/Frameworks/Python.framework/Versions/3.12/include/python3.12 -c c/dec/bit_reader.c -o bin/temp.macosx-10.6-ppc-cpython-312/c/dec/bit_reader.o -arch ppc -isysroot/
/usr/bin/gcc-4.2 -fno-strict-overflow -Wsign-compare -fno-common -dynamic -DNDEBUG -g -O3 -Wall -pipe -Os -std=c99 -DOS_MACOSX=1 -Ic/include -I/opt/local/Library/Frameworks/Python.framework/Versions/3.12/include/python3.12 -c c/dec/decode.c -o bin/temp.macosx-10.6-ppc-cpython-312/c/dec/decode.o -arch ppc -isysroot/
/usr/bin/gcc-4.2 -fno-strict-overflow -Wsign-compare -fno-common -dynamic -DNDEBUG -g -O3 -Wall -pipe -Os -std=c99 -DOS_MACOSX=1 -Ic/include -I/opt/local/Library/Frameworks/Python.framework/Versions/3.12/include/python3.12 -c c/dec/huffman.c -o bin/temp.macosx-10.6-ppc-cpython-312/c/dec/huffman.o -arch ppc -isysroot/
/usr/bin/gcc-4.2 -fno-strict-overflow -Wsign-compare -fno-common -dynamic -DNDEBUG -g -O3 -Wall -pipe -Os -std=c99 -DOS_MACOSX=1 -Ic/include -I/opt/local/Library/Frameworks/Python.framework/Versions/3.12/include/python3.12 -c c/dec/state.c -o bin/temp.macosx-10.6-ppc-cpython-312/c/dec/state.o -arch ppc -isysroot/
/usr/bin/gcc-4.2 -fno-strict-overflow -Wsign-compare -fno-common -dynamic -DNDEBUG -g -O3 -Wall -pipe -Os -std=c99 -DOS_MACOSX=1 -Ic/include -I/opt/local/Library/Frameworks/Python.framework/Versions/3.12/include/python3.12 -c c/enc/backward_references.c -o bin/temp.macosx-10.6-ppc-cpython-312/c/enc/backward_references.o -arch ppc -isysroot/
/usr/bin/gcc-4.2 -fno-strict-overflow -Wsign-compare -fno-common -dynamic -DNDEBUG -g -O3 -Wall -pipe -Os -std=c99 -DOS_MACOSX=1 -Ic/include -I/opt/local/Library/Frameworks/Python.framework/Versions/3.12/include/python3.12 -c c/enc/backward_references_hq.c -o bin/temp.macosx-10.6-ppc-cpython-312/c/enc/backward_references_hq.o -arch ppc -isysroot/
c/enc/backward_references_hq.c:101: warning: declaration does not declare anything
c/enc/backward_references_hq.c: In function ‘ZopfliCostModelSetFromCommands’:
c/enc/backward_references_hq.c:158: error: ‘ZopfliCostModel’ has no member named ‘arena’
c/enc/backward_references_hq.c: In function ‘ZopfliCostModelSetFromLiteralCosts’:
c/enc/backward_references_hq.c:222: error: ‘ZopfliCostModel’ has no member named ‘literal_histograms’
error: command '/usr/bin/gcc-4.2' failed with exit code 1

ERROR Backend subprocess exited when trying to invoke build_wheel
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_python_py-brotli/py312-brotli/work/brotli-1.1.0" && /opt/local/Library/Frameworks/Python.framework/Versions/3.12/bin/python3.12 -m build --no-isolation --wheel --outdir /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_python_py-brotli/py312-brotli/work 
Exit code: 1
Error: Failed to build py312-brotli: command execution failed

Change History (2)

comment:1 Changed 13 months ago by barracuda156

Works fine for python 3.11 subport though:

--->  Building py311-brotli
Executing:  cd "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_python_py-brotli/py311-brotli/work/brotli-1.1.0" && /opt/local/Library/Frameworks/Python.framework/Versions/3.11/bin/python3.11 -m build --no-isolation --wheel --outdir /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_python_py-brotli/py311-brotli/work 
* Getting build dependencies for wheel...
/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/setuptools/_distutils/dist.py:261: UserWarning: Unknown distribution option: 'test_suite'
  warnings.warn(msg)
running egg_info
creating python/Brotli.egg-info
writing python/Brotli.egg-info/PKG-INFO
writing dependency_links to python/Brotli.egg-info/dependency_links.txt
writing top-level names to python/Brotli.egg-info/top_level.txt
writing manifest file 'python/Brotli.egg-info/SOURCES.txt'
reading manifest file 'python/Brotli.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'python/_brotli.cc'
adding license file 'LICENSE'
writing manifest file 'python/Brotli.egg-info/SOURCES.txt'
* Building wheel...
/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/setuptools/_distutils/dist.py:261: UserWarning: Unknown distribution option: 'test_suite'
  warnings.warn(msg)
running bdist_wheel
running build
running build_py
creating bin/lib.macosx-10.6-ppc-cpython-311
copying python/brotli.py -> bin/lib.macosx-10.6-ppc-cpython-311
running build_ext
<string>:70: DeprecationWarning: dep_util is Deprecated. Use functions from setuptools instead.
building '_brotli' extension
creating bin/temp.macosx-10.6-ppc-cpython-311/python
creating bin/temp.macosx-10.6-ppc-cpython-311/c/common
creating bin/temp.macosx-10.6-ppc-cpython-311/c/dec
creating bin/temp.macosx-10.6-ppc-cpython-311/c/enc
/usr/bin/gcc-4.2 -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -pipe -Os -DOS_MACOSX=1 -Ic/include -I/opt/local/Library/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c python/_brotli.c -o bin/temp.macosx-10.6-ppc-cpython-311/python/_brotli.o -arch ppc -isysroot/
/usr/bin/gcc-4.2 -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -pipe -Os -DOS_MACOSX=1 -Ic/include -I/opt/local/Library/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c c/common/constants.c -o bin/temp.macosx-10.6-ppc-cpython-311/c/common/constants.o -arch ppc -isysroot/
/usr/bin/gcc-4.2 -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -pipe -Os -DOS_MACOSX=1 -Ic/include -I/opt/local/Library/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c c/common/context.c -o bin/temp.macosx-10.6-ppc-cpython-311/c/common/context.o -arch ppc -isysroot/
/usr/bin/gcc-4.2 -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -pipe -Os -DOS_MACOSX=1 -Ic/include -I/opt/local/Library/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c c/common/dictionary.c -o bin/temp.macosx-10.6-ppc-cpython-311/c/common/dictionary.o -arch ppc -isysroot/
/usr/bin/gcc-4.2 -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -pipe -Os -DOS_MACOSX=1 -Ic/include -I/opt/local/Library/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c c/common/platform.c -o bin/temp.macosx-10.6-ppc-cpython-311/c/common/platform.o -arch ppc -isysroot/
/usr/bin/gcc-4.2 -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -pipe -Os -DOS_MACOSX=1 -Ic/include -I/opt/local/Library/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c c/common/shared_dictionary.c -o bin/temp.macosx-10.6-ppc-cpython-311/c/common/shared_dictionary.o -arch ppc -isysroot/
/usr/bin/gcc-4.2 -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -pipe -Os -DOS_MACOSX=1 -Ic/include -I/opt/local/Library/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c c/common/transform.c -o bin/temp.macosx-10.6-ppc-cpython-311/c/common/transform.o -arch ppc -isysroot/
/usr/bin/gcc-4.2 -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -pipe -Os -DOS_MACOSX=1 -Ic/include -I/opt/local/Library/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c c/dec/bit_reader.c -o bin/temp.macosx-10.6-ppc-cpython-311/c/dec/bit_reader.o -arch ppc -isysroot/
/usr/bin/gcc-4.2 -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -pipe -Os -DOS_MACOSX=1 -Ic/include -I/opt/local/Library/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c c/dec/decode.c -o bin/temp.macosx-10.6-ppc-cpython-311/c/dec/decode.o -arch ppc -isysroot/
/usr/bin/gcc-4.2 -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -pipe -Os -DOS_MACOSX=1 -Ic/include -I/opt/local/Library/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c c/dec/huffman.c -o bin/temp.macosx-10.6-ppc-cpython-311/c/dec/huffman.o -arch ppc -isysroot/
/usr/bin/gcc-4.2 -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -pipe -Os -DOS_MACOSX=1 -Ic/include -I/opt/local/Library/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c c/dec/state.c -o bin/temp.macosx-10.6-ppc-cpython-311/c/dec/state.o -arch ppc -isysroot/
/usr/bin/gcc-4.2 -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -pipe -Os -DOS_MACOSX=1 -Ic/include -I/opt/local/Library/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c c/enc/backward_references.c -o bin/temp.macosx-10.6-ppc-cpython-311/c/enc/backward_references.o -arch ppc -isysroot/
/usr/bin/gcc-4.2 -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -pipe -Os -DOS_MACOSX=1 -Ic/include -I/opt/local/Library/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c c/enc/backward_references_hq.c -o bin/temp.macosx-10.6-ppc-cpython-311/c/enc/backward_references_hq.o -arch ppc -isysroot/
/usr/bin/gcc-4.2 -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -pipe -Os -DOS_MACOSX=1 -Ic/include -I/opt/local/Library/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c c/enc/bit_cost.c -o bin/temp.macosx-10.6-ppc-cpython-311/c/enc/bit_cost.o -arch ppc -isysroot/
/usr/bin/gcc-4.2 -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -pipe -Os -DOS_MACOSX=1 -Ic/include -I/opt/local/Library/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c c/enc/block_splitter.c -o bin/temp.macosx-10.6-ppc-cpython-311/c/enc/block_splitter.o -arch ppc -isysroot/
/usr/bin/gcc-4.2 -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -pipe -Os -DOS_MACOSX=1 -Ic/include -I/opt/local/Library/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c c/enc/brotli_bit_stream.c -o bin/temp.macosx-10.6-ppc-cpython-311/c/enc/brotli_bit_stream.o -arch ppc -isysroot/
/usr/bin/gcc-4.2 -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -pipe -Os -DOS_MACOSX=1 -Ic/include -I/opt/local/Library/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c c/enc/cluster.c -o bin/temp.macosx-10.6-ppc-cpython-311/c/enc/cluster.o -arch ppc -isysroot/
/usr/bin/gcc-4.2 -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -pipe -Os -DOS_MACOSX=1 -Ic/include -I/opt/local/Library/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c c/enc/command.c -o bin/temp.macosx-10.6-ppc-cpython-311/c/enc/command.o -arch ppc -isysroot/
/usr/bin/gcc-4.2 -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -pipe -Os -DOS_MACOSX=1 -Ic/include -I/opt/local/Library/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c c/enc/compound_dictionary.c -o bin/temp.macosx-10.6-ppc-cpython-311/c/enc/compound_dictionary.o -arch ppc -isysroot/
/usr/bin/gcc-4.2 -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -pipe -Os -DOS_MACOSX=1 -Ic/include -I/opt/local/Library/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c c/enc/compress_fragment.c -o bin/temp.macosx-10.6-ppc-cpython-311/c/enc/compress_fragment.o -arch ppc -isysroot/
/usr/bin/gcc-4.2 -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -pipe -Os -DOS_MACOSX=1 -Ic/include -I/opt/local/Library/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c c/enc/compress_fragment_two_pass.c -o bin/temp.macosx-10.6-ppc-cpython-311/c/enc/compress_fragment_two_pass.o -arch ppc -isysroot/
/usr/bin/gcc-4.2 -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -pipe -Os -DOS_MACOSX=1 -Ic/include -I/opt/local/Library/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c c/enc/dictionary_hash.c -o bin/temp.macosx-10.6-ppc-cpython-311/c/enc/dictionary_hash.o -arch ppc -isysroot/
/usr/bin/gcc-4.2 -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -pipe -Os -DOS_MACOSX=1 -Ic/include -I/opt/local/Library/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c c/enc/encode.c -o bin/temp.macosx-10.6-ppc-cpython-311/c/enc/encode.o -arch ppc -isysroot/
/usr/bin/gcc-4.2 -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -pipe -Os -DOS_MACOSX=1 -Ic/include -I/opt/local/Library/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c c/enc/encoder_dict.c -o bin/temp.macosx-10.6-ppc-cpython-311/c/enc/encoder_dict.o -arch ppc -isysroot/
/usr/bin/gcc-4.2 -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -pipe -Os -DOS_MACOSX=1 -Ic/include -I/opt/local/Library/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c c/enc/entropy_encode.c -o bin/temp.macosx-10.6-ppc-cpython-311/c/enc/entropy_encode.o -arch ppc -isysroot/
/usr/bin/gcc-4.2 -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -pipe -Os -DOS_MACOSX=1 -Ic/include -I/opt/local/Library/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c c/enc/fast_log.c -o bin/temp.macosx-10.6-ppc-cpython-311/c/enc/fast_log.o -arch ppc -isysroot/
/usr/bin/gcc-4.2 -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -pipe -Os -DOS_MACOSX=1 -Ic/include -I/opt/local/Library/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c c/enc/histogram.c -o bin/temp.macosx-10.6-ppc-cpython-311/c/enc/histogram.o -arch ppc -isysroot/
/usr/bin/gcc-4.2 -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -pipe -Os -DOS_MACOSX=1 -Ic/include -I/opt/local/Library/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c c/enc/literal_cost.c -o bin/temp.macosx-10.6-ppc-cpython-311/c/enc/literal_cost.o -arch ppc -isysroot/
/usr/bin/gcc-4.2 -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -pipe -Os -DOS_MACOSX=1 -Ic/include -I/opt/local/Library/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c c/enc/memory.c -o bin/temp.macosx-10.6-ppc-cpython-311/c/enc/memory.o -arch ppc -isysroot/
/usr/bin/gcc-4.2 -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -pipe -Os -DOS_MACOSX=1 -Ic/include -I/opt/local/Library/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c c/enc/metablock.c -o bin/temp.macosx-10.6-ppc-cpython-311/c/enc/metablock.o -arch ppc -isysroot/
/usr/bin/gcc-4.2 -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -pipe -Os -DOS_MACOSX=1 -Ic/include -I/opt/local/Library/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c c/enc/static_dict.c -o bin/temp.macosx-10.6-ppc-cpython-311/c/enc/static_dict.o -arch ppc -isysroot/
/usr/bin/gcc-4.2 -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -pipe -Os -DOS_MACOSX=1 -Ic/include -I/opt/local/Library/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c c/enc/utf8_util.c -o bin/temp.macosx-10.6-ppc-cpython-311/c/enc/utf8_util.o -arch ppc -isysroot/
/usr/bin/gcc-4.2 -bundle -undefined dynamic_lookup -L/opt/local/lib -Wl,-headerpad_max_install_names -Wl,-read_only_relocs,suppress -Wl,-force_cpusubtype_ALL -arch ppc -arch ppc -isysroot/ bin/temp.macosx-10.6-ppc-cpython-311/python/_brotli.o bin/temp.macosx-10.6-ppc-cpython-311/c/common/constants.o bin/temp.macosx-10.6-ppc-cpython-311/c/common/context.o bin/temp.macosx-10.6-ppc-cpython-311/c/common/dictionary.o bin/temp.macosx-10.6-ppc-cpython-311/c/common/platform.o bin/temp.macosx-10.6-ppc-cpython-311/c/common/shared_dictionary.o bin/temp.macosx-10.6-ppc-cpython-311/c/common/transform.o bin/temp.macosx-10.6-ppc-cpython-311/c/dec/bit_reader.o bin/temp.macosx-10.6-ppc-cpython-311/c/dec/decode.o bin/temp.macosx-10.6-ppc-cpython-311/c/dec/huffman.o bin/temp.macosx-10.6-ppc-cpython-311/c/dec/state.o bin/temp.macosx-10.6-ppc-cpython-311/c/enc/backward_references.o bin/temp.macosx-10.6-ppc-cpython-311/c/enc/backward_references_hq.o bin/temp.macosx-10.6-ppc-cpython-311/c/enc/bit_cost.o bin/temp.macosx-10.6-ppc-cpython-311/c/enc/block_splitter.o bin/temp.macosx-10.6-ppc-cpython-311/c/enc/brotli_bit_stream.o bin/temp.macosx-10.6-ppc-cpython-311/c/enc/cluster.o bin/temp.macosx-10.6-ppc-cpython-311/c/enc/command.o bin/temp.macosx-10.6-ppc-cpython-311/c/enc/compound_dictionary.o bin/temp.macosx-10.6-ppc-cpython-311/c/enc/compress_fragment.o bin/temp.macosx-10.6-ppc-cpython-311/c/enc/compress_fragment_two_pass.o bin/temp.macosx-10.6-ppc-cpython-311/c/enc/dictionary_hash.o bin/temp.macosx-10.6-ppc-cpython-311/c/enc/encode.o bin/temp.macosx-10.6-ppc-cpython-311/c/enc/encoder_dict.o bin/temp.macosx-10.6-ppc-cpython-311/c/enc/entropy_encode.o bin/temp.macosx-10.6-ppc-cpython-311/c/enc/fast_log.o bin/temp.macosx-10.6-ppc-cpython-311/c/enc/histogram.o bin/temp.macosx-10.6-ppc-cpython-311/c/enc/literal_cost.o bin/temp.macosx-10.6-ppc-cpython-311/c/enc/memory.o bin/temp.macosx-10.6-ppc-cpython-311/c/enc/metablock.o bin/temp.macosx-10.6-ppc-cpython-311/c/enc/static_dict.o bin/temp.macosx-10.6-ppc-cpython-311/c/enc/utf8_util.o -o bin/lib.macosx-10.6-ppc-cpython-311/_brotli.cpython-311-darwin.so
installing to bin/bdist.macosx-10.6-ppc/wheel
running install
running install_lib
creating bin/bdist.macosx-10.6-ppc/wheel

That is, for python 3.12+ *gcc-4.0 *gcc-4.2 must be blacklisted (or possibly C11 required).

comment:2 Changed 13 months ago by barracuda156

And the same fix needed for py312-brotlicffi.

/usr/bin/gcc-4.2 -fno-strict-overflow -Wsign-compare -fno-common -dynamic -DNDEBUG -g -O3 -Wall -pipe -Os -arch ppc -isysroot/ -std=c99 -Ilibbrotli/c/include -Ilibbrotli/c/common -Ilibbrotli/c -Isrc/brotlicffi -c libbrotli/c/enc/backward_references_hq.c -o build/temp.macosx-10.6-ppc-cpython-312/libbrotli/c/enc/backward_references_hq.o
libbrotli/c/enc/backward_references_hq.c:101: warning: declaration does not declare anything
libbrotli/c/enc/backward_references_hq.c: In function ‘ZopfliCostModelSetFromCommands’:
libbrotli/c/enc/backward_references_hq.c:158: error: ‘ZopfliCostModel’ has no member named ‘arena’
libbrotli/c/enc/backward_references_hq.c: In function ‘ZopfliCostModelSetFromLiteralCosts’:
libbrotli/c/enc/backward_references_hq.c:222: error: ‘ZopfliCostModel’ has no member named ‘literal_histograms’
error: command '/usr/bin/gcc-4.2' failed with exit code 1

ERROR Backend subprocess exited when trying to invoke build_wheel
Note: See TracTickets for help on using tickets.