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

"-D_GLIBCXX_USE_CXX11_ABI=0" missing from libclang 8 binary

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P1: Critical P1: Critical
    • None
    • Qt Creator 4.10.0-beta1
    • Building Qt Creator
    • None
    • Ubuntu 19.04
      gcc 8.3.0

      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
      

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes