delphidelphi-xebpl

Delphi XE: bogus "Never-build package must be recompiled" / "F2084 Internal Error: U10346" errors when building packages


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 requires package A, containing any unit that uses a specific unit from DWS, I get the error:

[DCC Fatal Error] E2225 Never-build package 'Package A' must be recompiled

If I change package A to recompile-as-needed, the error doesn't go away. I instead get

[DCC Fatal Error] F2084 Internal Error: U10346

at the same point.

I posted a bug report at http://code.google.com/p/dwscript/issues/detail?id=419 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."

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.

Running a trace on BDS using Process Monitor during the compilation process did not reveal anything that looked relevant.

Does anyone have any ideas on how to track this down? Using Delphi XE, update 1.

Cross posting to the Delphi forums. Let's see who comes up with a solution first.


Solution

  • I also had the problem and found a work around.

    It seems the problem is caused by the compiler Inline features. I remember that bug is caused when using inlined method and that method is too big.

    This bug is exclusive for Delphi XE and seems was never fixed.

    Check the next options of the packages

    1) dwsLibRuntime package

    2) dwsLib package

    Recompile the packages and seems it works, it installs correctly and I can compile the DwsIdeDemo

    I have posted also the solution to the bug report you made at: http://code.google.com/p/dwscript/issues/detail?id=419