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

WebEngine: Error when linking gn

    XMLWordPrintable

Details

    • Linux/Other display system
    • ccdfc6e501 (qt/qtwebengine/5.15.10) 2a5d2bdfa1 (qt/qtwebengine/5.15) 2a5d2bdfa1 (qt/tqtc-qtwebengine/5.15) ccdfc6e501 (qt/tqtc-qtwebengine/5.15.10) 09a4ad989c (qt/qtwebengine/dev) 9949d93357 (qt/qtwebengine/6.3) e4e8d9a43c (qt/qtwebengine/6.2)

    Description

      Description

      When compiling the WebEngine, the linking of 'gn' is problematic (see logs below). If I run myself ranlib *.a over the files, the linkage is then successful.

      Question: In which ninja build file I write than ranlib? or what to do to avoid that situation?

       h3. Details

      • Cross-compiling for ARM architecture
      • Compilation made on Ubuntu 18.04, with gcc 9.3.0 (c++11)
      • Target system is Linux on ARMv7

       

      Logs

      Logs about the configuration: configtest.txt

      [187/187] LINK gn
      FAILED: gn
      /usr/bin/g++ -O3 -fdata-sections -ffunction-sections -Wl,--gc-sections -Wl,-strip-all -Wl,--as-needed -static-libstdc++ -pthread -o gn -Wl,--start-group tools/gn/gn_main.o base.a gn_lib.a -Wl,--end-group -ldl
      base.a: error adding symbols: Archive has no index; run ranlib to add one
      collect2: error: ld returned 1 exit status
      ninja: build stopped: subcommand failed.
      Project ERROR: GN build error!
      Makefile:98: recipe for target 'sub-gn-pro-make_first' failed
      make[3]: *** [sub-gn-pro-make_first] Error 3
      make[3]: Leaving directory '/root/.conan/data/qt/5.15.9/ajcote/testing/build/2067b3f195cf6679f70b77b2487fc5f31f6cc207/qtwebengine/src/buildtools'
      Makefile:53: recipe for target 'sub-buildtools-make_first' failed
      make[2]: *** [sub-buildtools-make_first] Error 2
      make[2]: Leaving directory '/root/.conan/data/qt/5.15.9/ajcote/testing/build/2067b3f195cf6679f70b77b2487fc5f31f6cc207/qtwebengine/src'
      Makefile:48: recipe for target 'sub-src-make_first' failed
      make[1]: *** [sub-src-make_first] Error 2
      make[1]: Leaving directory '/root/.conan/data/qt/5.15.9/ajcote/testing/build/2067b3f195cf6679f70b77b2487fc5f31f6cc207/qtwebengine'
      Makefile:532: recipe for target 'module-qtwebengine-make_first' failed
      make: *** [module-qtwebengine-make_first] Error 2
      

      Attachments

        1. build.ninja
          125 kB
        2. configtest.txt
          17 kB
        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
            ajcote Andre-Jean Cote
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes