void-linux / void-linux/void-packages
qmake from cross-compiled qt5 does not work
Open
Nobody has claimed this yet.
bug
- Dominant language
- Shell
- Stars
- 3.4k
- Forks
- 2.8k
- Avg merge
- 2d 5h
- Merged PRs (30d)
- 299
Description
Is this a new report?
Yes
System Info
Void 6.8.12_2 aarch64 Unknown notuptodate rDDFFFFFF
Package(s) Affected
qt5-5.15.11+20231124_4, qt5-qmake-5.15.11+20231124_4
Does a report exist for this bug with the project's home (upstream) and/or another distro?
no (packaging issue)
Expected behaviour
with natively-built qt5:
$ /usr/lib/qt5/bin/qmake -query
QT_SYSROOT:
QT_INSTALL_PREFIX:/usr
QT_INSTALL_ARCHDATA:/usr/lib/qt5
QT_INSTALL_DATA:/usr/share/qt5
QT_INSTALL_DOCS:/usr/share/doc/qt5
QT_INSTALL_HEADERS:/usr/include/qt5
QT_INSTALL_LIBS:/usr/lib
QT_INSTALL_LIBEXECS:/usr/lib/qt5/libexec
QT_INSTALL_BINS:/usr/lib/qt5/bin
QT_INSTALL_TESTS:/usr/tests
QT_INSTALL_PLUGINS:/usr/lib/qt5/plugins
QT_INSTALL_IMPORTS:/usr/lib/qt5/imports
QT_INSTALL_QML:/usr/lib/qt5/qml
QT_INSTALL_TRANSLATIONS:/usr/share/qt5/translations
QT_INSTALL_CONFIGURATION:/etc/xdg
QT_INSTALL_EXAMPLES:/usr/share/qt5/examples
QT_INSTALL_DEMOS:/usr/share/qt5/examples
QT_HOST_PREFIX:/usr
QT_HOST_DATA:/usr/lib/qt5
QT_HOST_BINS:/usr/lib/qt5/bin
QT_HOST_LIBS:/usr/lib
QMAKE_SPEC:linux-g++
QMAKE_XSPEC:linux-g++
QMAKE_VERSION:3.1
QT_VERSION:5.15.11
$ qmake -recursive QGIS.pro
Reading /tmp/build/_core/_core.pro
Actual behaviour
with cross-built qt5:
$ /usr/lib/qt5/bin/qmake -query
QT_SYSROOT:
QT_INSTALL_PREFIX:
QT_INSTALL_ARCHDATA:
QT_INSTALL_DATA:
QT_INSTALL_DOCS:
QT_INSTALL_HEADERS:
QT_INSTALL_LIBS:
QT_INSTALL_LIBEXECS:
QT_INSTALL_BINS:
QT_INSTALL_TESTS:
QT_INSTALL_PLUGINS:
QT_INSTALL_IMPORTS:
QT_INSTALL_QML:
QT_INSTALL_TRANSLATIONS:
QT_INSTALL_CONFIGURATION:
QT_INSTALL_EXAMPLES:
QT_INSTALL_DEMOS:
QT_HOST_PREFIX:
QT_HOST_DATA:
QT_HOST_BINS:
QT_HOST_LIBS:
QMAKE_SPEC:
QMAKE_XSPEC:
QMAKE_VERSION:3.1
QT_VERSION:5.15.11
$ qmake -recursive QGIS.pro
Could not find qmake spec ''.
Error processing project file: QGIS.pro
Steps to reproduce
- use cross-built qt5 to compile a program natively on aarch64 (like
qgis) - observe failure when
sip-buildcallsqmake
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the failure with the cross-built qt5 and qt5-qmake packages, then compare /usr/lib/qt5/bin/qmake -query with the natively built output. Trace how sip-build invokes qmake while building QGIS.pro. Done means qmake reports its installation paths and spec, and the recursive build no longer fails with an empty qmake spec.
Written by the indexing model from the issue text.
Assessment
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100