[Scons-users] Timing Issue with files retrieved from the SCons Cache

Shane Gannon sgannon200 at gmail.com
Fri Sep 30 12:16:15 EDT 2016


Hi

I'm hitting a problem with the SCons Cache. Intermiddently (but too
frequently) a build fails with an error like

*Elapsed Time*

*00:06:43.214* scons: building
`out\windows-x86-MD-unicode-vs2015-rel\obj-static\components\memorymanager\tests\unit_tests\TestMemoryManager.obj'
because it doesn't exist*00:06:43.215* Retrieved
`out\windows-x86-MD-unicode-vs2015-rel\obj-static\components\memorymanager\tests\unit_tests\TestMemoryManager.obj'
from cache


*00:06:45.660* scons: building
`src\jabber-client\jabber-build\Win32\bin\Release\memorymanager-unit-tests.exe'
because it doesn't exist*00:06:45.661* LINK
src\jabber-client\jabber-build\Win32\bin\Release\memorymanager-unit-tests.exe

*00:06:45.694* LINK : fatal error LNK1104: cannot open file
'out\windows-x86-MD-unicode-vs2015-rel\obj-static\components\memorymanager\tests\unit_tests\TestMemoryManager.obj'


It's not specific to .obj files. It can happen for generated .h files,
.libs, etc. Basically any file retrievable from the cache.

This only occurs on a new build we're working to support. Namely an upgrade
to Visual Studio 2015 where SCons 2.5.0 is used (versus 2.3.4 on the other
machines).

I noticed in the Release Notes the following entries for 2.5.0.

    - SCons handles cache directories a bit differently/
      - Cache files are now stored in 256 subdirectories in the cache
directory by
        default (this stresses NFS less). Existing cache directories
will remain as
        current, but SCons will prompt you to run
scons-configure-cache which will
        allow you to migrate to the new layout, or confirm you want to use the
        existing layout.

    - New external tool scons-configurecache which allows some configuration of
      how files in the cache are controlled.

I assume this might be causing the problem. Has anyone else reported an
issue?

Does anyone have a suggestion on how I can resolve or diagnois it?

PS: We use Windows 10 on our build machines.

Regards
Shane
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20160930/c46ead95/attachment.html>


More information about the Scons-users mailing list