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

gn build fails on Windows

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P1: Critical
    • None
    • 5.11
    • WebEngine
    • None
    • Windows 7
      Windows 10

    Description

      This happens when doing shadow build configured with -developer-build.

      When building gn first on Windows it fails:

      ...
      [371/374] CXX tools\gn\trace.obj
      [372/374] CXX tools\gn\toolchain.obj
      [373/374] LIB gn_lib.lib
      LINK : MSIL .netmodule or module compiled with /GL found; restarting link with /LTCG; add /LTCG to the link command line to improve linker performance
      [374/374] LINK gn.exe
         Creating library gn.lib and object gn.exp
      Generating code
      Finished generating code
      Done. Made 6693 targets from 1395 files in 17865ms
      ninja: Entering directory `C:\stampho\work\Qt\qt5-511-release\qtwebengine\src\3rdparty\chromium\tools\gn\out\Release'
      [1/1] Regenerating ninja files
      [1/1] Regenerating ninja files
      [1/1] Regenerating ninja files
      ...
      [1/1] Regenerating ninja files
      [1/1] Regenerating ninja files
      ninja: error: manifest 'build.ninja' still dirty after 100 tries
      
      Building gn manually in a temporary directory for bootstrapping...
      Building gn using itself to out\Release...
      Command '['C:/stampho/work/Qt/qt5-511-release/qtwebengine/src/3rdparty/ninja/ninja.exe', '-C', 'C:\\stampho\\work\\Qt\\qt5-511-release\\qtwebengine\\src\\3rdparty\\chromium\\tools\\gn\\out\\Release', '-w', 'dupbuild=err', 'gn']' returned non-zero exit status 1
      Project ERROR: GN build error!
      jom: C:\stampho\work\Qt\qt5-511-release\qtwebengine\src\buildtools\Makefile [sub-gn-pro-make_first] Error 3
      jom: C:\stampho\work\Qt\qt5-511-release\qtwebengine\src\Makefile [sub-buildtools-make_first] Error 2
      jom: C:\stampho\work\Qt\qt5-511-release\qtwebengine\Makefile [sub-src-make_first] Error 2
      jom: C:\stampho\work\Qt\qt5-511-release\Makefile [module-qtwebengine] Error 2
      

      Then

      qmake -r ..\..\qt5-511-src\qtwebengine\qtwebengine.pro
      

      and gn is used:

      Reading C:/stampho/work/Qt/qt5-511-src/qtwebengine/src/src.pro [C:/stampho/work/Qt/qt5-511-release/qtwebengine/src]
       Reading C:/stampho/work/Qt/qt5-511-src/qtwebengine/src/buildtools/buildtools.pro [C:/stampho/work/Qt/qt5-511-release/qtwebengine/src/buildtools]
        Reading C:/stampho/work/Qt/qt5-511-src/qtwebengine/src/buildtools/ninja.pro [C:/stampho/work/Qt/qt5-511-release/qtwebengine/src/buildtools]
        Reading C:/stampho/work/Qt/qt5-511-src/qtwebengine/src/buildtools/gn.pro [C:/stampho/work/Qt/qt5-511-release/qtwebengine/src/buildtools]
       Reading C:/stampho/work/Qt/qt5-511-src/qtwebengine/src/core/core.pro [C:/stampho/work/Qt/qt5-511-release/qtwebengine/src/core]
        Reading C:/stampho/work/Qt/qt5-511-src/qtwebengine/src/core/core_headers.pro [C:/stampho/work/Qt/qt5-511-release/qtwebengine/src/core]
      Project MESSAGE: perl -w C:\stampho\work\Qt\qt5-511-src\qtbase\bin\syncqt.pl -check-includes -module QtWebEngineCore -version 5.11.0 -outdir C:/stampho/work/Qt/qt5-511-release/qtbase -builddir C:/stampho/work/Qt/qt5-511-release/qtwebengine C:/stampho/work/Qt/qt5-511-src/qtwebengine
      <srcbase> = c:/stampho/work/Qt/qt5-511-src/qtwebengine
      <bldbase> = c:/stampho/work/Qt/qt5-511-release/qtwebengine
      <outbase> = c:/stampho/work/Qt/qt5-511-release/qtbase
      QtWebEngineCore: created fwd-include header(s) for <srcbase>/src/core/api/ { qtwebenginecoreglobal.h (1), qtwebenginecoreglobal_p.h (1), qwebenginebrowsercontext_p.h (1), qwebenginecallback.h (2), qwebenginecallback_p.h (1), qwebenginecookiestore.h (2), qwebenginecookiestore_p.h (1), qwebenginehttprequest.h (2), qwebenginequotarequest.h (2), qwebengineregisterprotocolhandlerrequest.h (2), qwebengineurlrequestinfo.h (2), qwebengineurlrequestinfo_p.h (1), qwebengineurlrequestinterceptor.h (2), qwebengineurlrequestjob.h (2), qwebengineurlschemehandler.h (2) }
      QtWebEngineCore: created version header
      QtWebEngineCore: created master header
      QtWebEngineCore: created headers.pri file
        Reading C:/stampho/work/Qt/qt5-511-src/qtwebengine/src/core/core_generator.pro [C:/stampho/work/Qt/qt5-511-release/qtwebengine/src/core]
        Reading C:/stampho/work/Qt/qt5-511-src/qtwebengine/src/core/gn_run.pro [C:/stampho/work/Qt/qt5-511-release/qtwebengine/src/core]
      Project MESSAGE: Running: C:\stampho\work\Qt\qt5-511-release\qtwebengine\src\3rdparty\chromium\tools\gn\out\Release\gn.exe ...
      

      At the end qmake returns with error:

      Project ERROR: Could not find feature webengine-spellchecker.
      

      Qt has to be reconfigured then the build can be continued.

      Attachments

        1. build-gn.log
          123 kB
        2. gn.log
          1.40 MB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt_webengine_team Qt WebEngine Team
            pvarga Peter Varga
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes