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

[REG 5.8 -> 5.9] ninja error when building in a path containing "+"

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.9.0
    • 5.9
    • WebEngine
    • Ubuntu 16.04 LTS 64 bit
      g++ (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609
      qtwebengine at cd475d5727becd6ec4e7605d335721355e049354

    Description

      1. Clone Qt 5.9:
        git clone git://code.qt.io/qt/qt5.git qt-5.9.0-pre
        
      2. Create a parallel directory which contains a "+" in its path.
        I have /home/qtrob/dev/g++-5.4.0/qt-5.9.0-pre
      3. Try building Qt:
        nice /home/qtrob/dev/src/qt-5.9.0-pre/configure -developer-build -opensource -nomake examples -nomake tests -confirm-license && nice make -j8 && nice make -j8 docs && echo success
        

        Building WebEngine will fail:

        /home/qtrob/dev/g++-5.4.0/qt-5.9.0-pre/qtwebengine/src/3rdparty/ninja/ninja  -v -C /home/qtrob/dev/g++-5.4.0/qt-5.9.0-pre/qtwebengine/src/core/Debug QtWebEngineCore
        ninja: Entering directory `/home/qtrob/dev/g++-5.4.0/qt-5.9.0-pre/qtwebengine/src/core/Debug'
        ninja: error: obj/generate_cpp_mocs.ninja:1: expected newline, got lexing error
        rule _home_qtrob_dev_g++-5.4.0_qt-5.9.0-pre_qtwebengine_src_core_Debug_g...
                              ^ near here
        Makefile.gn_run:550: die Regel für Ziel „run_ninja“ scheiterte
        make[4]: *** [run_ninja] Fehler 1
        

      Building WebEngine should be possible regardless of special characters in the path. Trying the same in directory /home/qtrob/dev/gxx-5.4.0/qt-5.9.0-pre does not lead to this error.

      Attachments

        1. config.log
          154 kB
        2. config.summary
          8 kB
        3. make.log
          193 kB
        For Gerrit Dashboard: QTBUG-58942
        # Subject Branch Project Status CR V

        Activity

          People

            michal Michal Klocek
            rlohning Robert Löhning
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes