Ross Rogers
Ross Rogers

Reputation: 24270

why is scons complaining "implicit dependency foo not found, needed by target bar" when foo exists?

Scons is complaining

  implicit dependency foo not found, needed by target bar

foo is created in my SCons build flow, and then consumed in the creation of target bar. After foo is created, SCons complains that it doesn't exist when it re-checks the dependencies before running bar. Why is SCons caching the existence check for foo?

After I get the failure, if I remove .sconsign.dblite and rerun, SCons finds the file and keeps running.

Upvotes: 3

Views: 3508

Answers (2)

Adam Gross
Adam Gross

Reputation: 56

According to http://www.scons.org/doc/0.97/HTML/scons-user/x933.html the answer is to build once with --implicit-deps-changed to tell SCons to rescan.

Upvotes: 0

Ross Rogers
Ross Rogers

Reputation: 24270

The issue was that I was running with

SetOption('implicit_cache', 1)

When I comment out implicit caching, then this problem doesn't manifest. This seems to be a bug... shouldn't SCons re-check for the file if the implicit cache says the file doesn't exist?

Upvotes: 3

Related Questions