Uploaded image for project: 'Qbs ("Cubes")'
  1. Qbs ("Cubes")
  2. QBS-220

Compilation on Windows constantly fails with "cannot open program database"

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Invalid
    • Affects Version/s: 0.3
    • Fix Version/s: None
    • Component/s: Toolchains: Visual C++
    • Labels:
      None
    • Environment:
      Windows 7 SP1
      qbs 3c2757296dd96c4fdbdbd1b4b07ca29d00665056

      Description

      Whenever I compile my project on Windows, compilation randomly fails with:

      C1033: cannot open program database 'x:\path\to\source\<profile>-<buildVariant>\.obj\<product>\generatedfiles\...\vc100.pdb'
      ERROR: Process failed with exit code 2.

      If I continually run qbs about a dozen times, the project eventually gets compiled correctly.

      My guess is that multithreaded file access causes one thread to try to access the pdb file while another thread still has an open file handle to it. I tried using -j 1 to no avail.

      I don't recall ever having come across this error with qmake or CMake so this is definitely something to do with the manner in which qbs invokes MSVC.

        Attachments

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

          Activity

            People

            Assignee:
            jbornema Joerg Bornemann
            Reporter:
            jakepetroules Jake Petroules (DO NOT ASSIGN ISSUES)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes