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

QtWebEngine fails to build: brotli/libcommon.a: error adding symbols: archive has no index

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Not Evaluated Not Evaluated
    • None
    • 6.10.0
    • WebEngine
    • None
    • Ubuntu 24.04
    • Linux/X11

      When compiling a developer build of QtWebEngine on Ubuntu 24.04 with clang 19 or 20, the build fails with the following error:

      FAILED: host/brotli 
      "/usr/bin/python3" "../../../../../../qt5/qtwebengine/src/3rdparty/chromium/build/toolchain/gcc_link_wrapper.py" --output="host/brotli" -- /usr/bin/clang++-20 -Wl,--build-id -fPIC -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -m64 -no-canonical-prefixes -Wl,-z,defs -Wl,--as-needed -rdynamic -pie -Wl,--disable-new-dtags -o "host/brotli" -Wl,--start-group @"host/brotli.rsp" -Wl,--end-group   -latomic -ldl -lpthread -lrt -Wl,--start-group  -Wl,--end-group 
      /usr/bin/ld: host/obj/third_party/brotli/libcommon.a: error adding symbols: archive has no index; run ranlib to add one
      clang++-20: error: linker command failed with exit code 1 (use -v to see invocation)
      ninja: build stopped: subcommand failed.
      

      gcc 14 seems to work fine

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

            qt_webengine_team Qt WebEngine Team
            bterrier Benjamin Terrier
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes