Opened 2 years ago

Closed 2 years ago

#63805 closed defect (fixed)

qt5-qtbase @5.15.2_2 fails to install on macOS Monterey

Reported by: tcwan (TC Wan) Owned by: MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Priority: Normal Milestone:
Component: ports Version: 2.7.1
Keywords: monterey Cc: cooljeanius (Eric Gallager), chrstphrchvz (Christopher Chavez), jsalort (Julien Salort), diekhans (Mark Diekhans), michaellass (Michael Lass)
Port: qt5-qtbase

Description

Latest qt5-qtbase build proceeds until installation phase and then fails to install.

--->  Fetching archive for qt5-qtbase
--->  Attempting to fetch qt5-qtbase-5.15.2_2+openssl.darwin_21.x86_64.tbz2 from https://packages.macports.org/qt5-qtbase
--->  Attempting to fetch qt5-qtbase-5.15.2_2+openssl.darwin_21.x86_64.tbz2 from http://jog.id.packages.macports.org/macports/packages/qt5-qtbase
--->  Attempting to fetch qt5-qtbase-5.15.2_2+openssl.darwin_21.x86_64.tbz2 from https://pek.cn.packages.macports.org/macports/packages/qt5-qtbase
--->  Fetching distfiles for qt5-qtbase
--->  Verifying checksums for qt5-qtbase
--->  Extracting qt5-qtbase
--->  Applying patches to qt5-qtbase
--->  Configuring qt5-qtbase
--->  Building qt5-qtbase                                
--->  Staging qt5-qtbase into destroot                   
Error: Failed to destroot qt5-qtbase: command execution failed

--- 
[snap of build log]
:info:destroot cd tools/moc/ && ( test -e Makefile || /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_aqua_qt5/qt5-qtbase/work/qtbase-everywhere-src-5.15.2/bin/qmake -o Makefile /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_aqua_qt5/qt5-qtbase/work/qtbase-everywhere-src-5.15.2/src/tools/moc/moc.pro ) && /Applications/Xcode.app/Contents/Developer/usr/bin/make -f Makefile install
:info:destroot The platform SDK has been changed from version 12.0 to version 2021-11-05 10:00:11.038 xcodebuild[40013:76324] XType: com.apple.fonts is not accessible. 2021-11-05 10:00:11.038 xcodebuild[40013:76324] XType: XTFontStaticRegistry is enabled. 2021-11-05 10:00:12.218 xcodebuild[40015:76335] XType: com.apple.fonts is not accessible. 2021-11-05 10:00:12.219 xcodebuild[40015:76335] XType: XTFontStaticRegistry is enabled. 2021-11-05 10:00:13.321 xcodebuild[40016:76345] XType: com.apple.fonts is not accessible. 2021-11-05 10:00:13.322 xcodebuild[40016:76345] XType: XTFontStaticRegistry is enabled. 12.0.
:info:destroot This requires a fresh build. Please wipe the build directory completely,
:info:destroot including any .qmake.stash and .qmake.cache files generated by qmake.
:info:destroot make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_aqua_qt5/qt5-qtbase/work/qtbase-everywhere-src-5.15.2/src/tools/moc'
:info:destroot /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_aqua_qt5/qt5-qtbase/work/qtbase-everywhere-src-5.15.2/mkspecs/features/mac/sdk.mk:22: *** ^.  Stop.
:info:destroot make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_aqua_qt5/qt5-qtbase/work/qtbase-everywhere-src-5.15.2/src/tools/moc'
:info:destroot make[1]: *** [sub-moc-install_subtargets] Error 2
:info:destroot make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_aqua_qt5/qt5-qtbase/work/qtbase-everywhere-src-5.15.2/src'
:info:destroot make: *** [sub-src-install_subtargets] Error 2
:info:destroot make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_aqua_qt5/qt5-qtbase/work/qtbase-everywhere-src-5.15.2'
:info:destroot Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_aqua_qt5/qt5-qtbase/work/qtbase-everywhere-src-5.15.2" && /usr/bin/make -w install DESTDIR=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_aqua_qt5/qt5-qtbase/work/destroot 
:info:destroot Exit code: 2
:error:destroot Failed to destroot qt5-qtbase: command execution failed
:debug:destroot Error code: CHILDSTATUS 39980 2
:debug:destroot Backtrace: command execution failed
:debug:destroot     while executing
:debug:destroot "system {*}$notty {*}$callback {*}$nice $fullcmdstring"
:debug:destroot     invoked from within
:debug:destroot "command_exec -callback portprogress::target_progress_callback destroot"
:debug:destroot     (procedure "portdestroot::destroot_main" line 2)
:debug:destroot     invoked from within
:debug:destroot "$procedure $targetname"
:error:destroot See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_aqua_qt5/qt5-qtbase/main.log for details.

Attachments (1)

diekhans.main.log (6.2 MB) - added by diekhans (Mark Diekhans) 2 years ago.
main.log

Change History (18)

comment:1 Changed 2 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: monterey added
Owner: set to MarcusCalhoun-Lopez
Status: newassigned

comment:2 Changed 2 years ago by ryandesign (Ryan Carsten Schmidt)

We saw the same error on the arm64 macOS Monterey buildbot worker:

https://build.macports.org/builders/ports-12_arm64-builder/builds/4397/steps/install-port/logs/stdio

I don't think the x86_64 macOS Monterey buildbot worker has gotten around to trying it yet.

comment:3 Changed 2 years ago by cooljeanius (Eric Gallager)

Cc: cooljeanius added

comment:4 Changed 2 years ago by chrstphrchvz (Christopher Chavez)

Cc: chrstphrchvz added

comment:5 Changed 2 years ago by Tatsh (Andrew Udvare)

This is not an issue anymore on x86_64.

comment:6 Changed 2 years ago by chrstphrchvz (Christopher Chavez)

I think this issue is still concerning. It looks like something is capturing both stderr and stdout from xcodebuild when it should only capture stdout and ignore stderr.

comment:7 Changed 2 years ago by jsalort (Julien Salort)

Cc: jsalort added

comment:8 Changed 2 years ago by diekhans (Mark Diekhans)

Cc: diekhans added

comment:9 Changed 2 years ago by diekhans (Mark Diekhans)

I get a similar failure on Monterey x86_64

:warn:clean The macOS 12 SDK does not appear to be installed. Ports may not build correctly.
:warn:clean You can install it as part of the Xcode Command Line Tools package by running `xcode-select --install'.

followed by

:info:configure Creating qmake...
:info:configure Failed to resolve SDK path for 'macosx12'
:info:configure Failed to resolve SDK path for 'macosx12'

and then attempting to run a command 'c' rather than 'cc' to compile qt:

:info:configure c -o main.o -arch x86_64 -fconstant-cfstrings -MMD     -g  -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_qt5/qt5-qtbase/work/qtbase-everywhere-src-5.15.3/qmake -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_qt5/qt5-qtbase/work/qtbase-everywhere-src-5.15.3/qmake/library -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_qt5/qt5-qtbase/work/qtbase-everywhere-src-5.15.3/qmake/generators -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_qt5/qt5-qtbase/work/qtbase-everywhere-src-5.15.3/src/3rdparty/tinycbor/src -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_qt5/qt5-qtbase/work/qtbase-everywhere-src-5.15.3/qmake/generators/unix -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_qt5/qt5-qtbase/work/qtbase-everywhere-src-5.15.3/qmake/generators/win32 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_qt5/qt5-qtbase/work/qtbase-everywhere-src-5.15.3/qmake/generators/mac -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_qt5/qt5-qtbase/work/qtbase-everywhere-src-5.15.3/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_qt5/qt5-qtbase/work/qtbase-everywhere-src-5.15.3/include/QtCore -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_qt5/qt5-qtbase/work/qtbase-everywhere-src-5.15.3/include/QtCore/5.15.3 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_qt5/qt5-qtbase/work/qtbase-everywhere-src-5.15.3/include/QtCore/5.15.3/QtCore -I../src/corelib/global -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_qt5/qt5-qtbase/work/qtbase-everywhere-src-5.15.3/mkspecs/macx-clang -DQT_VERSION_STR=\"5.15.3\" -DQT_VERSION_MAJOR=5 -DQT_VERSION_MINOR=15 -DQT_VERSION_PATCH=3 -DQT_BUILD_QMAKE -DQT_BOOTSTRAPPED -DPROEVALUATOR_FULL -DQT_NO_FOREACH /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_qt5/qt5-qtbase/work/qtbase-everywhere-src-5.15.3/qmake/main.cpp
:info:configure make: c: No such file or directory
:info:configure make: [main.o] Error 1 (ignored)

This happens after a fresh reinstall of macports and 1325 ports, so this appears to be a qt5 specific problem.

attaching full log

Changed 2 years ago by diekhans (Mark Diekhans)

Attachment: diekhans.main.log added

main.log

comment:10 Changed 2 years ago by michaellass (Michael Lass)

Cc: michaellass added

comment:11 Changed 2 years ago by michaellass (Michael Lass)

I had the same problem. Cleaning the build directory and trying again did not help. However, retrying the update without cleaning the build directory before somehow succeeded.

comment:12 Changed 2 years ago by chrstphrchvz (Christopher Chavez)

Both the arm64 and x86_64 builders for macOS 12 Monterey encountered bogus “The platform SDK has been changed…” issues when building qt5-qtbase 5.15.3_0, so contrary to comment:5 this issue persists.

comment:13 in reply to:  6 Changed 2 years ago by chrstphrchvz (Christopher Chavez)

Replying to chrstphrchvz:

It looks like something is capturing both stderr and stdout from xcodebuild when it should only capture stdout and ignore stderr.

This is happenning in mkspecs/features/mac/sdk.mk (which is an installed file—patching it will likely require a revision bump):

CHECK_SDK_COMMAND = /usr/bin/xcrun --sdk $(EXPORT_QMAKE_MAC_SDK) -show-sdk-version 2>&1

Presumably 2>&1 should be changed to 2>/dev/null (or removed, but I’d prefer to make it clear that harmless noise from xcodebuild would be intentionally ignored).

All Qt versions since 5.12.2 are affected.

Last edited 2 years ago by chrstphrchvz (Christopher Chavez) (previous) (diff)

comment:14 in reply to:  9 Changed 2 years ago by chrstphrchvz (Christopher Chavez)

Replying to diekhans:

I get a similar failure on Monterey x86_64

:warn:clean The macOS 12 SDK does not appear to be installed. Ports may not build correctly.
:warn:clean You can install it as part of the Xcode Command Line Tools package by running `xcode-select --install'.

followed by

:info:configure Creating qmake...
:info:configure Failed to resolve SDK path for 'macosx12'
:info:configure Failed to resolve SDK path for 'macosx12'

and then attempting to run a command 'c' rather than 'cc' to compile qt:

:info:configure c -o main.o -arch x86_64 -fconstant-cfstrings -MMD     -g  -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_qt5/qt5-qtbase/work/qtbase-everywhere-src-5.15.3/qmake -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_qt5/qt5-qtbase/work/qtbase-everywhere-src-5.15.3/qmake/library -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_qt5/qt5-qtbase/work/qtbase-everywhere-src-5.15.3/qmake/generators -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_qt5/qt5-qtbase/work/qtbase-everywhere-src-5.15.3/src/3rdparty/tinycbor/src -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_qt5/qt5-qtbase/work/qtbase-everywhere-src-5.15.3/qmake/generators/unix -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_qt5/qt5-qtbase/work/qtbase-everywhere-src-5.15.3/qmake/generators/win32 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_qt5/qt5-qtbase/work/qtbase-everywhere-src-5.15.3/qmake/generators/mac -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_qt5/qt5-qtbase/work/qtbase-everywhere-src-5.15.3/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_qt5/qt5-qtbase/work/qtbase-everywhere-src-5.15.3/include/QtCore -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_qt5/qt5-qtbase/work/qtbase-everywhere-src-5.15.3/include/QtCore/5.15.3 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_qt5/qt5-qtbase/work/qtbase-everywhere-src-5.15.3/include/QtCore/5.15.3/QtCore -I../src/corelib/global -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_qt5/qt5-qtbase/work/qtbase-everywhere-src-5.15.3/mkspecs/macx-clang -DQT_VERSION_STR=\"5.15.3\" -DQT_VERSION_MAJOR=5 -DQT_VERSION_MINOR=15 -DQT_VERSION_PATCH=3 -DQT_BUILD_QMAKE -DQT_BOOTSTRAPPED -DPROEVALUATOR_FULL -DQT_NO_FOREACH /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_qt5/qt5-qtbase/work/qtbase-everywhere-src-5.15.3/qmake/main.cpp
:info:configure make: c: No such file or directory
:info:configure make: [main.o] Error 1 (ignored)

That more closely resembles ticket:63154#comment:2

comment:15 Changed 2 years ago by chrstphrchvz (Christopher Chavez)

comment:16 Changed 2 years ago by chrstphrchvz (Christopher Chavez)

comment:17 Changed 2 years ago by chrstphrchvz (Christopher Chavez)

Resolution: fixed
Status: assignedclosed

In 0a0dc2af4d50cd6b786aa81f9170dad21968bd78/macports-ports (master):

qt{513|5|6}-qtbase: ignore stderr for SDK version

Fixes: #63805

Note: See TracTickets for help on using tickets.