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

Windows Long Path issue for RelWithDebInfo config

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 6.1.3
    • 6.1.0
    • Build System: CMake
    • None
    • MSVC, Ninja Multi-Config
    • Windows
    • d23613acf7bfe37c1c78eb9aadc489e888e34dfb (qt/qtbase/dev) 557677186a7d7f415be1597e1a0317a4150b525f (qt/qtbase/6.1)

      This resulted from CMake issue #22265.

      When building qtbase with MSVC and -debug-and-release -force-debug-info in a build dir of sufficient length, e.g. z:\build\6.1.1-windows-x86_64-msvc2019\qtbase, then the build fails with

      ...
      z:\build\6.1.1-windows-x86_64-msvc2019\qtbase\src\plugins\networkinformationbackends\networklistmanager\QNetworkListManagerNetworkInformationBackend_autogen\mocs_compilation_RelWithDebInfo.cpp : fatal error C1083: Cannot open compiler generated file: '': Invalid argument
      

      See further discussion in CMake issue.

      This can be easily reproduced with the following configure flags

      ../qtbase/configure -debug-and-release -no-gui
      

      in the build directory

      z:\build\6.1.1-windows-x86_64-msvc2019\qtbase1234567
      

      With the original build dir z:\build\6.1.1-windows-x86_64-msvc2019\qtbase one needs -force-debug-info.
      That increases the configuration name length by 7 (Release vs RelWithDebInfo).

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

            jbornema Joerg Bornemann
            jbornema Joerg Bornemann
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes