Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-1363

Parallel build error on windows debug build: C:\src\mongo\mongod.pdb : fatal error LNK1212: error opening program database; file is in use

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.5.5
    • Affects Version/s: None
    • Component/s: Build
    • Labels:
      None
    • Environment:
      Visual Studio 2008/2010
    • ALL

      My machine has 8 gigs of ram and 4 hyperthreaded codes (8 CPU as far as the OS is concerned) so I build with scons -j8 to peg them all and get the fastest build output. When I need to do something cpu I use -j7 so my system remains responsive.

      Full buildlog attached, and I will be doing some further investigation. At the risk of sounding like a broken record I'm new to python so I stumble over stupid stuff a lot.

      Theories I have to resolve this problem:

      1. Use a phony SideEffect() on everything that invokes lib.exe and linker.exe with mongo.pdb so they don't build in parallel
      2. All symbols for all exevcutables seem to be going to one symbol database: env.Append( CPPFLAGS=' /Fd"mongod.pdb" ' )
      This should be changes to one pdb per assembly
      3.Stop using the PDB construction variable and embed debug symbols directly in the executable.

        1. build.log
          150 kB
          Justin Dearing

            Assignee:
            eliot Eliot Horowitz (Inactive)
            Reporter:
            zippy1981 Justin Dearing
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: