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

[REG 5.9.3 -> 5.9.4] Linker errors in static build

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: 5.9.4
    • Fix Version/s: 5.9.4
    • Component/s: QPA: Wayland
    • Labels:
      None
    • Environment:
      Ubuntu 17.04 64 bit

      Description

      1. I cloned Qt 5.9.4:
        git clone git://code.qt.io/qt/qt5.git qt-5.9.4-pre
        cd qt-5.9.4-pre/
        git checkout 5.9.4
        perl init-repository --module-subset=default,-qtwebkit,-qtwebkit-examples --berlin --codereview-username rlohning
        
      2. Tried building it:
        nice /home/qtrob/dev/src/qt-5.9.4-pre/configure -opensource -developer-build -static -nomake tests -nomake examples -confirm-license && nice make -j64
        

        This results in linker errors:

        make[4]: Entering directory '/home/qtrob/dev/g++-6.3.0/qt-5.9.4-static/qtlocation/src/location/doc/snippets/places'
        g++ -fuse-ld=gold -Wl,--enable-new-dtags -o placescppsnippet .obj/main.o .obj/placescppsnippet_plugin_import.o   -L/home/qtrob/dev/g++-6.3.0/qt-5.9.4-static/qtbase/plugins/geoservices -lqtgeoservices_esri -L/home/qtrob/dev/g++-6.3.0/qt-5.9.4-static/qtbase/lib -lqtgeoservices_itemsoverlay -lqtgeoservices_mapbox -lqtgeoservices_mapboxgl -lqmapboxgl -lqtgeoservices_nokia -lqtgeoservices_osm -lQt5Concurrent -L/home/qtrob/dev/g++-6.3.0/qt-5.9.4-static/qtbase/plugins/position -lqtposition_geoclue -lqtposition_positionpoll -L/home/qtrob/dev/g++-6.3.0/qt-5.9.4-static/qtbase/plugins/platforms -lqwayland-egl -lqwayland-generic -lqwayland-xcomposite-egl -lqwayland-xcomposite-glx -lqxcb -L/home/qtrob/dev/g++-6.3.0/qt-5.9.4-static/qtbase/plugins/xcbglintegrations -lqxcb-egl-integration -lqxcb-glx-integration -lQt5XcbQpa -lQt5LinuxAccessibilitySupport -lQt5AccessibilitySupport -lxcb-glx -lXi -lSM -lICE -lxcb-xkb -lxcb-render-util -lxcb-sync -lxcb-xfixes -lxcb-xinerama -lxcb-randr -lxcb-render -lxcb-image -lxcb-shm -lxcb-keysyms -lxcb-icccm -lxcb-shape -lxkbcommon-x11 -L/home/qtrob/dev/g++-6.3.0/qt-5.9.4-static/qtbase/plugins/imageformats -lqgif -lqicns -lqico -lqjpeg -ljpeg -lqtga -lqtiff -ltiff -lqwbmp -lqwebp -L/home/qtrob/dev/g++-6.3.0/qt-5.9.4-static/qtbase/plugins/egldeviceintegrations -lqeglfs-emu-integration -lqeglfs-kms-egldevice-integration -lqeglfs-kms-integration -lQt5EglFsKmsSupport -lQt5KmsSupport -lgbm -ldrm -lqeglfs-x11-integration -lQt5EglFSDeviceIntegration -lQt5FbSupport -lQt5InputSupport -lmtdev -linput -lQt5PlatformCompositorSupport -lQt5DeviceDiscoverySupport -ludev -lX11-xcb -lxcb -L/home/qtrob/dev/g++-6.3.0/qt-5.9.4-static/qtbase/plugins/qmltooling -lqmldbg_debugger -lqmldbg_inspector -lqmldbg_local -lqmldbg_messages -lqmldbg_native -lqmldbg_nativedebugger -lqmldbg_profiler -lqmldbg_quickprofiler -lqmldbg_server -lQt5PacketProtocol -lqmldbg_tcp -L/home/qtrob/dev/g++-6.3.0/qt-5.9.4-static/qtbase/plugins/bearer -lqconnmanbearer -lqgenericbearer -lqnmbearer -L/home/qtrob/dev/g++-6.3.0/qt-5.9.4-static/qtbase/plugins/wayland-graphics-integration-client -ldrm-egl-server -lwayland-egl -lxcomposite-egl -lQt5EglSupport -lEGL -lxcomposite-glx -lQt5GlxSupport -lXext -lXcomposite -lX11 -L/home/qtrob/dev/g++-6.3.0/qt-5.9.4-static/qtbase/plugins/wayland-decoration-client -lbradient -L/home/qtrob/dev/g++-6.3.0/qt-5.9.4-static/qtbase/plugins/wayland-shell-integration -livi-shell -lQt5WaylandClient -lQt5FontDatabaseSupport -lfontconfig -lfreetype -lQt5EventDispatcherSupport -lQt5ThemeSupport -lQt5DBus -ldbus-1 -lQt5ServiceSupport -lwayland-client -lxkbcommon -lwayland-cursor -L/home/qtrob/dev/g++-6.3.0/qt-5.9.4-static/qtbase/plugins/sqldrivers -lqsqlite -lqsqlmysql -lmysqlclient -lqsqlodbc -lodbc -lqsqlpsql -lpq -lqsqltds -lQt5Sql -lsybdb -lQt5Location -lQt5Positioning -lclip2tri -lpoly2tri -lclipper -lQt5Quick -lQt5Gui -lpng16 -lharfbuzz -lQt5Qml -lrt -lQt5Network -lQt5Core -lm -lz -licui18n -licuuc -licudata -lqtpcre2 -ldl -lgthread-2.0 -lglib-2.0 -lGL -lpthread 
        /home/qtrob/dev/src/qt-5.9.4-pre/qtwayland/src/hardwareintegration/client/wayland-egl/qwaylandglcontext.cpp:331: error: undefined reference to 'wl_egl_window_create'
        /home/qtrob/dev/src/qt-5.9.4-pre/qtwayland/src/hardwareintegration/client/wayland-egl/qwaylandglcontext.cpp:373: error: undefined reference to 'wl_egl_window_destroy'
        /home/qtrob/dev/src/qt-5.9.4-pre/qtwayland/src/hardwareintegration/client/wayland-egl/qwaylandeglwindow.cpp:85: error: undefined reference to 'wl_egl_window_destroy'
        /home/qtrob/dev/src/qt-5.9.4-pre/qtwayland/src/hardwareintegration/client/wayland-egl/qwaylandeglwindow.cpp:121: error: undefined reference to 'wl_egl_window_destroy'
        /home/qtrob/dev/src/qt-5.9.4-pre/qtwayland/src/hardwareintegration/client/wayland-egl/qwaylandeglwindow.cpp:128: error: undefined reference to 'wl_egl_window_get_attached_size'
        /home/qtrob/dev/src/qt-5.9.4-pre/qtwayland/src/hardwareintegration/client/wayland-egl/qwaylandeglwindow.cpp:130: error: undefined reference to 'wl_egl_window_resize'
        /home/qtrob/dev/src/qt-5.9.4-pre/qtwayland/src/hardwareintegration/client/wayland-egl/qwaylandeglwindow.cpp:136: error: undefined reference to 'wl_egl_window_create'
        /home/qtrob/dev/src/qt-5.9.4-pre/qtwayland/src/hardwareintegration/client/wayland-egl/qwaylandeglwindow.cpp:178: error: undefined reference to 'wl_egl_window_destroy'
        collect2: error: ld returned 1 exit status
        Makefile:67: recipe for target 'placescppsnippet' failed
        make[4]: *** [placescppsnippet] Error 1
        make[4]: Leaving directory '/home/qtrob/dev/g++-6.3.0/qt-5.9.4-static/qtlocation/src/location/doc/snippets/places'
        Makefile:46: recipe for target 'sub-places-make_first' failed
        make[3]: *** [sub-places-make_first] Error 2
        make[3]: Leaving directory '/home/qtrob/dev/g++-6.3.0/qt-5.9.4-static/qtlocation/src/location/doc/snippets'
        Makefile:258: recipe for target 'sub-location-doc-snippets-make_first' failed
        make[2]: *** [sub-location-doc-snippets-make_first] Error 2
        make[2]: Leaving directory '/home/qtrob/dev/g++-6.3.0/qt-5.9.4-static/qtlocation/src'
        Makefile:46: recipe for target 'sub-src-make_first' failed
        make[1]: *** [sub-src-make_first] Error 2
        make[1]: Leaving directory '/home/qtrob/dev/g++-6.3.0/qt-5.9.4-static/qtlocation'
        Makefile:730: recipe for target 'module-qtlocation-make_first' failed
        make: *** [module-qtlocation-make_first] Error 2
        

        Attachments

        For Gerrit Dashboard: QTBUG-65652
        # Subject Branch Project Status CR V

          Activity

            People

            • Assignee:
              johanhelsing Johan Helsing
              Reporter:
              rlohning Robert Löhning
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes