[Scons-users] Intermittent Install() failure

Hill, Steve (FP COM) Steve.Hill at cobham.com
Fri Jul 15 04:30:52 EDT 2016

Im having a problem where, with parallel builds (most people use 8, 12 or 16 threads), we occasionally get failures like the following:


F:\<directory path>\hw_cfgs\1Server_1TM_6C66_2U.cfg: The process cannot access the file because it is being used by another process
scons: building terminated because of errors.


We are running Python 2.6.5 (with pywin32) and SCons 2.3.6. This file is being copied due to a Install() call. Note that, for various historical reasons, we have the following decider for these Installs:


def _copy_decider(dependency, target, prev_ni):

    target = str(target.abspath)

    dependency = str(dependency.abspath)

    if os.path.isfile(target) and os.path.isfile(dependency):

        # By default, filecmp.cmp assumes that files with identical os.stat signatures

        # (which includes the inode) are the same file and, hence, must be the same.

        # However, on Windows, there is no inode - it appears to be set to zero - so

        # any two files with the same size and access/creation/modification times

        # will have the same os.stat signature, leading to a false positive. For this

        # reason, we must force it to do an actual file comparison by setting shallow

        # to False

        return not filecmp.cmp(target, dependency, shallow = False)


        # Either one of the dependency or target isn't a file or one of the files

        # (presumably the target) isn't there so do the copy

        return True


Note also that our IT department claims that virus checkers are disabled within the directory where the build is being performed (and we certainly have not seen any indication in the virus checker console to suggest that to be incorrect).


Does anyone have any thoughts as to what the problem might be?


Thanks in advance,



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20160715/8f6206a9/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 526 bytes
Desc: not available
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20160715/8f6206a9/attachment.pgp>

More information about the Scons-users mailing list