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

MSVC: 'file name too long' error for QtWebEngine builds on Windows

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Done
    • Affects Version/s: 5.11
    • Fix Version/s: 5.10.1
    • Component/s: WebEngine
    • Labels:
      None
    • Environment:
        * Windows 10 x64,
        * MSVC 2017 15.5.0,
        * Windows SDK 10.0.16299.15,
         * Qt5-dev (ba6ae3be9a6617ee8fda0ccc7c0e0f2f35ddbaa6).
    • Commits:
      8ea94b1f6f3fe957c7d169c25c6b6af6004d2bf3

      Description

      Hello, everyone,

       

      For builds using MSVC got errors:

              ( if not exist Makefile.gn_run c:\0123456789ABCDEF0123456789ABCDEF012345678\qtbase\bin\qmake.exe -o Makefile.gn_run c:\0123456789ABCDEF0123456789ABCDEF012345678\qtwebengine\src\core\gn_run.pro ) && "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.12.25827\bin\HostX64\x64\nmake.exe" -f Makefile.gn_run
      
      Microsoft (R) Program Maintenance Utility Version 14.12.25830.2
      Copyright (C) Microsoft Corporation.  All rights reserved.
      
              "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.12.25827\bin\HostX64\x64\nmake.exe" -f Makefile.gn_run.Release
      
      Microsoft (R) Program Maintenance Utility Version 14.12.25830.2
      Copyright (C) Microsoft Corporation.  All rights reserved.
      
              call c:\0123456789ABCDEF0123456789ABCDEF012345678\qtwebengine\src\core\ninja_wrapper.bat  -C c:\0123456789ABCDEF0123456789ABCDEF012345678\qtwebengine\src\core\release QtWebEngineCore
      ninja: Entering directory `c:\0123456789ABCDEF0123456789ABCDEF012345678\qtwebengine\src\core\release'
      [5/1257] CXX obj/third_party/WebKit/Source/core/intersection_observer/intersection_observer/intersection_observer_jumbo_1.obj
      FAILED: obj/third_party/WebKit/Source/core/intersection_observer/intersection_observer/intersection_observer_jumbo_1.obj
      ninja -t msvc -e environment.x64 -- "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.12.25827\bin\HostX64\x64/cl.exe" /nologo /showIncludes  @obj/third_party/WebKit/Source/core/intersection_observer/intersection_observer/intersection_observer_jumbo_1.obj.rsp /c gen/third_party/WebKit/Source/core/intersection_observer/intersection_observer_jumbo_1.cc /Foobj/third_party/WebKit/Source/core/intersection_observer/intersection_observer/intersection_observer_jumbo_1.obj /Fd"obj/third_party/WebKit/Source/core/intersection_observer/intersection_observer_cc.pdb"
      gen/third_party/WebKit/Source/core/intersection_observer/intersection_observer_jumbo_1.cc(5): fatal error C1081: 'c:\0123456789ABCDEF0123456789ABCDEF012345678\qtwebengine\src\core\release\gen\third_party\webkit\source\core\intersection_observer\../../../../../../../../3rdparty/chromium/third_party/WebKit/Source/core/intersection_observer/ElementIntersectionObserverData.cpp': file name too long
      [18/1257] CXX obj/third_party/WebKit/Source/core/geometry/geometry/Precompile-core.cc.obj
      ninja: build stopped: subcommand failed.
      NMAKE : fatal error U1077: 'call' : return code '0x1'
      Stop.
      NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.12.25827\bin\HostX64\x64\nmake.exe"' : return code '0x2'
      Stop.
      NMAKE : fatal error U1077: '(' : return code '0x2'
      Stop.
      NMAKE : fatal error U1077: 'cd' : return code '0x2'
      Stop.
      NMAKE : fatal error U1077: 'cd' : return code '0x2'
      Stop.
      

       

      Increasing path to Qt build folder, for instance, from 45 to 71 chars leads to increase such errors:

              cd core\ && ( if not exist Makefile c:\0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF012\qtbase\bin\qmake.exe -o Makefile c:\0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF012\qtwebengine\src\core\core.pro ) && C:\Windows\jom.exe -f Makefile
              ( if not exist Makefile.core_headers c:\0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF012\qtbase\bin\qmake.exe -o Makefile.core_headers c:\0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF012\qtwebengine\src\core\core_headers.pro ) && C:\Windows\jom.exe -f Makefile.core_headers
              C:\Windows\jom.exe -f Makefile.core_headers.Debug
              ( if not exist Makefile.core_generator c:\0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF012\qtbase\bin\qmake.exe -o Makefile.core_generator c:\0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF012\qtwebengine\src\core\core_generator.pro ) && C:\Windows\jom.exe -f Makefile.core_generator
              C:\Windows\jom.exe -f Makefile.core_generator.Debug
              ( if not exist Makefile.gn_run c:\0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF012\qtbase\bin\qmake.exe -o Makefile.gn_run c:\0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF012\qtwebengine\src\core\gn_run.pro ) && C:\Windows\jom.exe -f Makefile.gn_run
      jom: parallel job execution disabled for Makefile.gn_run
              C:\Windows\jom.exe -f Makefile.gn_run.Debug
              call c:\0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF012\qtwebengine\src\core\ninja_wrapper.bat  -C c:\0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF012\qtwebengine\src\core\debug QtWebEngineCore
      ninja: Entering directory `c:\0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF012\qtwebengine\src\core\debug'
      [1/1310] STAMP obj/third_party/WebKit/Source/core/fileapi/fileapi.inputdeps.stamp
      [2/1310] STAMP obj/third_party/WebKit/Source/modules/filesystem/filesystem.inputdeps.stamp
      [3/1310] CXX obj/third_party/WebKit/Source/core/context_features/context_features/context_features_jumbo_1.obj
      FAILED: obj/third_party/WebKit/Source/core/context_features/context_features/context_features_jumbo_1.obj
      ninja -t msvc -e environment.x64 -- "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.12.25827\bin\HostX64\x64/cl.exe" /nologo /showIncludes  @obj/third_party/WebKit/Source/core/context_features/context_features/context_features_jumbo_1.obj.rsp /c gen/third_party/WebKit/Source/core/context_features/context_features_jumbo_1.cc /Foobj/third_party/WebKit/Source/core/context_features/context_features/context_features_jumbo_1.obj /Fd"obj/third_party/WebKit/Source/core/context_features/context_features_cc.pdb"
      gen/third_party/WebKit/Source/core/context_features/context_features_jumbo_1.cc(5): fatal error C1081: 'c:\0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF012\qtwebengine\src\core\debug\gen\third_party\webkit\source\core\context_features\../../../../../../../../3rdparty/chromium/third_party/WebKit/Source/core/context_features/ContextFeatureSettings.cpp': file name too long
      [4/1310] CXX obj/third_party/WebKit/Source/core/core_generated/core_generated_jumbo_1.obj
      FAILED: obj/third_party/WebKit/Source/core/core_generated/core_generated_jumbo_1.obj
      ninja -t msvc -e environment.x64 -- "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.12.25827\bin\HostX64\x64/cl.exe" /nologo /showIncludes  @obj/third_party/WebKit/Source/core/core_generated/core_generated_jumbo_1.obj.rsp /c gen/third_party/WebKit/Source/bindings/core/v8/core_generated_jumbo_1.cc /Foobj/third_party/WebKit/Source/core/core_generated/core_generated_jumbo_1.obj /Fd"obj/third_party/WebKit/Source/core/core_generated_cc.pdb"
      gen/third_party/WebKit/Source/bindings/core/v8/core_generated_jumbo_1.cc(5): fatal error C1081: 'c:\0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF012\qtwebengine\src\core\debug\gen\third_party\webkit\source\bindings\core\v8\../../../../../../../../../3rdparty/chromium/third_party/WebKit/Source/bindings/core/v8/custom/V8CSSStyleDeclarationCustom.cpp': file name too long
      [5/1310] STAMP obj/third_party/WebKit/Source/modules/donottrack/donottrack.inputdeps.stamp
      [6/1310] CXX obj/third_party/WebKit/Source/core/css/css/css_jumbo_4.obj
      FAILED: obj/third_party/WebKit/Source/core/css/css/css_jumbo_4.obj
      ninja -t msvc -e environment.x64 -- "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.12.25827\bin\HostX64\x64/cl.exe" /nologo /showIncludes  @obj/third_party/WebKit/Source/core/css/css/css_jumbo_4.obj.rsp /c gen/third_party/WebKit/Source/core/css/css_jumbo_4.cc /Foobj/third_party/WebKit/Source/core/css/css/css_jumbo_4.obj /Fd"obj/third_party/WebKit/Source/core/css/css_cc.pdb"
      gen/third_party/WebKit/Source/core/css/css_jumbo_4.cc(7): fatal error C1081: 'c:\0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF012\qtwebengine\src\core\debug\gen\third_party\webkit\source\core\css\../../../../../../../../3rdparty/chromium/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIWebkitLogicalWidthOrHeight.cpp': file name too long
      [7/1310] CXX obj/third_party/WebKit/Source/core/css/css/css_jumbo_3.obj
      FAILED: obj/third_party/WebKit/Source/core/css/css/css_jumbo_3.obj
      ninja -t msvc -e environment.x64 -- "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.12.25827\bin\HostX64\x64/cl.exe" /nologo /showIncludes  @obj/third_party/WebKit/Source/core/css/css/css_jumbo_3.obj.rsp /c gen/third_party/WebKit/Source/core/css/css_jumbo_3.cc /Foobj/third_party/WebKit/Source/core/css/css/css_jumbo_3.obj /Fd"obj/third_party/WebKit/Source/core/css/css_cc.pdb"
      gen/third_party/WebKit/Source/core/css/css_jumbo_3.cc(24): fatal error C1081: 'c:\0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF012\qtwebengine\src\core\debug\gen\third_party\webkit\source\core\css\../../../../../../../../3rdparty/chromium/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIFontFeatureSettings.cpp': file name too long
      [8/1310] CXX obj/third_party/WebKit/Source/core/editing/editing/editing_jumbo_2.obj
      FAILED: obj/third_party/WebKit/Source/core/editing/editing/editing_jumbo_2.obj
      ninja -t msvc -e environment.x64 -- "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.12.25827\bin\HostX64\x64/cl.exe" /nologo /showIncludes  @obj/third_party/WebKit/Source/core/editing/editing/editing_jumbo_2.obj.rsp /c gen/third_party/WebKit/Source/core/editing/editing_jumbo_2.cc /Foobj/third_party/WebKit/Source/core/editing/editing/editing_jumbo_2.obj /Fd"obj/third_party/WebKit/Source/core/editing/editing_cc.pdb"
      gen/third_party/WebKit/Source/core/editing/editing_jumbo_2.cc(6): fatal error C1081: 'c:\0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF012\qtwebengine\src\core\debug\gen\third_party\webkit\source\core\editing\../../../../../../../../3rdparty/chromium/third_party/WebKit/Source/core/editing/commands/RemoveNodePreservingChildrenCommand.cpp': file name too long
      [9/1310] CXX obj/third_party/WebKit/Source/core/dom/dom/Modulator.obj
      [10/1310] CXX obj/third_party/WebKit/Source/core/core_generated/core_generated_jumbo_2.obj
      FAILED: obj/third_party/WebKit/Source/core/core_generated/core_generated_jumbo_2.obj
      ninja -t msvc -e environment.x64 -- "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.12.25827\bin\HostX64\x64/cl.exe" /nologo /showIncludes  @obj/third_party/WebKit/Source/core/core_generated/core_generated_jumbo_2.obj.rsp /c gen/third_party/WebKit/Source/bindings/core/v8/core_generated_jumbo_2.cc /Foobj/third_party/WebKit/Source/core/core_generated/core_generated_jumbo_2.obj /Fd"obj/third_party/WebKit/Source/core/core_generated_cc.pdb"
      gen/third_party/WebKit/Source/bindings/core/v8/core_generated_jumbo_2.cc(11): fatal error C1081: 'c:\0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF012\qtwebengine\src\core\debug\gen\third_party\webkit\source\bindings\core\v8\../../../../../../../../../3rdparty/chromium/third_party/WebKit/Source/bindings/core/v8/V8IntersectionObserverCallback.cpp': file name too long
      [11/1310] CXX obj/third_party/WebKit/Source/core/animation/animation/animation_jumbo_2.obj
      FAILED: obj/third_party/WebKit/Source/core/animation/animation/animation_jumbo_2.obj
      ninja -t msvc -e environment.x64 -- "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.12.25827\bin\HostX64\x64/cl.exe" /nologo /showIncludes  @obj/third_party/WebKit/Source/core/animation/animation/animation_jumbo_2.obj.rsp /c gen/third_party/WebKit/Source/core/animation/animation_jumbo_2.cc /Foobj/third_party/WebKit/Source/core/animation/animation/animation_jumbo_2.obj /Fd"obj/third_party/WebKit/Source/core/animation/animation_cc.pdb"
      gen/third_party/WebKit/Source/core/animation/animation_jumbo_2.cc(24): fatal error C1081: 'c:\0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF012\qtwebengine\src\core\debug\gen\third_party\webkit\source\core\animation\../../../../../../../../3rdparty/chromium/third_party/WebKit/Source/core/animation/SVGIntegerOptionalIntegerInterpolationType.cpp': file name too long
      [12/1310] CXX obj/third_party/WebKit/Source/core/animation/animation/animation_jumbo_1.obj
      FAILED: obj/third_party/WebKit/Source/core/animation/animation/animation_jumbo_1.obj
      ninja -t msvc -e environment.x64 -- "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.12.25827\bin\HostX64\x64/cl.exe" /nologo /showIncludes  @obj/third_party/WebKit/Source/core/animation/animation/animation_jumbo_1.obj.rsp /c gen/third_party/WebKit/Source/core/animation/animation_jumbo_1.cc /Foobj/third_party/WebKit/Source/core/animation/animation/animation_jumbo_1.obj /Fd"obj/third_party/WebKit/Source/core/animation/animation_cc.pdb"
      gen/third_party/WebKit/Source/core/animation/animation_jumbo_1.cc(11): fatal error C1081: 'c:\0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF012\qtwebengine\src\core\debug\gen\third_party\webkit\source\core\animation\../../../../../../../../3rdparty/chromium/third_party/WebKit/Source/core/animation/BasicShapeInterpolationFunctions.cpp': file name too long
      [13/1310] CXX obj/third_party/WebKit/Source/core/css/css/css_jumbo_2.obj
      FAILED: obj/third_party/WebKit/Source/core/css/css/css_jumbo_2.obj
      ninja -t msvc -e environment.x64 -- "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.12.25827\bin\HostX64\x64/cl.exe" /nologo /showIncludes  @obj/third_party/WebKit/Source/core/css/css/css_jumbo_2.obj.rsp /c gen/third_party/WebKit/Source/core/css/css_jumbo_2.cc /Foobj/third_party/WebKit/Source/core/css/css/css_jumbo_2.obj /Fd"obj/third_party/WebKit/Source/core/css/css_cc.pdb"
      gen/third_party/WebKit/Source/core/css/css_jumbo_2.cc(82): fatal error C1081: 'c:\0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF012\qtwebengine\src\core\debug\gen\third_party\webkit\source\core\css\../../../../../../../../3rdparty/chromium/third_party/WebKit/Source/core/css/properties/CSSPropertyAPIAlignOrJustifyContent.cpp': file name too long
      [14/1310] CXX obj/third_party/WebKit/Source/core/editing/editing/editing_jumbo_1.obj
      FAILED: obj/third_party/WebKit/Source/core/editing/editing/editing_jumbo_1.obj
      ninja -t msvc -e environment.x64 -- "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.12.25827\bin\HostX64\x64/cl.exe" /nologo /showIncludes  @obj/third_party/WebKit/Source/core/editing/editing/editing_jumbo_1.obj.rsp /c gen/third_party/WebKit/Source/core/editing/editing_jumbo_1.cc /Foobj/third_party/WebKit/Source/core/editing/editing/editing_jumbo_1.obj /Fd"obj/third_party/WebKit/Source/core/editing/editing_cc.pdb"
      gen/third_party/WebKit/Source/core/editing/editing_jumbo_1.cc(63): fatal error C1081: 'c:\0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF012\qtwebengine\src\core\debug\gen\third_party\webkit\source\core\editing\../../../../../../../../3rdparty/chromium/third_party/WebKit/Source/core/editing/commands/InsertIncrementalTextCommand.cpp': file name too long
      [15/1310] CXX obj/third_party/WebKit/Source/core/dom/dom/dom_jumbo_2.obj
      [16/1310] CXX obj/third_party/WebKit/Source/core/dom/dom/dom_jumbo_1.obj
      ninja: build stopped: subcommand failed.
      jom: c:\0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF012\qtwebengine\src\core\Makefile.gn_run.Debug [run_ninja] Error 1
      jom: c:\0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF012\qtwebengine\src\core\Makefile.gn_run [debug] Error 2
      jom: c:\0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF012\qtwebengine\src\core\Makefile [sub-gn_run-pro-make_first] Error 2
      jom: c:\0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF012\qtwebengine\src\Makefile [sub-core-make_first] Error 2
      jom: c:\0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF012\qtwebengine\Makefile [sub-src-make_first] Error 2
      

      Reproduced for:

      not reproduced for:

       

      Didn't tested to decrease path to Qt binaries less than 45 characters. Assume this can help, since Qt CI didn't catch this issue, but such limitation won't suit everyone.

      Applying LongPathsEnabled workaround didn't fix this issue.

       

       

      Best,

      Alexander

       

        Attachments

          Issue Links

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

            Activity

              People

              • Assignee:
                qt_webengine_team Qt WebEngine Team
                Reporter:
                sav sav
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes