Re: [MacPorts] #71686: py312-brotli build error: error: ‘ZopfliCostModel’ has no member named ‘arena’
MacPorts
noreply at macports.org
Mon Dec 30 23:01:41 UTC 2024
#71686: py312-brotli build error: error: ‘ZopfliCostModel’ has no member named
‘arena’
---------------------------+--------------------
Reporter: barracuda156 | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.10.5
Resolution: | Keywords:
Port: py312-brotli |
---------------------------+--------------------
Comment (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).
--
Ticket URL: <https://trac.macports.org/ticket/71686#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list