Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QT source code build keep fail in randomly with no error
Forum Update on Monday, May 27th 2025

QT source code build keep fail in randomly with no error

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 276 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.
  • L Offline
    L Offline
    Lior
    wrote on 28 Dec 2023, 11:57 last edited by
    #1

    Hi,
    I'm trying to build QT 6.6.1 source code using MSVC 2019 and MSVC 2022 (x86 and x64).

    The compilation process is failing in random places with no actual error; the text is "FAILED:..."

    I tried to remove the parallel command.

    Im using the visual studio 64-bit cmd ,
    If I keep repeating the cmake command, the build is done "successfully" with no errors.

    A 1 Reply Last reply 28 Dec 2023, 23:12
    0
    • L Lior
      28 Dec 2023, 11:57

      Hi,
      I'm trying to build QT 6.6.1 source code using MSVC 2019 and MSVC 2022 (x86 and x64).

      The compilation process is failing in random places with no actual error; the text is "FAILED:..."

      I tried to remove the parallel command.

      Im using the visual studio 64-bit cmd ,
      If I keep repeating the cmake command, the build is done "successfully" with no errors.

      A Offline
      A Offline
      Axel Spoerl
      Moderators
      wrote on 28 Dec 2023, 23:12 last edited by
      #2

      @Lior
      Random build failures on Windows occur, when the virus scanner steps on the compiler's toes inspecting new binaries during compilation. That kills the compiler or the linker. Just restarting the compilation usually works. Not sure though, if that's what you're experiencing. Any output to share?

      Software Engineer
      The Qt Company, Oslo

      L 1 Reply Last reply 31 Dec 2023, 18:41
      2
      • A Axel Spoerl
        28 Dec 2023, 23:12

        @Lior
        Random build failures on Windows occur, when the virus scanner steps on the compiler's toes inspecting new binaries during compilation. That kills the compiler or the linker. Just restarting the compilation usually works. Not sure though, if that's what you're experiencing. Any output to share?

        L Offline
        L Offline
        Lior
        wrote on 31 Dec 2023, 18:41 last edited by
        #3

        @Axel-Spoerl
        I didn't copy a snapshot of the failure because it wasn't informative.
        It only shows the "FAIL" in red and the file name and path without any information.

        I will try without AV.
        I will try again soon and will share the output.

        If I cancel the parallel flag, it fails fewer times.

        If the build finishes successfully after restarting the compilation server multiple times, is it OK?

        1 Reply Last reply
        0

        1/3

        28 Dec 2023, 11:57

        • Login

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