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

Build failure on Linux with clang++

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.9.0
    • Fix Version/s: 5.9.1
    • Component/s: WebEngine
    • Labels:
      None
    • Environment:
      Linux x86_64, clang++ 4.0.0 using libc++ as standard library, rest of Qt 5.9.0 components built from source by myself.

      Description

      qtwebengine 5.9.0 fails to build with clang/clang++ on Linux with the following error:

       

      clang++ -c -pipe -stdlib=libc++ -O2 -fPIC -std=gnu+11 -fno-exceptions -Wall -W -D_REENTRANT -DBUILDING_CHROMIUM -DNOMINMAX -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_WEBENGINECOREHEADERS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -I../../core -I../../3rdparty/chromium -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtNetwork -isystem /usr/include/qt5/QtCore/5.9.0 -isystem /usr/include/qt5/QtCore/5.9.0/QtCore -isystem /usr/include/qt5/QtCore -I../../../include -I../../../include/QtWebEngineCore -I../../../include/QtWebEngineCore/5.9.0 -I../../../include/QtWebEngineCore/5.9.0/QtWebEngineCore -I.moc -isystem /usr/include/libdrm -I/usr/lib/qt5/mkspecs/linux-clang-libc+ -o .obj/qtbug-60565.o qtbug-60565.cpp
      qtbug-60565.cpp:90:14: warning: unused function 'ShimCppNew' [-Wunused-function]
      static void* ShimCppNew(size_t size) {
      ^
      qtbug-60565.cpp:94:14: warning: unused function 'ShimCppNewArray' [-Wunused-function]
      static void* ShimCppNewArray(size_t size) {
      ^
      qtbug-60565.cpp:98:13: warning: unused function 'ShimCppDelete' [-Wunused-function]
      static void ShimCppDelete(void* address) {
      ^
      qtbug-60565.cpp:102:13: warning: unused function 'ShimCppDeleteArray'
      [-Wunused-function]
      static void ShimCppDeleteArray(void* address) {
      ^
      qtbug-60565.cpp:55:5: error: alias must point to a defined variable or function
      SHIM_ALIAS_SYMBOL(ShimCppNew);
      ^
      qtbug-60565.cpp:49:52: note: expanded from macro 'SHIM_ALIAS_SYMBOL'
      #define SHIM_ALIAS_SYMBOL(fn) _attribute_((weak, alias(#fn)))

        Attachments

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

          Activity

            People

            • Assignee:
              michal Michal Klocek
              Reporter:
              krejzi Armin K.
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes