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
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.

Works fine for python 3.11 subport though:
That is, for python 3.12+
*gcc-4.0 *gcc-4.2must be blacklisted (or possibly C11 required).