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

build fails on Ubuntu 18.04 due to zstd not knowing --single-thread

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.15.0
    • Fix Version/s: 5.15.1
    • Component/s: Build tools: Other
    • Labels:
      None
    • Platform/s:
      Linux/Other display system
    • Commits:
      03dfd4199deb4a0f5123fb1eead42f7e1f85e9e3 (qt/qtbase/dev) b379b301145edd0d88b7ac21e5900cdf3126b877 (qt/qtbase/5.15)

      Description

      I'm cross-compiling on Ubuntu 18.04 amd64 with the latest MXE for i686-w64-mingw32.static and x86_64-w64-mingw32.static (MXE verbiage). For both architectures the build fails with the following error message:
       

      perl /opt/mxe/tmp-qtbase-x86_64-w64-mingw32.static/qtbase-everywhere-src-5.15.0/src/corelib/mimetypes/mime/generate.pl --zstd mimetypes/mime/packages/freedesktop.org.xml > .rcc/release/qmimeprovider_database.cpp
      Incorrect parameters
      Failed to run zstd -cq19 --single-thread < mimetypes/mime/packages/freedesktop.org.xml at /opt/mxe/tmp-qtbase-x86_64-w64-mingw32.static/qtbase-everywhere-src-5.15.0/src/corelib/mimetypes/mime/generate.pl line 82.

      The problem is that zstd on Ubuntu 18.04 is 1.3.3+dfsg-2ubuntu1.1 which doesn't support the "--single-thread" option yet.

      After patching "generate.pl" and removing "--single-thread" from the invocation of zstd the build succeeds for both architectures.

        Attachments

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

          Activity

            People

            Assignee:
            thiago Thiago Macieira
            Reporter:
            mbunkus Moritz Bunkus
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes