Re: [MacPorts] #71661: py-ujson fails to build: error: ‘TypeContext’ has no member named ‘longValue’
MacPorts
noreply at macports.org
Sat Dec 28 18:29:41 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
Resolution: | Keywords:
Port: py312-ujson, py-ujson |
------------------------------------+------------------------
Comment (by barracuda156):
Replying to [comment:1 reneeotten]:
> it builds fine locally here, so it's likely a compiler or PPC issue.
Turns out that specifically `py312-ujson` fails, but `py311-ujson` builds
normally:
{{{
---> Building py311-ujson
Executing: cd "/opt/local/var/macports/build
/_opt_PPCSnowLeopardPorts_python_py-ujson/py311-ujson/work/ujson-5.10.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-ujson/py311-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.11/lib/python3.11
/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-311/deps/double-conversion
/double-conversion
creating build/temp.macosx-10.6-ppc-cpython-311/lib
creating build/temp.macosx-10.6-ppc-cpython-311/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.11/include/python3.11
-c ./deps/double-conversion/double-conversion/bignum-dtoa.cc -o
build/temp.macosx-10.6-ppc-cpython-311/./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.11/include/python3.11
-c ./deps/double-conversion/double-conversion/bignum.cc -o
build/temp.macosx-10.6-ppc-cpython-311/./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.11/include/python3.11
-c ./deps/double-conversion/double-conversion/cached-powers.cc -o
build/temp.macosx-10.6-ppc-cpython-311/./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.11/include/python3.11
-c ./deps/double-conversion/double-conversion/double-to-string.cc -o
build/temp.macosx-10.6-ppc-cpython-311/./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.11/include/python3.11
-c ./deps/double-conversion/double-conversion/fast-dtoa.cc -o
build/temp.macosx-10.6-ppc-cpython-311/./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.11/include/python3.11
-c ./deps/double-conversion/double-conversion/fixed-dtoa.cc -o
build/temp.macosx-10.6-ppc-cpython-311/./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.11/include/python3.11
-c ./deps/double-conversion/double-conversion/string-to-double.cc -o
build/temp.macosx-10.6-ppc-cpython-311/./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.11/include/python3.11
-c ./deps/double-conversion/double-conversion/strtod.cc -o
build/temp.macosx-10.6-ppc-cpython-311/./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.11/include/python3.11
-c ./lib/dconv_wrapper.cc -o build/temp.macosx-10.6-ppc-
cpython-311/./lib/dconv_wrapper.o -D_GNU_SOURCE
/usr/bin/gcc-4.2 -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -pipe
-Os -arch ppc -isysroot/ -I./python -I./lib -I./deps/double-conversion
/double-conversion
-I/opt/local/Library/Frameworks/Python.framework/Versions/3.11/include/python3.11
-c ./lib/ultrajsondec.c -o build/temp.macosx-10.6-ppc-
cpython-311/./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-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -pipe
-Os -arch ppc -isysroot/ -I./python -I./lib -I./deps/double-conversion
/double-conversion
-I/opt/local/Library/Frameworks/Python.framework/Versions/3.11/include/python3.11
-c ./lib/ultrajsonenc.c -o build/temp.macosx-10.6-ppc-
cpython-311/./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-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -pipe
-Os -arch ppc -isysroot/ -I./python -I./lib -I./deps/double-conversion
/double-conversion
-I/opt/local/Library/Frameworks/Python.framework/Versions/3.11/include/python3.11
-c ./python/JSONtoObj.c -o build/temp.macosx-10.6-ppc-
cpython-311/./python/JSONtoObj.o -D_GNU_SOURCE
/usr/bin/gcc-4.2 -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -pipe
-Os -arch ppc -isysroot/ -I./python -I./lib -I./deps/double-conversion
/double-conversion
-I/opt/local/Library/Frameworks/Python.framework/Versions/3.11/include/python3.11
-c ./python/objToJSON.c -o build/temp.macosx-10.6-ppc-
cpython-311/./python/objToJSON.o -D_GNU_SOURCE
./python/objToJSON.c: In function ‘PyUnicodeToUTF8Raw’:
./python/objToJSON.c:129: warning: initialization discards qualifiers from
pointer target type
/usr/bin/gcc-4.2 -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -pipe
-Os -arch ppc -isysroot/ -I./python -I./lib -I./deps/double-conversion
/double-conversion
-I/opt/local/Library/Frameworks/Python.framework/Versions/3.11/include/python3.11
-c ./python/ujson.c -o build/temp.macosx-10.6-ppc-
cpython-311/./python/ujson.o -D_GNU_SOURCE
creating build/lib.macosx-10.6-ppc-cpython-311
/usr/bin/g++-4.2 -arch ppc -isysroot/ -bundle -undefined dynamic_lookup
-arch ppc -arch ppc -isysroot/ build/temp.macosx-10.6-ppc-
cpython-311/./deps/double-conversion/double-conversion/bignum-dtoa.o
build/temp.macosx-10.6-ppc-cpython-311/./deps/double-conversion/double-
conversion/bignum.o build/temp.macosx-10.6-ppc-cpython-311/./deps/double-
conversion/double-conversion/cached-powers.o build/temp.macosx-10.6-ppc-
cpython-311/./deps/double-conversion/double-conversion/double-to-string.o
build/temp.macosx-10.6-ppc-cpython-311/./deps/double-conversion/double-
conversion/fast-dtoa.o build/temp.macosx-10.6-ppc-cpython-311/./deps
/double-conversion/double-conversion/fixed-dtoa.o build/temp.macosx-10.6
-ppc-cpython-311/./deps/double-conversion/double-conversion/string-to-
double.o build/temp.macosx-10.6-ppc-cpython-311/./deps/double-conversion
/double-conversion/strtod.o build/temp.macosx-10.6-ppc-
cpython-311/./lib/dconv_wrapper.o build/temp.macosx-10.6-ppc-
cpython-311/./lib/ultrajsondec.o build/temp.macosx-10.6-ppc-
cpython-311/./lib/ultrajsonenc.o build/temp.macosx-10.6-ppc-
cpython-311/./python/JSONtoObj.o build/temp.macosx-10.6-ppc-
cpython-311/./python/objToJSON.o build/temp.macosx-10.6-ppc-
cpython-311/./python/ujson.o -o build/lib.macosx-10.6-ppc-
cpython-311/ujson.cpython-311-darwin.so -lstdc++ -lm
installing to build/bdist.macosx-10.6-ppc/wheel
running install
running install_lib
creating build/bdist.macosx-10.6-ppc/wheel
copying build/lib.macosx-10.6-ppc-cpython-311/ujson.cpython-311-darwin.so
-> build/bdist.macosx-10.6-ppc/wheel/.
running install_egg_info
running egg_info
writing ujson.egg-info/PKG-INFO
writing dependency_links to ujson.egg-info/dependency_links.txt
writing top-level names to ujson.egg-info/top_level.txt
reading manifest file 'ujson.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE.txt'
writing manifest file 'ujson.egg-info/SOURCES.txt'
Copying ujson.egg-info to
build/bdist.macosx-10.6-ppc/wheel/./ujson-5.10.0-py3.11.egg-info
running install_scripts
creating build/bdist.macosx-10.6-ppc/wheel/ujson-5.10.0.dist-info/WHEEL
creating '/opt/local/var/macports/build
/_opt_PPCSnowLeopardPorts_python_py-ujson/py311-ujson/work/.tmp-
hlth8o2l/ujson-5.10.0-cp311-cp311-macosx_10_6_ppc.whl' and adding
'build/bdist.macosx-10.6-ppc/wheel' to it
adding 'ujson.cpython-311-darwin.so'
adding 'ujson-5.10.0.dist-info/LICENSE.txt'
adding 'ujson-5.10.0.dist-info/METADATA'
adding 'ujson-5.10.0.dist-info/WHEEL'
adding 'ujson-5.10.0.dist-info/top_level.txt'
adding 'ujson-5.10.0.dist-info/RECORD'
removing build/bdist.macosx-10.6-ppc/wheel
Successfully built ujson-5.10.0-cp311-cp311-macosx_10_6_ppc.whl
}}}
--
Ticket URL: <https://trac.macports.org/ticket/71661#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list