<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Ah, OK. I guess I should stop at 3.7 for this upgrade then. Though they make odd releases more experimental and even releases more stable, correct? Or was that the linux kernel? I must be getting old and can’t remember...<br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Apr 28, 2020, at 7:14 AM, Phil Thompson <<a href="mailto:phil@riverbankcomputing.com" class="">phil@riverbankcomputing.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">On 28/04/2020 15:39, Patrick Stinson wrote:</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><blockquote type="cite" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">It looks like pyqtdeploy-sysroot (v2.4) is looking for sources that<br class="">don’t exist anymore in Python-3.8.2. After successfully building the<br class="">host interpreter for "—target macos-64", building the sysroot fails<br class="">with the following output:<br class="">Unpacking 'Python-3.8.2.tgz'<br class="">Copying /Users/patrick/dev/vendor/src/Python-3.8.2.tgz to<br class="">/Users/patrick/dev/vendor/sysroot-macos-64/build/Python-3.8.2<br class="">Unpacking 'Python-3.8.2.tgz'<br class="">Configuring Python v3.8.2 for macos-64<br class="">Installing<br class="">/Users/patrick/dev/vendor/sysroot-macos-64/build/Python-3.8.2/Python-3.8.2/Modules/config.c<br class="">Generating<br class="">/Users/patrick/dev/vendor/sysroot-macos-64/build/Python-3.8.2/Python-3.8.2/pyconfig.h<br class="">Installing<br class="">/Users/patrick/dev/vendor/sysroot-macos-64/build/Python-3.8.2/Python-3.8.2/python.pro<br class="">Running '/Users/patrick/dev/vendor/sysroot-macos-64/qt/bin/qmake<br class="">SYSROOT=/Users/patrick/dev/vendor/sysroot-macos-64'<br class="">Info: creating stash file<br class="">/Users/patrick/dev/vendor/sysroot-macos-64/build/Python-3.8.2/Python-3.8.2/.qmake.stash<br class="">WARNING: Failure to find: Parser/bitset.c<br class="">WARNING: Failure to find: Parser/metagrammar.c<br class="">WARNING: Failure to find: Parser/firstsets.c<br class="">WARNING: Failure to find: Parser/grammar.c<br class="">WARNING: Failure to find: Parser/pgen.c<br class="">WARNING: Failure to find: Modules/zipimport.c<br class="">Running 'make'<br class="">/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang<br class="">-c -pipe -fwrapv -std=c99 -O3 -fPIC  -arch x86_64 -isysroot<br class="">/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk<br class="">-mmacosx-version-min=10.13 -w -DNDEBUG -DPy_BUILD_CORE<br class="">-DVERSION=\"3.8\" -DVPATH=\".\" -DPREFIX=\"/\" -DEXEC_PREFIX=\"/\"<br class="">-DPYTHONPATH=\"/lib/python3.8\" -DPLATFORM=\"darwin\"<br class="">-DMULTIARCH=\"darwin\" -DABIFLAGS=\"m\" -I. -I. -IInclude<br class="">-I../../../qt/mkspecs/macx-clang -o .obj/getbuildinfo.o<br class="">Modules/getbuildinfo.c<br class="">/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang<br class="">-c -pipe -fwrapv -std=c99 -O3 -fPIC  -arch x86_64 -isysroot<br class="">/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk<br class="">-mmacosx-version-min=10.13 -w -DNDEBUG -DPy_BUILD_CORE<br class="">-DVERSION=\"3.8\" -DVPATH=\".\" -DPREFIX=\"/\" -DEXEC_PREFIX=\"/\"<br class="">-DPYTHONPATH=\"/lib/python3.8\" -DPLATFORM=\"darwin\"<br class="">-DMULTIARCH=\"darwin\" -DABIFLAGS=\"m\" -I. -I. -IInclude<br class="">-I../../../qt/mkspecs/macx-clang -o .obj/frozen.o Python/frozen.c<br class="">/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang<br class="">-c -pipe -fwrapv -std=c99 -O3 -fPIC  -arch x86_64 -isysroot<br class="">/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk<br class="">-mmacosx-version-min=10.13 -w -DNDEBUG -DPy_BUILD_CORE<br class="">-DVERSION=\"3.8\" -DVPATH=\".\" -DPREFIX=\"/\" -DEXEC_PREFIX=\"/\"<br class="">-DPYTHONPATH=\"/lib/python3.8\" -DPLATFORM=\"darwin\"<br class="">-DMULTIARCH=\"darwin\" -DABIFLAGS=\"m\" -I. -I. -IInclude<br class="">-I../../../qt/mkspecs/macx-clang -o .obj/acceler.o Parser/acceler.c<br class="">/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang<br class="">-c -pipe -fwrapv -std=c99 -O3 -fPIC  -arch x86_64 -isysroot<br class="">/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk<br class="">-mmacosx-version-min=10.13 -w -DNDEBUG -DPy_BUILD_CORE<br class="">-DVERSION=\"3.8\" -DVPATH=\".\" -DPREFIX=\"/\" -DEXEC_PREFIX=\"/\"<br class="">-DPYTHONPATH=\"/lib/python3.8\" -DPLATFORM=\"darwin\"<br class="">-DMULTIARCH=\"darwin\" -DABIFLAGS=\"m\" -I. -I. -IInclude<br class="">-I../../../qt/mkspecs/macx-clang -o .obj/grammar1.o Parser/grammar1.c<br class="">/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang<br class="">-c -pipe -fwrapv -std=c99 -O3 -fPIC  -arch x86_64 -isysroot<br class="">/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk<br class="">-mmacosx-version-min=10.13 -w -DNDEBUG -DPy_BUILD_CORE<br class="">-DVERSION=\"3.8\" -DVPATH=\".\" -DPREFIX=\"/\" -DEXEC_PREFIX=\"/\"<br class="">-DPYTHONPATH=\"/lib/python3.8\" -DPLATFORM=\"darwin\"<br class="">-DMULTIARCH=\"darwin\" -DABIFLAGS=\"m\" -I. -I. -IInclude<br class="">-I../../../qt/mkspecs/macx-clang -o .obj/listnode.o Parser/listnode.c<br class="">/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang<br class="">-c -pipe -fwrapv -std=c99 -O3 -fPIC  -arch x86_64 -isysroot<br class="">/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk<br class="">-mmacosx-version-min=10.13 -w -DNDEBUG -DPy_BUILD_CORE<br class="">-DVERSION=\"3.8\" -DVPATH=\".\" -DPREFIX=\"/\" -DEXEC_PREFIX=\"/\"<br class="">-DPYTHONPATH=\"/lib/python3.8\" -DPLATFORM=\"darwin\"<br class="">-DMULTIARCH=\"darwin\" -DABIFLAGS=\"m\" -I. -I. -IInclude<br class="">-I../../../qt/mkspecs/macx-clang -o .obj/node.o Parser/node.c<br class="">/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang<br class="">-c -pipe -fwrapv -std=c99 -O3 -fPIC  -arch x86_64 -isysroot<br class="">/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk<br class="">-mmacosx-version-min=10.13 -w -DNDEBUG -DPy_BUILD_CORE<br class="">-DVERSION=\"3.8\" -DVPATH=\".\" -DPREFIX=\"/\" -DEXEC_PREFIX=\"/\"<br class="">-DPYTHONPATH=\"/lib/python3.8\" -DPLATFORM=\"darwin\"<br class="">-DMULTIARCH=\"darwin\" -DABIFLAGS=\"m\" -I. -I. -IInclude<br class="">-I../../../qt/mkspecs/macx-clang -o .obj/parser.o Parser/parser.c<br class="">make: *** No rule to make target `Parser/bitset.c', needed by<br class="">`.obj/bitset.o'.  Stop.<br class="">pyqtdeploy-sysroot: Execution failed: returned exit code 2<br class="">Then when I add the following to python.pro,<br class="">   greaterThan(PY_MAJOR_VERSION, 2) {<br class="">       lessThan(PY_MINOR_VERSION, 8) {<br class="">           PARSER_SOURCES += \<br class="">               Parser/bitset.c \<br class="">               Parser/metagrammar.c \<br class="">               Parser/firstsets.c \<br class="">               Parser/grammar.c \<br class="">               Parser/pgen.c \<br class="">       }<br class="">       greaterThan(PY_MINOR_VERSION, 7) {<br class="">           PARSER_SOURCES += Parser/token.c<br class="">       }<br class="">   }<br class="">   greaterThan(PY_MINOR_VERSION, 5):lessThan(PY_MINOR_VERSION, 8) {<br class="">       MOD_SOURCES += \<br class="">           Modules/_io/winconsoleio.c \<br class="">           Modules/zipimport.c<br class="">   }<br class="">The non-host target build fails with the following message:<br class="">/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang<br class="">-c -pipe -fwrapv -std=c99 -O3 -fPIC  -arch x86_64 -isysroot<br class="">/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk<br class="">-mmacosx-version-min=10.13 -w -DNDEBUG -DPy_BUILD_CORE<br class="">-DVERSION=\"3.8\" -DVPATH=\".\" -DPREFIX=\"/\" -DEXEC_PREFIX=\"/\"<br class="">-DPYTHONPATH=\"/lib/python3.8\" -DPLATFORM=\"darwin\"<br class="">-DMULTIARCH=\"darwin\" -DABIFLAGS=\"m\" -I. -I. -IInclude<br class="">-I../../../qt/mkspecs/macx-clang -o .obj/myreadline.o<br class="">Parser/myreadline.c<br class="">Parser/myreadline.c:13:10: fatal error: 'pycore_pystate.h' file not found<br class="">#include "pycore_pystate.h"<br class="">        ^~~~~~~~~~~~~~~~~~<br class="">1 error generated.<br class="">make: *** [.obj/myreadline.o] Error 1<br class="">pyqtdeploy-sysroot: Execution failed: returned exit code 2<br class="">I imagine I’m missing something basic about version compatibility here?<br class=""></blockquote><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">Yes, v3.8 isn't supported.</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">Phil</span></div></blockquote></div><br class=""></body></html>