Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Build qt5.15, ninja fails randomly
QtWS25 Last Chance

Build qt5.15, ninja fails randomly

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
4 Posts 3 Posters 3.8k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Y Offline
    Y Offline
    yanni
    wrote on last edited by
    #1

    I am building qt-everywhere-src-5.15.5, after installing all the dependencies (mostly the libs for QtWebengine), I ran

    ./configure 
    

    and then make. The output is like this

    [156/10725] /usr/bin/g++ -MMD -  .............. -o obj/third_party/webrtc/audio/audio/audio_receive_stream.o
    [158/10725] /usr/bin/g++ -MMD -MF ........ -o obj/third_party/webrtc/audio/audio/audio_send_stream.o
    ninja: build stopped: subcommand failed.
    make[4]: Leaving directory `/home/me/my_soft/qt-everywhere-src-5.15.5/qtwebengine/src/core'
    make[3]: Leaving directory `/home/me/my_soft/qt-everywhere-src-5.15.5/qtwebengine/src/core'
    make[2]: Leaving directory `/home/me/my_soft/qt-everywhere-src-5.15.5/qtwebengine/src'
    make[1]: Leaving directory `/home/me/my_soft/qt-everywhere-src-5.15.5/qtwebengine'
    

    The second time I ran make, it says

    [167/10568] /usr/bin/g++ -MMD -MF ........... -o obj/third_party/webrtc/call/call/call.o
    ninja: build stopped: subcommand failed.
    make[4]: Leaving directory `/home/me/my_soft/qt-everywhere-src-5.15.5/qtwebengine/src/core'
    make[3]: Leaving directory `/home/me/my_soft/qt-everywhere-src-5.15.5/qtwebengine/src/core'
    make[2]: Leaving directory `/home/me/my_soft/qt-everywhere-src-5.15.5/qtwebengine/src'
    make[1]: Leaving directory `/home/me/my_soft/qt-everywhere-src-5.15.5/qtwebengine'
    

    Sometiems it says

    ninja: build stopped: subcommand failed.
    make[4]: *** [run_ninja] Error 1
    

    Every time I ran make, it would stop at different positions. Sometimes [98/10528], sometimes [103/10687]. Besides, the number of tasks seems to be varying, sometimes 10568, sometimes 10725.

    Here are my questions:

    • I am pretty sure I did not re-run ./configure, why would the number of tasks change?
    • How do I know why ninja fails? Is there any log? I tried make V=1, it does not give me any additional information.
    • It seems that every time it stops when building QtWebengine. Is this related to the libs I manually installed?

    I am running the above on Centos7 with 256GB RAM, although there are other users, the free memory is considered to be larger than 100GB.

    For brevity, I omitted some of the make output, here is more detailed one:

    [166/10568] /usr/bin/python2 ../../3rdparty/chromium/third_party/devtools-frontend/src/scripts/build/generate_devtools_grd.py --file_list __third_party_devtools-frontend_src_generate_devtools_grd__home_me_my_soft_qt-everywhere-src-5.15.5_qtwebengine_src_toolchain_target__rule.rsp --relative_path_dirs resources/inspector ../../3rdparty/chromium/third_party/devtools-frontend/src/front_end --images ../../3rdparty/chromium/third_party/devtools-frontend/src/front_end/Images --output gen/devtools/devtools_resources.grd
    [167/10568] /cm/shared/apps/gcc8/8.2.0/bin/g++ -MMD -MF obj/third_party/webrtc/call/call/call.o.d -DUSE_UDEV -DUSE_AURA=1 -DUSE_NSS_CERTS=1 -DUSE_OZONE=1 -DOFFICIAL_BUILD -DTOOLKIT_QT -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DNO_UNWIND_TABLES -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DWEBRTC_ENABLE_PROTOBUF=1 -DRTC_ENABLE_VP9 -DHAVE_SCTP -DENABLE_EXTERNAL_AUTH -DHAVE_WEBRTC_VIDEO -DLOGGING_INSIDE_WEBRTC -DWEBRTC_LIBRARY_IMPL -DWEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS=0 -DWEBRTC_CHROMIUM_BUILD -DWEBRTC_POSIX -DWEBRTC_LINUX -DABSL_ALLOCATOR_NOTHROW=1 -Igen -I../../3rdparty/chromium -I../../3rdparty/chromium/third_party/webrtc_overrides -I../../3rdparty/chromium/third_party/webrtc -Igen/third_party/webrtc -I../../3rdparty/chromium/third_party/abseil-cpp -I../../3rdparty/chromium/third_party/perfetto/include -Igen/third_party/perfetto/build_config -Igen/third_party/perfetto -I../../3rdparty/chromium/third_party/libyuv/include -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -fno-unwind-tables -fno-asynchronous-unwind-tables -fPIC -pipe -pthread -m64 -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -Wno-unused-local-typedefs -Wno-maybe-uninitialized -Wno-deprecated-declarations -fno-delete-null-pointer-checks -Wno-comments -Wno-packed-not-aligned -Wno-dangling-else -Wno-missing-field-initializers -Wno-unused-parameter -O2 -fno-ident -fdata-sections -ffunction-sections -fno-omit-frame-pointer -g0 -fvisibility=hidden -std=gnu++14 -Wno-narrowing -Wno-class-memaccess -Wno-attributes -Wno-class-memaccess -Wno-subobject-linkage -Wno-invalid-offsetof -Wno-return-type -Wno-deprecated-copy -fno-exceptions -fno-rtti -fvisibility-inlines-hidden -c ../../3rdparty/chromium/third_party/webrtc/call/call.cc -o obj/third_party/webrtc/call/call/call.o
    ninja: build stopped: subcommand failed.
    make[4]: Leaving directory `/home/me/my_soft/qt-everywhere-src-5.15.5/qtwebengine/src/core'
    make[3]: Leaving directory `/home/me/my_soft/qt-everywhere-src-5.15.5/qtwebengine/src/core'
    make[2]: Leaving directory `/home/me/my_soft/qt-everywhere-src-5.15.5/qtwebengine/src'
    make[1]: Leaving directory `/home/me/my_soft/qt-everywhere-src-5.15.5/qtwebengine'
    
    1 Reply Last reply
    0
    • O Offline
      O Offline
      odelaune
      wrote on last edited by
      #2

      I guess this is because the build is done in parallel. Try to force the number of jobs to 1 to see what is the exact error.

      Y 1 Reply Last reply
      1
      • O odelaune

        I guess this is because the build is done in parallel. Try to force the number of jobs to 1 to see what is the exact error.

        Y Offline
        Y Offline
        yanni
        wrote on last edited by
        #3

        @odelaune At first, I did run

        make -j4
        

        but it failed. So I switched to

        make
        

        The output I posted in the orignal post is the result of

        make
        

        Do I have to clean the previous result by make clean before re-run make?

        D 1 Reply Last reply
        0
        • Y yanni

          @odelaune At first, I did run

          make -j4
          

          but it failed. So I switched to

          make
          

          The output I posted in the orignal post is the result of

          make
          

          Do I have to clean the previous result by make clean before re-run make?

          D Offline
          D Offline
          daniel azuelos
          wrote on last edited by daniel azuelos
          #4

          @yanni said in Build qt5.15, ninja fails randomly:

          Do I have to clean the previous result by make clean before re-run make?

          Yes.

          run

          make clean
          make
          
          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved