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

Static build: Imageformats are getting build simultaneously than examples using imageformats when building with -j option

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P2: Important
    • None
    • 5.9.2, 5.10.0 Beta 1, 5.10.0 Beta 3
    • Image formats
    • Ubuntu 16.04 (gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.5))

      Windows 10 (msvc2017) using jom

    Description

      It seems there is a dependency problem when building Qt statically (using many threads (-j4 option)) and building examples also.

      Qt 5.9.2 sources, configure script:

      ./configure -confirm-license -nomake tests -qt-libjpeg -qt-libpng -qt-xcb -qt-pcre  -confirm-license -verbose -release -no-use-gold-linker -skip qtwebengine -skip qtwebsockets -skip qtwebchannel -skip qtwebview -commercial -static -prefix /home/user/qt-src/qt-5.10.0-beta1-static/qtbase

      It seems that it's still building imageformats while it's building examples. It can't link to -lqwebp, since it's still building it.

      g++ -c -include .pch/Qt5XmlPatterns -pipe -O2 -fPIC -std=c++1z -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -Wvla -Wdate-time -D_REENTRANT -DQT_NO_FOREACH -DQT_NO_USING_NAMESPACE -DQT_ENABLE_QEXPLICITLYSHAREDDATAPOINTER_STATICCAST -DYYLTYPE_IS_DECLARED=1 -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_BUILD_XMLPATTERNS_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -Iacceltree -Idata -Iapi -Ienvironment -Iexpr -Ifunctions -Iiterators -Ijanitors -Iparser -Ischema -Itype -Iutils -I../../include -I../../include/QtXmlPatterns -I../../include/QtXmlPatterns/5.10.0 -I../../include/QtXmlPatterns/5.10.0/QtXmlPatterns -I/home/user/qt_src/qt-5.10.0-beta1-static/qtbase/include/QtCore/5.10.0 -I/home/user/qt_src/qt-5.10.0-beta1-static/qtbase/include/QtCore/5.10.0/QtCore -I/home/user/qt_src/qt-5.10.0-beta1-static/qtbase/include -I/home/user/qt_src/qt-5.10.0-beta1-static/qtbase/include/QtNetwork -I/home/user/qt_src/qt-5.10.0-beta1-static/qtbase/include/QtCore -I.moc -I/home/user/qt_src/qt-5.10.0-beta1-static/qtbase/mkspecs/linux-g++ -o .obj/qcoloringmessagehandler.o api/qcoloringmessagehandler.cpp
      make[5]: Entering directory '/home/user/qt_src/qt-5.10.0-beta1-static/qtsvg/src/plugins/imageformats/svg'
      g++ -pipe -O2 -fPIC -std=c++1z -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -Wall -W -Wvla -Wdate-time -dM -E -o .moc/moc_predefs.h /home/user/qt_src/qt-5.10.0-beta1-static/qtbase/mkspecs/features/data/dummy.cpp
      g++ -c -pipe -O2 -fPIC -std=c++1z -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -Wall -W -Wvla -Wdate-time -D_REENTRANT -fPIC -DQT_NO_FOREACH -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_STATICPLUGIN -DQT_PLUGIN -DQT_SVG_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -I../../../../include -I../../../../include/QtSvg -I/home/user/qt_src/qt-5.10.0-beta1-static/qtbase/include -I/home/user/qt_src/qt-5.10.0-beta1-static/qtbase/include/QtWidgets -I/home/user/qt_src/qt-5.10.0-beta1-static/qtbase/include/QtGui -I/home/user/qt_src/qt-5.10.0-beta1-static/qtbase/include/QtCore -I.moc -isystem /usr/include/libdrm -I/home/user/qt_src/qt-5.10.0-beta1-static/qtbase/mkspecs/linux-g++ -o .obj/qsvgiohandler.o qsvgiohandler.cpp
      make[4]: Entering directory '/home/user/qt_src/qt-5.10.0-beta1-static/qtnetworkauth/examples/oauth/twittertimeline'
      /home/user/qt_src/qt-5.10.0-beta1-static/qtnetworkauth/examples/oauth/twittertimeline/uic_wrapper.sh twitterdialog.ui -o .uic/ui_twitterdialog.h
      g++ -c -pipe -O2 -std=gnu++11 -fno-exceptions -Wall -W -D_REENTRANT -fPIC -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_NETWORKAUTH_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -I/home/user/qt_src/qt-5.10.0-beta1-static/qtbase/include -I/home/user/qt_src/qt-5.10.0-beta1-static/qtbase/include/QtWidgets -I/home/user/qt_src/qt-5.10.0-beta1-static/qtbase/include/QtGui -I../../../include -I../../../include/QtNetworkAuth -I/home/user/qt_src/qt-5.10.0-beta1-static/qtbase/include/QtNetwork -I/home/user/qt_src/qt-5.10.0-beta1-static/qtbase/include/QtCore -I.moc -isystem /usr/include/libdrm -I.uic -I/home/user/qt_src/qt-5.10.0-beta1-static/qtbase/mkspecs/linux-g++ -o .obj/twitter.o twitter.cpp
      /usr/bin/ld: cannot find -lqwebp
      collect2: error: ld returned 1 exit status
      Makefile:89: recipe for target 'terminal' failed
      make[4]: *** [terminal] Error 1
      make[4]: Leaving directory '/home/user/qt_src/qt-5.10.0-beta1-static/qtserialport/examples/serialport/terminal'
      Makefile:204: recipe for target 'sub-terminal-make_first' failed
      make[3]: *** [sub-terminal-make_first] Error 2
      make[3]: Leaving directory '/home/user/qt_src/qt-5.10.0-beta1-static/qtserialport/examples/serialport'
      Makefile:44: recipe for target 'sub-serialport-make_first' failed
      make[2]: *** [sub-serialport-make_first] Error 2
      make[2]: Leaving directory '/home/user/qt_src/qt-5.10.0-beta1-static/qtserialport/examples'
      Makefile:71: recipe for target 'sub-examples-make_first' failed
      make[1]: *** [sub-examples-make_first] Error 2
      make[1]: Leaving directory '/home/user/qt_src/qt-5.10.0-beta1-static/qtserialport'
      Makefile:178: recipe for target 'module-qtserialport-make_first' failed
      make: *** [module-qtserialport-make_first] Error 2
      make: *** Waiting for unfinished jobs....
      g++ -c -pipe -O2 -std=gnu++11 -fno-exceptions -Wall -W -D_REENTRANT -fPIC -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_NETWORKAUTH_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -I/home/user/qt_src/qt-5.10.0-beta1-static/qtbase/include -I/home/user/qt_src/qt-5.10.0-beta1-static/qtbase/include/QtWidgets -I/home/user/qt_src/qt-5.10.0-beta1-static/qtbase/include/QtGui -I../../../include -I../../../include/QtNetworkAuth -I/home/user/qt_src/qt-5.10.0-beta1-static/qtbase/include/QtNetwork -I/home/user/qt_src/qt-5.10.0-beta1-static/qtbase/include/QtCore -I.moc -isystem /usr/include/libdrm -I.uic -I/home/user/qt_src/qt-5.10.0-beta1-static/qtbase/mkspecs/linux-g++ -o .obj/twittertimelinemodel.o twittertimelinemodel.cpp
      make[4]: Entering directory '/home/user/qt_src/qt-5.10.0-beta1-static/qtnetworkauth/examples/oauth/redditclient'
      g++ -c -pipe -O2 -std=gnu++11 -fno-exceptions -Wall -W -D_REENTRANT -fPIC -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_NETWORKAUTH_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -I/home/user/qt_src/qt-5.10.0-beta1-static/qtbase/include -I/home/user/qt_src/qt-5.10.0-beta1-static/qtbase/include/QtWidgets -I/home/user/qt_src/qt-5.10.0-beta1-static/qtbase/include/QtGui -I../../../include -I../../../include/QtNetworkAuth -I/home/user/qt_src/qt-5.10.0-beta1-static/qtbase/include/QtNetwork -I/home/user/qt_src/qt-5.10.0-beta1-static/qtbase/include/QtCore -I.moc -isystem /usr/include/libdrm -I/home/user/qt_src/qt-5.10.0-beta1-static/qtbase/mkspecs/linux-g++ -o .obj/main.o main.cpp
      g++ -c -include .pch/Qt5XmlPatterns -pipe -O2 -fPIC -std=c++1z -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -Wvla -Wdate-time -D_REENTRANT -DQT_NO_FOREACH -DQT_NO_USING_NAMESPACE -DQT_ENABLE_QEXPLICITLYSHAREDDATAPOINTER_STATICCAST -DYYLTYPE_IS_DECLARED=1 -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_BUILD_XMLPATTERNS_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -Iacceltree -Idata -Iapi -Ienvironment -Iexpr -Ifunctions -Iiterators -Ijanitors -Iparser -Ischema -Itype -Iutils -I../../include -I../../include/QtXmlPatterns -I../../include/QtXmlPatterns/5.10.0 -I../../include/QtXmlPatterns/5.10.0/QtXmlPatterns -I/home/user/qt_src/qt-5.10.0-beta1-static/qtbase/include/QtCore/5.10.0 -I/home/user/qt_src/qt-5.10.0-beta1-static/qtbase/include/QtCore/5.10.0/QtCore -I/home/user/qt_src/qt-5.10.0-beta1-static/qtbase/include -I/home/user/qt_src/qt-5.10.0-beta1-static/qtbase/include/QtNetwork -I/home/user/qt_src/qt-5.10.0-beta1-static/qtbase/include/QtCore -I.moc -I/home/user/qt_src/qt-5.10.0-beta1-static/qtbase/mkspecs/linux-g++ -o .obj/qcoloroutput.o api/qcoloroutput.cpp
      rm -f ../../../../plugins/imageformats/libqwebp.a

      Attached is the whole build log.

      It does help if one adds '-nomake examples' to configure.

      Attachments

        Issue Links

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

          Activity

            People

              buddenha Oswald Buddenhagen
              mipohjan Milla Pohjanheimo
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes