[MacPorts] #71661: py-ujson fails to build: error: ‘TypeContext’ has no member named ‘longValue’
MacPorts
noreply at macports.org
Fri Dec 27 23:43:11 UTC 2024
#71661: py-ujson fails to build: error: ‘TypeContext’ has no member named
‘longValue’
--------------------------+-----------------------------------
Reporter: barracuda156 | Owner: reneeotten
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.10.5
Keywords: | Port: py312-ujson, py-ujson
--------------------------+-----------------------------------
This is likely something with its dependencies, since there was no update
to `py-ujson` for quite some time, and that version did build earlier.
{{{
---> Building py312-ujson
Executing: cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
.org_macports_release_tarballs_ports_python_py-
ujson/py312-ujson/work/ujson-5.10.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-ujson/py312-ujson/work
* Getting build dependencies for wheel...
* Building wheel...
WARNING setuptools_scm.pyproject_reading toml section missing
'pyproject.toml does not contain a tool.setuptools_scm section'
Traceback (most recent call last):
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12
/site-packages/setuptools_scm/_integration/pyproject_reading.py", line 36,
in read_pyproject
section = defn.get("tool", {})[tool_name]
~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
KeyError: 'setuptools_scm'
running bdist_wheel
running build
running build_ext
building 'ujson' extension
creating build/temp.macosx-10.6-ppc-cpython-312/deps/double-conversion
/double-conversion
creating build/temp.macosx-10.6-ppc-cpython-312/lib
creating build/temp.macosx-10.6-ppc-cpython-312/python
/usr/bin/g++-4.2 -arch ppc -isysroot/ -I./python -I./lib -I./deps/double-
conversion/double-conversion
-I/opt/local/Library/Frameworks/Python.framework/Versions/3.12/include/python3.12
-c ./deps/double-conversion/double-conversion/bignum-dtoa.cc -o
build/temp.macosx-10.6-ppc-cpython-312/./deps/double-conversion/double-
conversion/bignum-dtoa.o -D_GNU_SOURCE
/usr/bin/g++-4.2 -arch ppc -isysroot/ -I./python -I./lib -I./deps/double-
conversion/double-conversion
-I/opt/local/Library/Frameworks/Python.framework/Versions/3.12/include/python3.12
-c ./deps/double-conversion/double-conversion/bignum.cc -o
build/temp.macosx-10.6-ppc-cpython-312/./deps/double-conversion/double-
conversion/bignum.o -D_GNU_SOURCE
/usr/bin/g++-4.2 -arch ppc -isysroot/ -I./python -I./lib -I./deps/double-
conversion/double-conversion
-I/opt/local/Library/Frameworks/Python.framework/Versions/3.12/include/python3.12
-c ./deps/double-conversion/double-conversion/cached-powers.cc -o
build/temp.macosx-10.6-ppc-cpython-312/./deps/double-conversion/double-
conversion/cached-powers.o -D_GNU_SOURCE
/usr/bin/g++-4.2 -arch ppc -isysroot/ -I./python -I./lib -I./deps/double-
conversion/double-conversion
-I/opt/local/Library/Frameworks/Python.framework/Versions/3.12/include/python3.12
-c ./deps/double-conversion/double-conversion/double-to-string.cc -o
build/temp.macosx-10.6-ppc-cpython-312/./deps/double-conversion/double-
conversion/double-to-string.o -D_GNU_SOURCE
/usr/bin/g++-4.2 -arch ppc -isysroot/ -I./python -I./lib -I./deps/double-
conversion/double-conversion
-I/opt/local/Library/Frameworks/Python.framework/Versions/3.12/include/python3.12
-c ./deps/double-conversion/double-conversion/fast-dtoa.cc -o
build/temp.macosx-10.6-ppc-cpython-312/./deps/double-conversion/double-
conversion/fast-dtoa.o -D_GNU_SOURCE
/usr/bin/g++-4.2 -arch ppc -isysroot/ -I./python -I./lib -I./deps/double-
conversion/double-conversion
-I/opt/local/Library/Frameworks/Python.framework/Versions/3.12/include/python3.12
-c ./deps/double-conversion/double-conversion/fixed-dtoa.cc -o
build/temp.macosx-10.6-ppc-cpython-312/./deps/double-conversion/double-
conversion/fixed-dtoa.o -D_GNU_SOURCE
/usr/bin/g++-4.2 -arch ppc -isysroot/ -I./python -I./lib -I./deps/double-
conversion/double-conversion
-I/opt/local/Library/Frameworks/Python.framework/Versions/3.12/include/python3.12
-c ./deps/double-conversion/double-conversion/string-to-double.cc -o
build/temp.macosx-10.6-ppc-cpython-312/./deps/double-conversion/double-
conversion/string-to-double.o -D_GNU_SOURCE
/usr/bin/g++-4.2 -arch ppc -isysroot/ -I./python -I./lib -I./deps/double-
conversion/double-conversion
-I/opt/local/Library/Frameworks/Python.framework/Versions/3.12/include/python3.12
-c ./deps/double-conversion/double-conversion/strtod.cc -o
build/temp.macosx-10.6-ppc-cpython-312/./deps/double-conversion/double-
conversion/strtod.o -D_GNU_SOURCE
/usr/bin/g++-4.2 -arch ppc -isysroot/ -I./python -I./lib -I./deps/double-
conversion/double-conversion
-I/opt/local/Library/Frameworks/Python.framework/Versions/3.12/include/python3.12
-c ./lib/dconv_wrapper.cc -o build/temp.macosx-10.6-ppc-
cpython-312/./lib/dconv_wrapper.o -D_GNU_SOURCE
/usr/bin/gcc-4.2 -fno-strict-overflow -Wsign-compare -fno-common -dynamic
-DNDEBUG -g -O3 -Wall -pipe -Os -arch ppc -isysroot/ -std=c99 -I./python
-I./lib -I./deps/double-conversion/double-conversion
-I/opt/local/Library/Frameworks/Python.framework/Versions/3.12/include/python3.12
-c ./lib/ultrajsondec.c -o build/temp.macosx-10.6-ppc-
cpython-312/./lib/ultrajsondec.o -D_GNU_SOURCE
./lib/ultrajsondec.c:69: warning: ‘fastcall’ attribute directive ignored
./lib/ultrajsondec.c:80: warning: ‘fastcall’ attribute directive ignored
./lib/ultrajsondec.c:92: warning: ‘fastcall’ attribute directive ignored
./lib/ultrajsondec.c:250: warning: ‘fastcall’ attribute directive ignored
./lib/ultrajsondec.c:270: warning: ‘fastcall’ attribute directive ignored
./lib/ultrajsondec.c:292: warning: ‘fastcall’ attribute directive ignored
./lib/ultrajsondec.c:312: warning: ‘fastcall’ attribute directive ignored
./lib/ultrajsondec.c:363: warning: ‘fastcall’ attribute directive ignored
./lib/ultrajsondec.c:590: warning: ‘fastcall’ attribute directive ignored
./lib/ultrajsondec.c:654: warning: ‘fastcall’ attribute directive ignored
./lib/ultrajsondec.c:748: warning: ‘fastcall’ attribute directive ignored
/usr/bin/gcc-4.2 -fno-strict-overflow -Wsign-compare -fno-common -dynamic
-DNDEBUG -g -O3 -Wall -pipe -Os -arch ppc -isysroot/ -std=c99 -I./python
-I./lib -I./deps/double-conversion/double-conversion
-I/opt/local/Library/Frameworks/Python.framework/Versions/3.12/include/python3.12
-c ./lib/ultrajsonenc.c -o build/temp.macosx-10.6-ppc-
cpython-312/./lib/ultrajsonenc.o -D_GNU_SOURCE
./lib/ultrajsonenc.c:184: warning: ‘fastcall’ attribute directive ignored
./lib/ultrajsonenc.c:543: warning: ‘fastcall’ attribute directive ignored
./lib/ultrajsonenc.c:565: warning: ‘fastcall’ attribute directive ignored
/usr/bin/gcc-4.2 -fno-strict-overflow -Wsign-compare -fno-common -dynamic
-DNDEBUG -g -O3 -Wall -pipe -Os -arch ppc -isysroot/ -std=c99 -I./python
-I./lib -I./deps/double-conversion/double-conversion
-I/opt/local/Library/Frameworks/Python.framework/Versions/3.12/include/python3.12
-c ./python/JSONtoObj.c -o build/temp.macosx-10.6-ppc-
cpython-312/./python/JSONtoObj.o -D_GNU_SOURCE
/usr/bin/gcc-4.2 -fno-strict-overflow -Wsign-compare -fno-common -dynamic
-DNDEBUG -g -O3 -Wall -pipe -Os -arch ppc -isysroot/ -std=c99 -I./python
-I./lib -I./deps/double-conversion/double-conversion
-I/opt/local/Library/Frameworks/Python.framework/Versions/3.12/include/python3.12
-c ./python/objToJSON.c -o build/temp.macosx-10.6-ppc-
cpython-312/./python/objToJSON.o -D_GNU_SOURCE
./python/objToJSON.c:68: warning: declaration does not declare anything
./python/objToJSON.c: In function ‘PyLongToINT64’:
./python/objToJSON.c:84: error: ‘TypeContext’ has no member named
‘longValue’
./python/objToJSON.c: In function ‘PyLongToUINT64’:
./python/objToJSON.c:90: error: ‘TypeContext’ has no member named
‘unsignedLongValue’
./python/objToJSON.c: In function ‘PyLongToINTSTR’:
./python/objToJSON.c:96: error: ‘TypeContext’ has no member named
‘rawJSONValue’
./python/objToJSON.c: In function ‘PyUnicodeToUTF8Raw’:
./python/objToJSON.c:129: warning: initialization discards qualifiers from
pointer target type
./python/objToJSON.c: In function ‘PyRawJSONToUTF8’:
./python/objToJSON.c:152: error: ‘TypeContext’ has no member named
‘rawJSONValue’
./python/objToJSON.c: In function ‘Object_beginTypeContext’:
./python/objToJSON.c:369: error: ‘TypeContext’ has no member named
‘longValue’
./python/objToJSON.c:370: error: ‘TypeContext’ has no member named
‘rawJSONValue’
./python/objToJSON.c:391: error: ‘TypeContext’ has no member named
‘longValue’
./python/objToJSON.c:392: error: ‘TypeContext’ has no member named
‘longValue’
./python/objToJSON.c:403: error: ‘TypeContext’ has no member named
‘unsignedLongValue’
./python/objToJSON.c:404: error: ‘TypeContext’ has no member named
‘unsignedLongValue’
./python/objToJSON.c:413: error: ‘TypeContext’ has no member named
‘rawJSONValue’
./python/objToJSON.c:414: error: ‘TypeContext’ has no member named
‘rawJSONValue’
./python/objToJSON.c:536: error: ‘TypeContext’ has no member named
‘rawJSONValue’
./python/objToJSON.c: In function ‘Object_endTypeContext’:
./python/objToJSON.c:595: error: ‘TypeContext’ has no member named
‘rawJSONValue’
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-
ujson/py312-ujson/work/ujson-5.10.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-ujson/py312-ujson/work
Exit code: 1
Error: Failed to build py312-ujson: command execution failed
}}}
`glances` depend on this port, so it is really desirable to have it
working.
--
Ticket URL: <https://trac.macports.org/ticket/71661>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list