Delphi Compiler Error
E2220 Never-build package ‘%s’ requires always-build package ‘%s’
Reason for the Error & Solution
You are attempting to create a no-build package which requires an always-build package. Since the interface of an always-build package can change at anytime, and since giving the no-build flag instructs the compiler to assume that a package is up-to-date, each no-build package can only require other packages that are also marked no-build.
package Base; end. (*$IMPLICITBUILD OFF*) package NoBuild; requires Base; end.
In this example, the NoBuild package requires a package which was compiled in the always-build compiler state.
(*$IMPLICITBUILD OFF*) package Base; end. (*$IMPLICITBUILD OFF*) package NoBuild; requires Base; end.
The solution used in this example was to turn Base into a never-build package. Another viable option would have been to remove the (*$IMPLICITBUILD OFF*) from the NoBuild package, thereby turning it into an always-build package.