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

Linker error when building Qt 5.12.3

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P2: Important
    • None
    • 5.12.3
    • Build tools: qdoc
    • None
    • Android

    Description

      I am not able to compile Qt 5.12.3 for Android under the same conditions as Qt 5.12.2.
      Got a linker error:

      /usr/bin/ld: .obj/qmlmarkupvisitor.o: in function `QmlMarkupVisitor::QmlMarkupVisitor(QString const&, QList<QQmlJS::AST::SourceLocation> const&, QQmlJS::Engine*)':
      qmlmarkupvisitor.cpp:(.text._ZN16QmlMarkupVisitorC2ERK7QStringRK5QListIN6QQmlJS3AST14SourceLocationEEPNS4_6EngineE+0x3b): undefined reference to `QQmlJS::AST::Visitor::Visitor(unsigned short)'
      /usr/bin/ld: .obj/qmlvisitor.o: in function `QmlDocVisitor::QmlDocVisitor(QString const&, QString const&, QQmlJS::Engine*, QSet<QString> const&, QSet<QString> const&)':
      qmlvisitor.cpp:(.text._ZN13QmlDocVisitorC2ERK7QStringS2_PN6QQmlJS6EngineERK4QSetIS0_ES9_+0x39): undefined reference to `QQmlJS::AST::Visitor::Visitor(unsigned short)'
      collect2: Fehler: ld gab 1 als Ende-Status zurück
      

      It is easy to workaround by using "-no-feature-qdoc", but that can not be a general solution.

      Configuration:

      configure -top-level -release -optimize-size -no-qml-debug  -prefix /home/.../dist -opensource -confirm-license -qt-zlib -no-mtdev -qt-libpng -qt-libjpeg -no-dbus -no-harfbuzz -qt-pcre -system-proxies -no-compile-examples -nomake examples -nomake tests -no-sql-sqlite -openssl-linked -I /home/.../dist/include -L /home/.../dist/lib -no-feature-dtls -no-feature-winrt_bt -no-feature-ftp -no-feature-paint_debug -no-feature-lcdnumber -no-feature-mdiarea -no-feature-calendarwidget -no-feature-colordialog -no-feature-cups -no-feature-dial -no-feature-fontcombobox -no-feature-fontdialog -no-feature-imageformat_bmp -no-feature-imageformat_ppm -no-feature-imageformat_xbm -no-feature-sharedmemory -no-feature-textodfwriter -no-feature-undocommand -no-feature-undogroup -no-feature-undostack -no-feature-undoview -no-feature-printer -no-feature-printdialog -no-feature-printpreviewdialog -no-feature-printpreviewwidget -no-feature-splashscreen -no-feature-syntaxhighlighter -no-feature-dom -no-feature-sql -no-journald -no-directfb -no-linuxfb -android-sdk /opt/android-sdk -android-ndk /opt/android-ndk -android-ndk-platform android-21 -android-ndk-host linux-x86_64 -android-arch armeabi-v7a -android-toolchain-version 4.9 -xplatform android-g++ -no-widgets -skip qtwebglplugin -skip qtscxml -skip qtxmlpatterns -skip qtwebchannel -skip qtwebengine -skip qtscript -skip qtactiveqt -skip qtlocation -skip qtserialbus -skip qtserialport -skip qtgamepad -skip qtvirtualkeyboard -skip qtcanvas3d -skip qtcharts -skip qtdatavis3d -skip qt3d -skip qtpurchasing -skip qtwayland -skip qtremoteobjects -skip qtspeech -skip qtwebview -skip multimedia -skip qtquickcontrols
      

      Build options:

        Mode ................................... release
        Optimize release build for size ........ yes
        Building shared libraries .............. yes
        Using C standard ....................... C11
        Using C++ standard ..................... C++14
        Using ccache ........................... no
        Using gold linker ...................... yes
        Using new DTAGS ........................ yes
        Using precompiled headers .............. yes
        Using LTCG ............................. no
        Target compiler supports:
          NEON ................................. no
        Build parts ............................ libs
        App store compliance ................... yes
      Qt modules and options:
        Qt Concurrent .......................... yes
        Qt D-Bus ............................... no
        Qt D-Bus directly linked to libdbus .... no
        Qt Gui ................................. yes
        Qt Network ............................. yes
        Qt Sql ................................. no
        Qt Testlib ............................. yes
        Qt Widgets ............................. no
        Qt Xml ................................. yes
      Support enabled for:
        Using pkg-config ....................... no
        udev ................................... no
        Using system zlib ...................... no
      Qt Core:
        DoubleConversion ....................... yes
          Using system DoubleConversion ........ no
        GLib ................................... no
        iconv .................................. no
        ICU .................................... no
        Tracing backend ........................ <none>
        Logging backends:
          journald ............................. no
          syslog ............................... no
          slog2 ................................ no
        Using system PCRE2 ..................... no
      Qt Network:
        getifaddrs() ........................... no
        IPv6 ifname ............................ no
        libproxy ............................... no
        Linux AF_NETLINK ....................... yes
        OpenSSL ................................ yes
          Qt directly linked to OpenSSL ........ yes
        OpenSSL 1.1 ............................ yes
        DTLS ................................... no
        SCTP ................................... no
        Use system proxies ..................... yes
      Qt Gui:
        Accessibility .......................... yes
        FreeType ............................... yes
          Using system FreeType ................ no
        HarfBuzz ............................... no
          Using system HarfBuzz ................ no
        Fontconfig ............................. no
        Image formats:
          GIF .................................. yes
          ICO .................................. yes
          JPEG ................................. yes
            Using system libjpeg ............... no
          PNG .................................. yes
            Using system libpng ................ no
        EGL .................................... yes
        OpenVG ................................. no
        OpenGL:
          Desktop OpenGL ....................... no
          OpenGL ES 2.0 ........................ yes
          OpenGL ES 3.0 ........................ no
          OpenGL ES 3.1 ........................ no
          OpenGL ES 3.2 ........................ no
        Vulkan ................................. no
        Session Management ..................... yes
      Features used by QPA backends:
        evdev .................................. yes
        libinput ............................... no
        INTEGRITY HID .......................... no
        mtdev .................................. no
        tslib .................................. no
        xkbcommon .............................. no
        X11 specific:
          XLib ................................. no
          XCB Xlib ............................. no
          EGL on X11 ........................... no
      QPA backends:
        DirectFB ............................... no
        EGLFS .................................. no
        LinuxFB ................................ no
        VNC .................................... no
        Mir client ............................. no
      Qt Sql:
        SQL item models ........................ yes
      Qt Widgets:
        GTK+ ................................... no
        Styles ................................. Fusion Windows Android
      Qt PrintSupport:
        CUPS ................................... no
      Qt Sql Drivers:
        DB2 (IBM) .............................. no
        InterBase .............................. no
        MySql .................................. no
        OCI (Oracle) ........................... no
        ODBC ................................... no
        PostgreSQL ............................. no
        SQLite2 ................................ no
        SQLite ................................. no
          Using system provided SQLite ......... no
        TDS (Sybase) ........................... no
      Qt Testlib:
        Tester for item models ................. yes
      Qt QML:
        QML network support .................... yes
        QML debugging and profiling support .... no
        QML sequence object .................... yes
        QML list model ......................... yes
        QML XML http request ................... yes
        QML Locale ............................. yes
        QML delegate model ..................... yes
      Qt Quick:
        Direct3D 12 ............................ no
        AnimatedImage item ..................... yes
        Canvas item ............................ yes
        Support for Qt Quick Designer .......... yes
        Flipable item .......................... yes
        GridView item .......................... yes
        ListView item .......................... yes
        TableView item ......................... yes
        Path support ........................... yes
        PathView item .......................... yes
        Positioner items ....................... yes
        Repeater item .......................... yes
        ShaderEffect item ...................... yes
        Sprite item ............................ yes
      Qt Bluetooth:
        BlueZ .................................. no
        BlueZ Low Energy ....................... no
        Linux Crypto API ....................... no
        WinRT Bluetooth API (desktop & UWP) .... no
      Qt Sensors:
        sensorfw ............................... no
      Qt Quick Controls 2:
        Styles ................................. Default Fusion Imagine Material Universal
      Qt Quick Templates 2:
        Hover support .......................... yes
        Multi-touch support .................... yes
      Qt Tools:
        QDoc ................................... yes
      

      Attachments

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

        Activity

          People

            docteam Qt Documentation Team
            larss Lars Schmertmann
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes