Closed Bug 779268 Opened 12 years ago Closed 12 years ago

Removing files from m-c could result in forcing rebuild of other files

Categories

(Firefox Build System :: General, defect)

Other
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 785622

People

(Reporter: kats, Unassigned)

Details

When doing a no-op Fennec build on my mac, I would see jsapi.cpp along with a bunch of other js/src/ files getting rebuilt. Upon investigating I found that this was a result of MethodGuard.h and MethodGuard-inl.h being removed from js/src/vm/ almost a month ago.

After MethodGuard.* was removed, some of the *.o.pp files in <objdir>/js/src/.deps/ still referenced those .h files as dependencies. js/src/build/unix/mddepend.pl looks for those non-existent .h files, doesn't find them, and emits rules of the form "jsapi.cpp: FORCE", forcing a rebuild of jsapi.cpp.

Blowing away my <objdir>/js/src/.deps folder fixed this particular issue, but it seems like a deficiency in the build system that should be fixed.
Wow, that's horrible.
Same thing with the removal of netwerk/base/src/PrivateBrowsingConsumer.h causing rebuilds of a variety of code in netwerk/protocol/**, etc.

Setting DEBUG to 1 in mddepend.pl and grepping build output for "Couldn't stat" seems like a good way of catching these, if anybody else is seeing the same problem.
Uh, why aren't the .pp files getting regenerated?
I don't know. I already blew away my objdir and rebuilt so I can't easily check that anymore either.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → DUPLICATE
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.