Uploaded image for project: 'Qbs ("Cubes")'
  1. Qbs ("Cubes")
  2. QBS-501

Duplicate entries in the linker command line

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 1.2.0
    • 1.2.0
    • General
    • None
    • Kubuntu 13.10, GCC 4.8.1
    • e679b1c6395484f145c309d64f7bb432f661aaac

    Description

      When two static libraries depend on the same library it is added twice to the linker command line. It's dependencies are also duplicated.

      DEBUG: [EXEC] Running external process; full command line is: /usr/bin/g++ -m64 -O2 -Wall -Wextra /home/a-baskanov/src/bloat/qtc_Desktop-release/.obj/app/app.cpp.o -o /home/a-baskanov/src/bloat/qtc_Desktop-release/app -Wl,-rpath,$ORIGIN /home/a-baskanov/src/bloat/qtc_Desktop-release/libd.a /home/a-baskanov/src/bloat/qtc_Desktop-release/libe.a /home/a-baskanov/src/bloat/qtc_Desktop-release/libb.a /home/a-baskanov/src/bloat/qtc_Desktop-release/liba.a /home/a-baskanov/src/bloat/qtc_Desktop-release/libc.a /home/a-baskanov/src/bloat/qtc_Desktop-release/liba.a /home/a-baskanov/src/bloat/qtc_Desktop-release/libb.a /home/a-baskanov/src/bloat/qtc_Desktop-release/liba.a /home/a-baskanov/src/bloat/qtc_Desktop-release/libc.a /home/a-baskanov/src/bloat/qtc_Desktop-release/liba.a -Wl,--unresolved-symbols=ignore-in-shared-libs
      

      For large projects it grows so much that the build fails with:

      ERROR: The process '/usr/bin/g++' could not be started: Argument list too long
      

      Attachments

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

        Activity

          People

            jbornema Joerg Bornemann
            baskanov Anton Baskanov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes