Opened 7 months ago
Last modified 6 months ago
#71423 assigned defect
qt5-qtbase @5.15.15_0: ASSERT failure in QMacVersion: "Could not find any version load command"
Reported by: | mebius-san (Mebius-san) | Owned by: | MarcusCalhoun-Lopez (Marcus Calhoun-Lopez) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | sequoia arm64 | Cc: | d7gonzo (Ryan E. Johnson), jamodeo12 (Jonathan Amodeo) |
Port: | qt5-qtbase |
Description (last modified by jmroot (Joshua Root))
:info:configure Exit code: 134 :error:configure Failed to configure qt5-qtbase: configure failure: command execution failed :debug:configure Error code: NONE :debug:configure Backtrace: configure failure: command execution failed :debug:configure while executing :debug:configure "$procedure $targetname" :error:configure See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_qt5/qt5-qtbase/main.log for details.
Attachments (2)
Change History (7)
Changed 7 months ago by mebius-san (Mebius-san)
Attachment: | main.log.zip added |
---|
comment:1 Changed 7 months ago by jmroot (Joshua Root)
Description: | modified (diff) |
---|---|
Owner: | set to MarcusCalhoun-Lopez |
Port: | qt5-qtbase added |
Status: | new → assigned |
Summary: | Failed to configure qt5-qtbase → qt5-qtbase @5.15.15_0 Failed to configure |
Changed 7 months ago by d7gonzo (Ryan E. Johnson)
Attachment: | qt5-qtbase-configure.zip added |
---|
standard output and standard error from the configure command according to its execution in the logfile
comment:2 Changed 7 months ago by d7gonzo (Ryan E. Johnson)
I'm having the same trouble installing this port on macOS Sequoia. I attached the standard output and error log I created while running the following configure command as stated in my main.log file. The options appear not to be identical to the OP's configure command.
./configure -prefix /opt/local/libexec/qt5 -bindir /opt/local/libexec/qt5/bin -headerdir /opt/local/libexec/qt5/include -libdir /opt/local/libexec/qt5/lib -archdatadir /opt/local/libexec/qt5 -plugindir /opt/local/libexec/qt5/plugins -importdir /opt/local/libexec/qt5/imports -qmldir /opt/local/libexec/qt5/qml -datadir /opt/local/libexec/qt5 -docdir /opt/local/libexec/qt5/doc -translationdir /opt/local/libexec/qt5/translations -sysconfdir /opt/local/libexec/qt5/etc/xdg -examplesdir /opt/local/libexec/qt5/examples -testsdir /opt/local/libexec/qt5/tests -hostdatadir /opt/local/libexec/qt5 -release -opensource -confirm-license -shared -accessibility -no-sql-db2 -no-sql-ibase -no-sql-mysql -no-sql-oci -no-sql-odbc -no-sql-psql -no-sql-sqlite -no-sql-sqlite2 -no-sql-tds -platform macx-clang -optimize-size -no-testcocoon -no-gcov -force-pkg-config -system-zlib -no-mtdev -no-journald -no-syslog -system-libpng -system-libjpeg -system-freetype -system-harfbuzz -no-libproxy -system-pcre -glib -no-gtk QMAKE_CXXFLAGS_GNUCXX11=-std=c++17 -make libs -make tools -nomake examples -nomake tests -gui -widgets -no-rpath -verbose -cups -no-iconv -no-evdev -no-tslib -icu -no-fontconfig -strip -no-pch -no-ltcg -dbus-linked -no-use-gold-linker -no-separate-debug-info -no-xcb -no-eglfs -no-gbm -no-directfb -no-linuxfb -no-kms -no-libinput -no-xkbcommon -no-system-proxies -no-feature-vulkan -framework -sdk macosx -no-libudev -no-egl -openssl-linked
comment:3 Changed 6 months ago by jamodeo12 (Jonathan Amodeo)
I had exactly the same problem (faile at the ./configure stage with exact same error message) after Sequoia update. Problem solved compiling C++ fails as suggested on the Macport macOS Sequoia Problems page SequoiaProblems.
comment:4 Changed 6 months ago by ryandesign (Ryan Carsten Schmidt)
Cc: | d7gonzo jamodeo12 added |
---|---|
Summary: | qt5-qtbase @5.15.15_0 Failed to configure → qt5-qtbase @5.15.15_0: ASSERT failure in QMacVersion: "Could not find any version load command" |
The error in mebius-san's main.log.zip is:
ASSERT failure in QMacVersion: "Could not find any version load command", file /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.15/src/corelib/kernel/qcore_mac.mm, line 761
This is in the QMacVersion::versionsForImage
function which is trying and failing to parse a Mach-O header. I'm not sure why this fails and could not find other results for this error message when I searched for it. I looked at the upstream qt repository and did not see any recent fixes in this function and did not find an upstream bug report for this error message.
The errors in d7gonzo's qt5-qtbase-configure.zip are different:
Failed to resolve SDK path for 'macosx15.1'
make: c: No such file or directory
/bin/sh: o: command not found
I believe that's unrelated to the first problem and covered in #67589 already.
jamodeo12, if your problem was solved by following the steps at SequoiaProblems#CompilingCfails then that is yet a third problem unrelated to the first two.
Please keep discussion of unrelated problems in their respective tickets. Grouping unrelated problems into one ticket makes it difficult to help everyone clearly. If you're not sure if your problem is the same, file a new ticket and someone will mark it as a duplicate of another ticket if that's what it turns out to be.
comment:5 Changed 6 months ago by jamodeo12 (Jonathan Amodeo)
Indeed, when trying to compile qt5-qtbase (without the compiling C++ fails stuff), I had the problem at ./configure stage with this error same error message than mebius-san
:info:configure Exit code: 134 :error:configure Failed to configure qt5-qtbase: configure failure: command execution failed :debug:configure Error code: NONE :debug:configure Backtrace: configure failure: command execution failed :debug:configure while executing :debug:configure "$procedure $targetname" :error:configure See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_qt5/qt5-qtbase/main.log for details.
Looking in the log I found that it was needed to go in a folder and run ./configure (to make qmake if I remember it well). This folder had wrong permissions, I solved it, and the run the ./configure that eneded with new error message (same than mebius-san again) :
ASSERT failure in QMacVersion: "Could not find any version load command", file /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.15/src/corelib/kernel/qcore_mac.mm, line 761
After a few tries (I was able to compite qt6, thus I tried qt6 qmake, etc., it does not work), I solved all of that with the compiling C++ fails stuff from the macport Sequoia error webpage. After removing the/Library/Developer/CommandLineTools/usr/include/c++ folder, qt5-qtbase installed instantaneously.
log file