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

Error opening [...]/qtbase/src/corelib/Core_autogen/include/../.json for reading

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P1: Critical
    • None
    • 6.1
    • Build System: CMake
    • None
    • Ubuntu 20.14.1
      g++ (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
      cmake version 3.19.2

    Description

      I'm trying to build Qt on a new machine using the following SHA1s:

      qtbase: 167bcafcb6b1988047bec8b4d67c994fc8c85c14
      qtdeclarative: 948c56ca051d9a2d0f806b8bce3a3170751f5750
      qtquickcontrols2: fd92634e94bf91c73696eccd8c468fc5f7a9c8e5
      qttools: d98e6d730d3eef3107df1f06afa3f40c8cf5aebb
      

      I'm getting this error:

      [306/1612] Running Automoc file extraction
      [307/1612] Running automoc with --collect-json
      FAILED: src/corelib/meta_types/qt6core_debug_metatypes.json.gen src/corelib/meta_types/qt6core_debug_metatypes.json 
      cd /home/mitch/dev/qt-dev-debug/qtbase/src/corelib && /home/mitch/dev/qt-dev-debug/qtbase/bin/moc -o /home/mitch/dev/qt-dev-debug/qtbase/src/corelib/meta_types/qt6core_debug_metatypes.json.gen --collect-json @/home/mitch/dev/qt-dev-debug/qtbase/src/corelib/meta_types/Core_json_file_list.txt && /home/mitch/dev/cmake-build/bin/cmake -E copy_if_different /home/mitch/dev/qt-dev-debug/qtbase/src/corelib/meta_types/qt6core_debug_metatypes.json.gen /home/mitch/dev/qt-dev-debug/qtbase/src/corelib/meta_types/qt6core_debug_metatypes.json
      Error opening /home/mitch/dev/qt-dev-debug/qtbase/src/corelib/Core_autogen/include/../.json for reading
      [308/1612] RCC mimetypes
      ninja: build stopped: subcommand failed.
      

      Qt is configured with the following options as a per-repo (i.e. not top-level) build:

      -DCMAKE_BUILD_TYPE=Debug -DFEATURE_developer_build=ON -DQT_BUILD_TESTS=ON -DQT_BUILD_TESTS_BY_DEFAULT=OFF -DQT_BUILD_EXAMPLES=ON -DQT_BUILD_EXAMPLES_BY_DEFAULT=OFF -DECM_ENABLE_SANITIZERS=address
      

      Attachments

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

        Activity

          People

            qtbuildsystem Qt Build System Team
            mitch_curtis Mitch Curtis
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes