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

Qbs shared libraries fail to link with clangs address sanitizer

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 1.2.0
    • 1.1.0
    • General
    • None
    • d305fe3242d0230ff29a726259d3987068f89667

    Description

      When using clang with -fsanitize=address for cpp.cxxFlags, cpp.cFlags and cpp.linkerFlags, then building shared libraries will fail with qbs.

      This is due to "Wl,-no-undefined" which is passed to the linker when building shared libraries. This will make the linker fail on the symbols that are injected by clang into the executables: Those are expected to be undefined for libraries.

      Attachments

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

        Activity

          People

            kandeler Christian Kandeler
            hunger Tobias Hunger
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes