Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-102323

cmake seems to treat builddir as a regex and fails if builddir contains quantor characters (+)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3: Somewhat important
    • None
    • 6.4
    • Build System: CMake
    • None
    • Linux/X11

    Description

      • qt5.git checkout out this morning to everything @dev
      • cmake 3.21.1
      • cat config.opt
        -opensource
        -confirm-license
        -release
        -force-debug-info
        -separate-debug-info
        -c++std
        c++17
        -developer-build
        -nomake
        examples
        -sctp
        

      This is my builddir:

      ~/Qt/qt5-build-c++17/
      

      And this is the error I get from ../qt5/configure -redo:

      [...]
      -- Checking 'ulimit -n'
       -- Open files limit 4096
      -- Performing Test HAVE_re2
      -- Performing Test HAVE_re2 - Success
      -- Performing Test HAVE_snappy
      -- Performing Test HAVE_snappy - Success
      -- Performing Test HAVE_libxml2
      -- Performing Test HAVE_libxml2 - Success
      -- Performing Test HAVE_jpeg
      -- Performing Test HAVE_jpeg - Success
      -- Performing Test HAVE_freetype
      -- Performing Test HAVE_freetype - Success
      -- Performing Test HAVE_khr
      -- Performing Test HAVE_khr - Success
      -- Performing Test HAVE_winversion
      -- Performing Test HAVE_winversion - Failed
      RegularExpression::compile(): Nested *?+.
      RegularExpression::compile(): Error in compile.
      CMake Error at /home/marc/Qt/qt5-build-c++17/qtbase/lib/cmake/Qt6/QtFeature.cmake:70 (if):
        if given arguments:
      
          "Ninja_EXECUTABLE" "MATCHES" "/home/marc/Qt/qt5-build-c++17/qtwebengine"
      
        Regular expression "/home/marc/Qt/qt5-build-c++17/qtwebengine" cannot
        compile
      Call Stack (most recent call first):
        /home/marc/Qt/qt5-build-c++17/qtbase/lib/cmake/Qt6/QtFeature.cmake:167 (qt_evaluate_to_boolean)
        /home/marc/Qt/qt5-build-c++17/qtbase/lib/cmake/Qt6/QtFeature.cmake:354 (qt_evaluate_config_expression)
        /home/marc/Qt/qt5-build-c++17/qtbase/lib/cmake/Qt6/QtFeature.cmake:606 (qt_evaluate_feature)
        qtwebengine/src/CMakeLists.txt:14 (qt_feature_module_end)
      
      
      -- Configuring incomplete, errors occurred!
      See also "/home/marc/Qt/qt5-build-c++17/CMakeFiles/CMakeOutput.log".
      See also "/home/marc/Qt/qt5-build-c++17/CMakeFiles/CMakeError.log".
      CMake Error at /home/marc/Qt/qt5/qtbase/cmake/QtProcessConfigureArgs.cmake:963 (message):
        CMake exited with code 1.
      

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              jbornema Joerg Bornemann
              mmutz Marc Mutz
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes