Failure to install qt5-qtwebengine on Apple Silicon
Franco Vaccari
fvaccari at me.com
Sun Dec 15 17:46:23 UTC 2024
Installation of py312-spyder has just failed on my system (Mac OS 15.2 on Apple Silicon, Xcode 16.2, CLT’s 16.2.0.0.1.1733547573) due to failure to install qt5-qtwebengine.
I didn’t expect this problem since a couple of days ago I successfully installed py312-spyder on another similar machine, but now that I think about it that machine was at Mac OS 15.1 and Xcode 16.1 at the time, and it was updated to Mac OS 15.2 and Xcode 16.2 *after* installing all the ports.
In the qt5-qtwebengine log file the first error appears at step 3009. I’m ready to file a bug report with the full 5.2 MB log file, but I’m not sure if it belongs to qt5-qtwebengine or to one of its dependencies, since for instance ../../3rdparty/chromium/third_party/freetype/src/src/gzip/ftgzip.c is mentioned.
What should be the correct way of reporting this? Below is the part of log relative to step 3009.
Thanks
Franco
…
…
:info:build [3009/23761] ../../../../../../../../../../../../Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -MMD -MF obj/third_party/freetype/freetype_source/ftgzip.o.d -DHAVE_UNISTD_H -DHAVE_FCNTL_H -DFT2_BUILD_LIBRARY -DOFFICIAL_BUILD -DTOOLKIT_QT -D_LIBCPP_HAS_NO_ALIGNED_ALLOCATION -DCR_XCODE_VERSION=1620 -D__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES=0 -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DFT_CONFIG_MODULES_H=\"freetype-custom/freetype/config/ftmodule.h\" -DFT_CONFIG_OPTIONS_H=\"freetype-custom/freetype/config/ftoption.h\" -DPDFIUM_REQUIRED_MODULES -DCHROMIUM_RESTRICT_VISIBILITY -I../../3rdparty/chromium/third_party/freetype/src/include/freetype/config -Igen -I../../3rdparty/chromium -I../../3rdparty/chromium/third_party/harfbuzz-ng/src/src -I../../3rdparty/chromium/third_party/freetype/include -I../../3rdparty/chromium/third_party/freetype/include/freetype-custom -I../../3rdparty/chromium/third_party/freetype/src/include -I../../3rdparty/chromium/third_party/libpng -I../../3rdparty/chromium/third_party/zlib -fno-strict-aliasing -fstack-protector -Wno-unknown-attributes -Wno-unknown-pragmas -Wno-unknown-warning-option -fcolor-diagnostics -fmerge-all-constants -arch arm64 -mcpu=apple-a12 -Oz -fno-omit-frame-pointer -g0 -isysroot ../../../../../../../../../../../../Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.2.sdk -mmacosx-version-min=14.0 -fvisibility=hidden -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -Wall -Wno-unused-variable -Wno-misleading-indentation -Wunguarded-availability -Wno-missing-field-initializers -Wno-unused-parameter -Wno-c++11-narrowing -Wno-unneeded-internal-declaration -Wno-undefined-var-template -Wno-psabi -Wno-ignored-pragma-optimize -Wno-implicit-int-float-conversion -Wno-final-dtor-non-final-class -Wno-builtin-assume-aligned-alignment -Wno-deprecated-copy -Wno-non-c-typedef-for-linkage -Wno-max-tokens -Wno-unused-function -Wno-deprecated-declarations -std=c11 -Wno-implicit-fallthrough -c ../../3rdparty/chromium/third_party/freetype/src/src/gzip/ftgzip.c -o obj/third_party/freetype/freetype_source/ftgzip.o
:info:build FAILED: obj/third_party/freetype/freetype_source/ftgzip.o
:info:build ../../../../../../../../../../../../Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -MMD -MF obj/third_party/freetype/freetype_source/ftgzip.o.d -DHAVE_UNISTD_H -DHAVE_FCNTL_H -DFT2_BUILD_LIBRARY -DOFFICIAL_BUILD -DTOOLKIT_QT -D_LIBCPP_HAS_NO_ALIGNED_ALLOCATION -DCR_XCODE_VERSION=1620 -D__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES=0 -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DFT_CONFIG_MODULES_H=\"freetype-custom/freetype/config/ftmodule.h\" -DFT_CONFIG_OPTIONS_H=\"freetype-custom/freetype/config/ftoption.h\" -DPDFIUM_REQUIRED_MODULES -DCHROMIUM_RESTRICT_VISIBILITY -I../../3rdparty/chromium/third_party/freetype/src/include/freetype/config -Igen -I../../3rdparty/chromium -I../../3rdparty/chromium/third_party/harfbuzz-ng/src/src -I../../3rdparty/chromium/third_party/freetype/include -I../../3rdparty/chromium/third_party/freetype/include/freetype-custom -I../../3rdparty/chromium/third_party/freetype/src/include -I../../3rdparty/chromium/third_party/libpng -I../../3rdparty/chromium/third_party/zlib -fno-strict-aliasing -fstack-protector -Wno-unknown-attributes -Wno-unknown-pragmas -Wno-unknown-warning-option -fcolor-diagnostics -fmerge-all-constants -arch arm64 -mcpu=apple-a12 -Oz -fno-omit-frame-pointer -g0 -isysroot ../../../../../../../../../../../../Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.2.sdk -mmacosx-version-min=14.0 -fvisibility=hidden -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -Wall -Wno-unused-variable -Wno-misleading-indentation -Wunguarded-availability -Wno-missing-field-initializers -Wno-unused-parameter -Wno-c++11-narrowing -Wno-unneeded-internal-declaration -Wno-undefined-var-template -Wno-psabi -Wno-ignored-pragma-optimize -Wno-implicit-int-float-conversion -Wno-final-dtor-non-final-class -Wno-builtin-assume-aligned-alignment -Wno-deprecated-copy -Wno-non-c-typedef-for-linkage -Wno-max-tokens -Wno-unused-function -Wno-deprecated-declarations -std=c11 -Wno-implicit-fallthrough -c ../../3rdparty/chromium/third_party/freetype/src/src/gzip/ftgzip.c -o obj/third_party/freetype/freetype_source/ftgzip.o
:info:build In file included from ../../3rdparty/chromium/third_party/freetype/src/src/gzip/ftgzip.c:72:
:info:build In file included from ../../3rdparty/chromium/third_party/freetype/src/src/gzip/zlib.h:34:
:info:build ../../3rdparty/chromium/third_party/freetype/src/src/gzip/ftzconf.h:228:12: error: unknown type name 'Byte'
:info:build 228 | typedef Byte FAR Bytef;
:info:build | ^
:info:build In file included from ../../3rdparty/chromium/third_party/freetype/src/src/gzip/ftgzip.c:90:
:info:build ../../3rdparty/chromium/third_party/freetype/src/src/gzip/inftrees.h:22:7: error: unknown type name 'Byte'
:info:build 22 | Byte Exop; /* number of extra bits or operation */
:info:build | ^
:info:build ../../3rdparty/chromium/third_party/freetype/src/src/gzip/inftrees.h:23:7: error: unknown type name 'Byte'
:info:build 23 | Byte Bits; /* number of bits in this code or subcode */
:info:build | ^
:info:build In file included from ../../3rdparty/chromium/third_party/freetype/src/src/gzip/ftgzip.c:98:
:info:build ../../3rdparty/chromium/third_party/freetype/src/src/gzip/inftrees.c:247:21: error: use of undeclared identifier 'Byte'
:info:build 247 | r.bits = (Byte)l; /* bits to dump before this table */
:info:build | ^
:info:build ../../3rdparty/chromium/third_party/freetype/src/src/gzip/inftrees.c:248:21: error: use of undeclared identifier 'Byte'
:info:build 248 | r.exop = (Byte)j; /* bits in this table */
:info:build | ^
:info:build ../../3rdparty/chromium/third_party/freetype/src/src/gzip/inftrees.c:258:17: error: use of undeclared identifier 'Byte'
:info:build 258 | r.bits = (Byte)(k - w);
:info:build | ^
:info:build ../../3rdparty/chromium/third_party/freetype/src/src/gzip/inftrees.c:263:19: error: use of undeclared identifier 'Byte'
:info:build 263 | r.exop = (Byte)(*p < 256 ? 0 : 32 + 64); /* 256 is end-of-block */
:info:build | ^
:info:build ../../3rdparty/chromium/third_party/freetype/src/src/gzip/inftrees.c:268:19: error: use of undeclared identifier 'Byte'
:info:build 268 | r.exop = (Byte)(e[*p - s] + 16 + 64);/* non-simple--look up in lists */
:info:build | ^
:info:build In file included from ../../3rdparty/chromium/third_party/freetype/src/src/gzip/ftgzip.c:100:
:info:build ../../3rdparty/chromium/third_party/freetype/src/src/gzip/infcodes.c:50:3: error: unknown type name 'Byte'
:info:build 50 | Byte lbits; /* ltree bits decoded per branch */
:info:build | ^
:info:build ../../3rdparty/chromium/third_party/freetype/src/src/gzip/infcodes.c:51:3: error: unknown type name 'Byte'
:info:build 51 | Byte dbits; /* dtree bits decoder per branch */
:info:build | ^
:info:build ../../3rdparty/chromium/third_party/freetype/src/src/gzip/infcodes.c:70:17: error: use of undeclared identifier 'Byte'
:info:build 70 | c->lbits = (Byte)bl;
:info:build | ^
:info:build ../../3rdparty/chromium/third_party/freetype/src/src/gzip/infcodes.c:71:17: error: use of undeclared identifier 'Byte'
:info:build 71 | c->dbits = (Byte)bd;
:info:build | ^
:info:build ../../3rdparty/chromium/third_party/freetype/src/src/gzip/infcodes.c:207:9: error: use of undeclared identifier 'Byte'
:info:build 207 | OUTBYTE(*f++)
:info:build | ^
:info:build ../../3rdparty/chromium/third_party/freetype/src/src/gzip/infutil.h:83:27: note: expanded from macro 'OUTBYTE'
:info:build 83 | #define OUTBYTE(a) {*q++=(Byte)(a);m--;}
:info:build | ^
:info:build In file included from ../../3rdparty/chromium/third_party/freetype/src/src/gzip/ftgzip.c:100:
:info:build ../../3rdparty/chromium/third_party/freetype/src/src/gzip/infcodes.c:216:7: error: use of undeclared identifier 'Byte'
:info:build 216 | OUTBYTE(c->sub.lit)
:info:build | ^
:info:build ../../3rdparty/chromium/third_party/freetype/src/src/gzip/infutil.h:83:27: note: expanded from macro 'OUTBYTE'
:info:build 83 | #define OUTBYTE(a) {*q++=(Byte)(a);m--;}
:info:build | ^
:info:build ../../3rdparty/chromium/third_party/freetype/src/src/gzip/ftgzip.c:312:23: warning: incompatible pointer types assigning to 'Bytef *' (aka 'int *') from 'FT_Byte[4096]' (aka 'unsigned char[4096]') [-Wincompatible-pointer-types]
:info:build 312 | zstream->next_in = zip->buffer;
:info:build | ^ ~~~~~~~~~~~
:info:build ../../3rdparty/chromium/third_party/freetype/src/src/gzip/ftgzip.c:361:26: warning: incompatible pointer types assigning to 'Bytef *' (aka 'int *') from 'FT_Byte[4096]' (aka 'unsigned char[4096]') [-Wincompatible-pointer-types]
:info:build 361 | zstream->next_in = zip->input;
:info:build | ^ ~~~~~~~~~~
:info:build ../../3rdparty/chromium/third_party/freetype/src/src/gzip/ftgzip.c:363:26: warning: incompatible pointer types assigning to 'Bytef *' (aka 'int *') from 'FT_Byte[4096]' (aka 'unsigned char[4096]') [-Wincompatible-pointer-types]
:info:build 363 | zstream->next_out = zip->buffer;
:info:build | ^ ~~~~~~~~~~~
:info:build ../../3rdparty/chromium/third_party/freetype/src/src/gzip/ftgzip.c:408:23: warning: incompatible pointer types assigning to 'Bytef *' (aka 'int *') from 'FT_Byte[4096]' (aka 'unsigned char[4096]') [-Wincompatible-pointer-types]
:info:build 408 | zstream->next_in = zip->input;
:info:build | ^ ~~~~~~~~~~
:info:build ../../3rdparty/chromium/third_party/freetype/src/src/gzip/ftgzip.c:423:24: warning: incompatible pointer types assigning to 'Bytef *' (aka 'int *') from 'FT_Byte *' (aka 'unsigned char *') [-Wincompatible-pointer-types]
:info:build 423 | zstream->next_out = zip->cursor;
:info:build | ^ ~~~~~~~~~~~
:info:build ../../3rdparty/chromium/third_party/freetype/src/src/gzip/ftgzip.c:442:20: warning: incompatible pointer types assigning to 'FT_Byte *' (aka 'unsigned char *') from 'Bytef *' (aka 'int *') [-Wincompatible-pointer-types]
:info:build 442 | zip->limit = zstream->next_out;
:info:build | ^ ~~~~~~~~~~~~~~~~~
:info:build ../../3rdparty/chromium/third_party/freetype/src/src/gzip/ftgzip.c:741:22: warning: incompatible pointer types assigning to 'Bytef *' (aka 'int *') from 'FT_Byte *' (aka 'unsigned char *') [-Wincompatible-pointer-types]
:info:build 741 | stream.next_out = output;
:info:build | ^ ~~~~~~
:info:build 7 warnings and 14 errors generated.
…
…
Not even sure this is the reason of the failure since many more steps are executed before finally dying after step 3029…
…
…
:info:build [3029/23761] ../../../../../../../../../../../../Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -MMD -MF obj/third_party/freetype/freetype_source/psaux.o.d -DHAVE_UNISTD_H -DHAVE_FCNTL_H -DFT2_BUILD_LIBRARY -DOFFICIAL_BUILD -DTOOLKIT_QT -D_LIBCPP_HAS_NO_ALIGNED_ALLOCATION -DCR_XCODE_VERSION=1620 -D__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES=0 -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DFT_CONFIG_MODULES_H=\"freetype-custom/freetype/config/ftmodule.h\" -DFT_CONFIG_OPTIONS_H=\"freetype-custom/freetype/config/ftoption.h\" -DPDFIUM_REQUIRED_MODULES -DCHROMIUM_RESTRICT_VISIBILITY -I../../3rdparty/chromium/third_party/freetype/src/include/freetype/config -Igen -I../../3rdparty/chromium -I../../3rdparty/chromium/third_party/harfbuzz-ng/src/src -I../../3rdparty/chromium/third_party/freetype/include -I../../3rdparty/chromium/third_party/freetype/include/freetype-custom -I../../3rdparty/chromium/third_party/freetype/src/include -I../../3rdparty/chromium/third_party/libpng -I../../3rdparty/chromium/third_party/zlib -fno-strict-aliasing -fstack-protector -Wno-unknown-attributes -Wno-unknown-pragmas -Wno-unknown-warning-option -fcolor-diagnostics -fmerge-all-constants -arch arm64 -mcpu=apple-a12 -Oz -fno-omit-frame-pointer -g0 -isysroot ../../../../../../../../../../../../Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.2.sdk -mmacosx-version-min=14.0 -fvisibility=hidden -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -Wall -Wno-unused-variable -Wno-misleading-indentation -Wunguarded-availability -Wno-missing-field-initializers -Wno-unused-parameter -Wno-c++11-narrowing -Wno-unneeded-internal-declaration -Wno-undefined-var-template -Wno-psabi -Wno-ignored-pragma-optimize -Wno-implicit-int-float-conversion -Wno-final-dtor-non-final-class -Wno-builtin-assume-aligned-alignment -Wno-deprecated-copy -Wno-non-c-typedef-for-linkage -Wno-max-tokens -Wno-unused-function -Wno-deprecated-declarations -std=c11 -Wno-implicit-fallthrough -c ../../3rdparty/chromium/third_party/freetype/src/src/psaux/psaux.c -o obj/third_party/freetype/freetype_source/psaux.o
:info:build ninja: build stopped: subcommand failed.
:info:build make[3]: *** [run_ninja] Error 1
:info:build make[3]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_qt5/qt5-qtwebengine/work/qtwebengine-5.15.17-lts/src/core'
:info:build make[2]: *** [sub-gn_run-pro-make_first] Error 2
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_qt5/qt5-qtwebengine/work/qtwebengine-5.15.17-lts/src/core'
:info:build make[1]: *** [sub-core-make_first] Error 2
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_qt5/qt5-qtwebengine/work/qtwebengine-5.15.17-lts/src'
:info:build make: *** [sub-src-make_first] Error 2
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_qt5/qt5-qtwebengine/work/qtwebengine-5.15.17-lts'
:info:build Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_qt5/qt5-qtwebengine/work/qtwebengine-5.15.17-lts" && /usr/bin/make -j10 -w
:info:build Exit code: 2
:error:build Failed to build qt5-qtwebengine: command execution failed
:debug:build Error code: CHILDSTATUS 1234 2
:debug:build Backtrace: command execution failed
:debug:build while executing
:debug:build "system {*}$notty {*}$callback {*}$nice $fullcmdstring"
:debug:build invoked from within
:debug:build "command_exec -callback portprogress::target_progress_callback build"
:debug:build (procedure "portbuild::build_main" line 10)
:debug:build invoked from within
:debug:build "$procedure $targetname"
:error:build See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_qt5/qt5-qtwebengine/main.log for details.
<.org_macports_release_tarballs_ports_aqua_qt5/qt5-qtwebengine/main.log" [readonly] 13212L, 5475638B 13211,1 Bot
More information about the macports-users
mailing list