title: Delphi XE: bogus "Never-build package must be recompiled" / "F2084 Internal Error: U10346" errors when building packages
body: <p>I'm trying to build a package (package A) that contains the DWS compiler.  It works, but when I then have a second package (package B) that <strong>requires</strong> package A, containing any unit that <strong>uses</strong> a specific unit from DWS, I get the error:</p>
  
  <blockquote>
    <p>[DCC Fatal Error]  E2225 Never-build package 'Package A' must be recompiled</p>
  </blockquote>
  
  <p>If I change package A to recompile-as-needed, the error doesn't go away.  I instead get </p>
  
  <blockquote>
    <p>[DCC Fatal Error] F2084 Internal Error: U10346</p>
  </blockquote>
  
  <p>at the same point.</p>
  
  <p>I posted a bug report at <a href="http://code.google.com/p/dwscript/issues/detail?id=419" rel="noreferrer">http://code.google.com/p/dwscript/issues/detail?id=419</a> and it appears that the problem isn't reproducible on the author's end, which means that something's going wrong on my end.  He offered some helpful advice: "I've sometimes seen this error because of a stray DCU."</p>
  
  <p>Searching for and deleting all DCUs that could possibly be relevant did not resolve the issue, even after restarting both the IDE and the computer.</p>
  
  <p>Running a trace on BDS using Process Monitor during the compilation process did not reveal anything that looked relevant.</p>
  
  <p>Does anyone have any ideas on how to track this down?  Using Delphi XE, update 1.</p>
  
  <p>Cross posting to the Delphi forums. Let's see who comes up with a solution first.</p>