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

Qt-6.2.1 fails to build translations with top-level configure and Makefile generator

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.2.1
    • Build System
    • None
    • uname -a:
      Linux hpb02 5.11.0-40-generic #44~20.04.2-Ubuntu SMP Tue Oct 26 18:07:44 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
    • Linux/X11

    Description

      With this configuration:

      ../qt-everywhere-src-6.2.1/configure 
       -opensource -confirm-license -plugin-sql-mysql -silent
       -nomake tests -nomake examples
       -skip qtlocation -skip qtwayland -skip qtwebengine -skip qt3d -skip qtconnectivity
       -skip qtvirtualkeyboard -skip qtsensors -skip qtspeech -skip qtgamepad -skip qtpurchasing 
       -skip qtactiveqt -skip qtserialbus -skip qtserialport -skip qtlottie
       -no-dbus -no-feature-accessibility
       -fontconfig -system-freetype -system-libjpeg -system-libpng
       -prefix /usr/local/Qt/Qt-6.2.1
       --linker=gold
       

      The build fails with multiple cores (nproc: 16):
      $ cmake --build . --parallel

      Updating '/home/pst/sw/Qt/build_qt6/qtbase/./translations/qtmultimedia_en.qm'...
       lrelease error: cannot create '/home/pst/sw/Qt/build_qt6/qtbase/./translations/qtmultimedia_en.qm': No such file or directory
       make[2]: *** [qttranslations/translations/CMakeFiles/updateqm-qtmultimedia_en.ts.dir/build.make:57: qttranslations/translations/CMakeFiles/updateqm-qtmultimedia_en.ts] Error 1
       Scanning dependencies of target updateqm-qtserialport_en.ts
       Scanning dependencies of target updateqm-qt_gd.ts
       Updating '/home/pst/sw/Qt/build_qt6/qtbase/./translations/qtwebsockets_en.qm'...
       lrelease error: cannot create '/home/pst/sw/Qt/build_qt6/qtbase/./translations/qtwebsockets_en.qm': No such file or directory
       make[2]: *** [qttranslations/translations/CMakeFiles/updateqm-qtwebsockets_en.ts.dir/build.make:57: qttranslations/translations/CMakeFiles/updateqm-qtwebsockets_en.ts] Error 1
       Updating '/home/pst/sw/Qt/build_qt6/qtbase/./translations/qtwebengine_en.qm'...
       lrelease error: cannot create '/home/pst/sw/Qt/build_qt6/qtbase/./translations/qtwebengine_en.qm': No such file or directory
       make[2]: *** [qttranslations/translations/CMakeFiles/updateqm-qtwebengine_en.ts.dir/build.make:57: qttranslations/translations/CMakeFiles/updateqm-qtwebengine_en.ts] Error 1
       make[1]: *** [CMakeFiles/Makefile2:73470: qttranslations/translations/CMakeFiles/updateqm-qtmultimedia_en.ts.dir/all] Error 2
       

       

      If I run the same with 3 cores, it works:

      $ cmake --build . --parallel *3*
      

      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
            raphaelstuder Raphael Studer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes