Details
-
Bug
-
Resolution: Duplicate
-
P1: Critical
-
None
-
6.0.0
-
None
-
$ lsb_release -d
Description: openSUSE Leap 15.2
$ uname -a
Linux localhost.localdomain 5.3.18-lp152.47-default #1 SMP Thu Oct 15 16:05:25 UTC 2020 (41f7396) x86_64 x86_64 x86_64 GNU/Linux
Description
Follow-up to QTBUG-88282.
Found when building Qt from CI-approved commit af8f8860 in the dev branch of qt5.git.
When asking the old qmake-based configure to enable a feature that isn't supported by the build environment (e.g. asking for Mac and Windows-specifc features on Linux), configure outputs a somewhat informative message and terminates normally.
$ git clone git://code.qt.io/qt/qt5.git ... $ cd qt5 $ git checkout v6.0.0-beta3 $ perl init-repository -f ... $ ./configure -help ... -schannel ............ Use Secure Channel [no] (Windows only) -securetransport ..... Use SecureTransport [auto] (Apple only) ... $ ./configure -opensource -developer-build -confirm-license -schannel -securetransport ... ERROR: Feature 'securetransport' was enabled, but the pre-condition 'config.darwin && (input.openssl == '' || input.openssl == 'no')' failed. ERROR: Feature 'schannel' was enabled, but the pre-condition 'input.schannel == 'yes' && config.win32 && (input.openssl == '' || input.openssl == 'no')' failed.
When doing the same thing with the cmake-based configure, it fails with no indication of what went wrong. Unlike the instances reported previously in QTBUG-88282, there is no related output earlier in the configure output.
$ git clone git://code.qt.io/qt/qt5.git ... $ cd qt5 $ git reflog af8f8860 (HEAD -> dev, origin/dev, origin/HEAD) HEAD@{0}: pull: Fast-forward $ perl init-repository -f ... $ ./configure -developer-build -schannel -securetransport ... CMake Error at /home/qt/build/af8f8860/qt5/qtbase/cmake/QtProcessConfigureArgs.cmake:797 (message): CMake exited with code 1.
I wonder whether these flags are failing differently to the ones reported in QTBUG-90319 because these ones are not displayed in the big "yes/no" list near the end of the configure output.
Attachments
Issue Links
- duplicates
-
QTBUG-90319 [REG v6.0.0-beta3 -> dev] Configuring with -dirctfb or -sctp when they aren't available causes obscure crash instead of informative error message
- Closed
- relates to
-
QTBUG-88282 [REG v6.0.0-beta3 -> dev] Asking configure for an unavailable feature causes obscure crash instead of informative error message
- Closed