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

Build Qt fails: jom Error 2 on rcc.exe

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • 5.15.6
    • Build System
    • None
    • Windows servercore:ltsc2019 (docker image)
      MSVC 16 2019
    • Windows

    Description

      Building Qt fails with this summary:

      jom: C:\.conan\1e375a\1\build_folder\qtbase\src\Makefile [sub-gui-make_first] Error 2
      jom: C:\.conan\1e375a\1\build_folder\qtbase\Makefile [sub-src-make_first] Error 2
      jom: C:\.conan\1e375a\1\build_folder\Makefile [module-qtbase-make_first] Error 2

      Looking at the first errors in the logs:

      C:\.conan\1e375a\1\build_folder\qtbase\bin\rcc.exe -name qpdf C:\.conan\dd64af\1\qt5\qtbase\src\gui\painting\qpdf.qrc -o .rcc\debug\qrc_qpdf.cpp
      WARNING: Failure to find: C:/.conan/1e375a/1/build_folder/qtbase/src/gui/qt5guid_metatypes.json
      WARNING: Failure to find: C:/.conan/1e375a/1/build_folder/qtbase/src/gui/qt5gui_metatypes.json
      jom: C:\.conan\1e375a\1\build_folder\qtbase\src\gui\Makefile.Debug [.rcc\debug\qrc_qpdf.cpp] Error 2
      jom: C:\.conan\1e375a\1\build_folder\qtbase\src\gui\Makefile [debug] Error 2 

      Notice that moc is also invoked, and does not fail:

      C:\.conan\1e375a\1\build_folder\qtbase\bin\moc.exe -DUNICODE .... 

      This build fails on a docker environment, that was able to compile Qt5 (Gui, Widgets) some months ago.

      Building Qt5.15.6 on Windows 10 (also using conan with the same recipe) works.

      There is probably something missing or wrong with my docker image.

      The problem is that I can't find useful information about what goes wrong.

      Could you please give me some pointers to find what goes wrong ?

       

      The configure command:

      C:\.conan\dd64af\1\qt5\qtbase\configure.bat -top-level -shared -confirm-license -nomake examples -nomake tests -prefix C:\.conan\fb0d40\1 -verbose -archdatadir  C:\.conan\fb0d40\1\bin\archdatadir -datadir  C:\.conan\fb0d40\1\bin\datadir -sysconfdir  C:\.conan\fb0d40\1\bin\sysconfdir -opensource -debug -skip qtsvg -skip qtdeclarative -skip qtactiveqt -skip qtscript -skip qtmultimedia -skip qtxmlpatterns -skip qtdoc -skip qtlocation -skip qtsensors -skip qtconnectivity -skip qtwayland -skip qt3d -skip qtimageformats -skip qtgraphicaleffects -skip qtquickcontrols -skip qtserialbus -skip qtwinextras -skip qtandroidextras -skip qtwebsockets -skip qtwebchannel -skip qtwebengine -skip qtwebview -skip qtquickcontrols2 -skip qtpurchasing -skip qtcharts -skip qtdatavis3d -skip qtvirtualkeyboard -skip qtgamepad -skip qtscxml -skip qtspeech -skip qtnetworkauth -skip qtremoteobjects -skip qtwebglplugin -skip qtlottie -skip qtquicktimeline -skip qtquick3d --zlib=system -opengl dynamic -no-vulkan -openssl-linked --glib=no --pcre=system --fontconfig=no --icu=no --sql-mysql=no --sql-psql=yes --sql-odbc=yes --zstd=yes -no-dbus -no-feature-gssapi -system-doubleconversion -system-freetype -no-harfbuzz -system-libjpeg -system-libpng -system-sqlite -system-libmd4c "ZLIB_LIBS=-lzdll" "OPENSSL_LIBS=-llibssld -llibcryptod -lcrypt32 -lws2_32 -ladvapi32 -luser32 -lbcrypt" "PCRE2_LIBS=-lpcre2-posix-staticd -lpcre2-8-staticd -lpcre2-16-staticd -lpcre2-32-staticd -lzdll -lbz2" "DOUBLECONVERSION_LIBS=-ldouble-conversion" "FREETYPE_INCDIR=C:\Users\ContainerAdministrator\.conan\data\freetype\2.12.1\_\_\package\c69bad48274e7fc45c887cddc32aa0459f0a81e0\include\freetype2" "FREETYPE_LIBS=-lfreetyped -llibpng16d -lzdll -lbz2 -lbrotlidec-static -lbrotlienc-static -lbrotlicommon-static" "LIBJPEG_LIBS=-llibjpeg" "LIBPNG_LIBS=-llibpng16d -lzdll" "SQLITE_LIBS=-lsqlite3" "PSQL_LIBS=-llibpq -llibpgcommon -llibpgport -lws2_32 -lsecur32 -ladvapi32 -lshell32 -lcrypt32 -lwldap32" "ZSTD_LIBS=-lzstd_static" "LIBMD4C_LIBS=-lmd4c-html -lmd4c" -I "C:\Users\ContainerAdministrator\.conan\data\openssl\1.1.1s\_\_\package\d057732059ea44a47760900cb5e4855d2bea8714\include" -I "C:\Users\ContainerAdministrator\.conan\data\pcre2\10.40\_\_\package\2e8119dcddebbc9d5753b8e12f06b903b0f1ae93\include" -D PCRE2_STATIC -I "C:\Users\ContainerAdministrator\.conan\data\double-conversion\3.2.1\_\_\package\846e49ae2c2d7b4448ca2380ea2b4c7a382d695b\include" -I "C:\Users\ContainerAdministrator\.conan\data\freetype\2.12.1\_\_\package\c69bad48274e7fc45c887cddc32aa0459f0a81e0\include" -I "C:\Users\ContainerAdministrator\.conan\data\freetype\2.12.1\_\_\package\c69bad48274e7fc45c887cddc32aa0459f0a81e0\include\freetype2" -I "C:\Users\ContainerAdministrator\.conan\data\libjpeg\9e\_\_\package\d057732059ea44a47760900cb5e4855d2bea8714\include" -D LIBJPEG_STATIC -I "C:\Users\ContainerAdministrator\.conan\data\sqlite3\3.39.4\_\_\package\6479851e80c7daa08c841403b40c4699e1a1c9d4\include" -I "C:\Users\ContainerAdministrator\.conan\data\libpq\14.5\_\_\package\d057732059ea44a47760900cb5e4855d2bea8714\include" -I "C:\Users\ContainerAdministrator\.conan\data\zstd\1.5.2\_\_\package\1967f444568571a94da80e35a521699f1a90cb74\include" -I "C:\Users\ContainerAdministrator\.conan\data\md4c\0.4.8\_\_\package\1f5b0ce9970a3c13e031b0fc7851f447d0887ff3\include" -I "C:\Users\ContainerAdministrator\.conan\data\bzip2\1.0.8\_\_\package\589a23dff5fdb23a7fb851223eb766480ead0a9a\include" -I "C:\Users\ContainerAdministrator\.conan\data\libpng\1.6.38\_\_\package\8b1ef0ec9599374db4689199730c00a0d5f4de36\include" -I "C:\Users\ContainerAdministrator\.conan\data\brotli\1.0.9\_\_\package\06a7a5848f39a2b1d31f3ee2414a17d463f68a34\include" -I "C:\Users\ContainerAdministrator\.conan\data\brotli\1.0.9\_\_\package\06a7a5848f39a2b1d31f3ee2414a17d463f68a34\include\brotli" -I "C:\Users\ContainerAdministrator\.conan\data\zlib\1.2.13\_\_\package\4f1710918aa542fccb5a54d7bd712e4b0750b50d\include" QMAKE_LIBDIR+="C:\Users\ContainerAdministrator\.conan\data\openssl\1.1.1s\_\_\package\d057732059ea44a47760900cb5e4855d2bea8714\lib C:\Users\ContainerAdministrator\.conan\data\pcre2\10.40\_\_\package\2e8119dcddebbc9d5753b8e12f06b903b0f1ae93\lib C:\Users\ContainerAdministrator\.conan\data\double-conversion\3.2.1\_\_\package\846e49ae2c2d7b4448ca2380ea2b4c7a382d695b\lib C:\Users\ContainerAdministrator\.conan\data\freetype\2.12.1\_\_\package\c69bad48274e7fc45c887cddc32aa0459f0a81e0\lib C:\Users\ContainerAdministrator\.conan\data\libjpeg\9e\_\_\package\d057732059ea44a47760900cb5e4855d2bea8714\lib C:\Users\ContainerAdministrator\.conan\data\sqlite3\3.39.4\_\_\package\6479851e80c7daa08c841403b40c4699e1a1c9d4\lib C:\Users\ContainerAdministrator\.conan\data\libpq\14.5\_\_\package\d057732059ea44a47760900cb5e4855d2bea8714\lib C:\Users\ContainerAdministrator\.conan\data\zstd\1.5.2\_\_\package\1967f444568571a94da80e35a521699f1a90cb74\lib C:\Users\ContainerAdministrator\.conan\data\md4c\0.4.8\_\_\package\1f5b0ce9970a3c13e031b0fc7851f447d0887ff3\lib C:\Users\ContainerAdministrator\.conan\data\bzip2\1.0.8\_\_\package\589a23dff5fdb23a7fb851223eb766480ead0a9a\lib C:\Users\ContainerAdministrator\.conan\data\libpng\1.6.38\_\_\package\8b1ef0ec9599374db4689199730c00a0d5f4de36\lib C:\Users\ContainerAdministrator\.conan\data\brotli\1.0.9\_\_\package\06a7a5848f39a2b1d31f3ee2414a17d463f68a34\lib C:\Users\ContainerAdministrator\.conan\data\zlib\1.2.13\_\_\package\4f1710918aa542fccb5a54d7bd712e4b0750b50d\lib" -psql_config "C:\Users\ContainerAdministrator\.conan\data\libpq\14.5\_\_\package\d057732059ea44a47760900cb5e4855d2bea8714\bin\pg_config" -platform win32-msvc -no-feature-vkgen 

      Here is the Qt configuration summary:

      Build type: win32-msvc (x86_64, CPU features: sse sse2)
      Compiler: msvc 192930147
      Configuration: sse2 aesni sse3 ssse3 sse4_1 sse4_2 avx avx2 avx512f avx512bw avx512cd avx512dq avx512er avx512ifma avx512pf avx512vbmi avx512vl compile_examples f16c largefile precompile_header rdrnd rdseed shani x86SimdAlways shared shared debug c++11 c++14 c++17 c++1z concurrent no-pkg-config release_tools stl
      Build options:
        Mode ................................... debug; optimized tools
        Building shared libraries .............. yes
        Using C standard ....................... C89
        Using C++ standard ..................... C++17
        Relocatable ............................ yes
        Using precompiled headers .............. yes
        Using LTCG ............................. no
        Target compiler supports:
          SSE .................................. SSE2 SSE3 SSSE3 SSE4.1 SSE4.2
          AVX .................................. AVX AVX2
          AVX512 ............................... F ER CD PF DQ BW VL IFMA VBMI
          Other x86 ............................ AES F16C RDRAND SHA
        Build parts ............................ libs tools
        App store compliance ................... no
      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 ................................. yes
        Qt Testlib ............................. yes
        Qt Widgets ............................. yes
        Qt Xml ................................. yes
      Support enabled for:
        Using pkg-config ....................... no
        udev ................................... no
        Using system zlib ...................... yes
        Zstandard support ...................... yes
      Qt Core:
        DoubleConversion ....................... yes
          Using system DoubleConversion ........ yes
        GLib ................................... no
        iconv .................................. no
        ICU .................................... no
        Built-in copy of the MIME database ..... yes
        Tracing backend ........................ <none>
        Logging backends:
          journald ............................. no
          syslog ............................... no
          slog2 ................................ no
        PCRE2 .................................. yes
          Using system PCRE2 ................... yes
      Qt Network:
        getifaddrs() ........................... no
        IPv6 ifname ............................ no
        libproxy ............................... no
        Schannel ............................... no
        OpenSSL ................................ yes
          Qt directly linked to OpenSSL ........ yes
        OpenSSL 1.1 ............................ yes
        DTLS ................................... yes
        OCSP-stapling .......................... yes
        SCTP ................................... no
        Use system proxies ..................... yes
        GSSAPI ................................. no
      Qt Gui:
        Accessibility .......................... yes
        FreeType ............................... yes
          Using system FreeType ................ yes
        HarfBuzz ............................... no
          Using system HarfBuzz ................ no
        Fontconfig ............................. no
        Image formats:
          GIF .................................. yes
          ICO .................................. yes
          JPEG ................................. yes
            Using system libjpeg ............... yes
          PNG .................................. yes
            Using system libpng ................ yes
        Text formats:
          HtmlParser ........................... yes
          CssParser ............................ yes
          OdfWriter ............................ yes
          MarkdownReader ....................... yes
            Using system libmd4c ............... yes
          MarkdownWriter ....................... yes
        EGL .................................... yes
        OpenVG ................................. no
        OpenGL:
          ANGLE ................................ yes
          Combined ANGLE Library ............... no
          Desktop OpenGL ....................... no
          Dynamic OpenGL ....................... yes
          OpenGL ES 2.0 ........................ no
          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 .................................. no
        libinput ............................... no
        INTEGRITY HID .......................... no
        mtdev .................................. no
        tslib .................................. no
        xkbcommon .............................. no
        X11 specific:
          XLib ................................. no
          XCB Xlib ............................. no
          EGL on X11 ........................... no
          xkbcommon-x11 ........................ no
      QPA backends:
        DirectFB ............................... no
        EGLFS .................................. no
        LinuxFB ................................ no
        VNC .................................... no
        Windows:
          Direct 2D ............................ yes
          DirectWrite .......................... yes
          DirectWrite 2 ........................ yes
      Qt Sql:
        SQL item models ........................ yes
      Qt Widgets:
        GTK+ ................................... no
        Styles ................................. Fusion Windows WindowsVista
      Qt PrintSupport:
        CUPS ................................... no
      Qt Sql Drivers:
        DB2 (IBM) .............................. no
        InterBase .............................. no
        MySql .................................. no
        OCI (Oracle) ........................... no
        ODBC ................................... yes
        PostgreSQL ............................. yes
        SQLite2 ................................ no
        SQLite ................................. yes
          Using system provided SQLite ......... yes
        TDS (Sybase) ........................... no
      Qt Testlib:
        Tester for item models ................. yes
      Serial Port:
        ntddmodm ............................... no
      Qt Tools:
        Qt Assistant ........................... yes
        Qt Designer ............................ yes
        Qt Distance Field Generator ............ yes
        kmap2qmap .............................. yes
        Qt Linguist ............................ yes
        Mac Deployment Tool .................... no
        makeqpf ................................ yes
        pixeltool .............................. yes
        qdbus .................................. yes
        qev .................................... yes
        Qt Attributions Scanner ................ yes
        qtdiag ................................. yes
        qtpaths ................................ yes
        qtplugininfo ........................... yes
        Windows deployment tool ................ yes
        WinRT Runner Tool ...................... no
      Qt Tools:
        QDoc ................................... no 

      You can also find the full logs on the attached file.

      Attachments

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

        Activity

          People

            qtbuildsystem Qt Build System Team
            scandyna Philippe Steinmann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes