Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-22518

"-D_GLIBCXX_USE_CXX11_ABI=0" missing from libclang 8 binary

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: Qt Creator 4.10.0-beta1
    • Fix Version/s: None
    • Component/s: Building Qt Creator
    • Labels:
      None
    • Environment:
      Ubuntu 19.04
      gcc 8.3.0

      Description

      1. Extract our binary package of libclang 8.
      2. See the output of bin/llvm-config --cxxflags:
        -I/home/qtrob/dev/g++-5.3/libclang-8.0/include -std=c++11  -fno-exceptions -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
        

      This may cause linker errors because "-D_GLIBCXX_USE_CXX11_ABI=0" is missing. The output from libclang 7 is better:

      -I/home/qtrob/dev/g++-5.3/libclang-7.0/include -D_GLIBCXX_USE_CXX11_ABI=0 -fPIC -fvisibility-inlines-hidden -Werror=date-time -std=c++11 -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wno-maybe-uninitialized -Wdelete-non-virtual-dtor -Wno-comment -ffunction-sections -fdata-sections -O3 -DNDEBUG  -fno-exceptions -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
      

        Attachments

          Issue Links

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

            Activity

              People

              • Assignee:
                kosjar Nikolai Kosjar
                Reporter:
                rlohning Robert Löhning
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes