agents/skills/gn-deps-debugging/references/common-errors.md
Use this reference to classify Chromium GN dependency failures before editing.
Include not allowed by DEPSThe include is blocked by a DEPS file, not merely by a missing BUILD.gn
dependency.
Typical causes:
DEPS rules intentionally forbid this layer from including
the target header.specific_include_rules exception.Safe response:
DEPS file and any parent DEPS files.Can't include this header from hereGN can see the header, but the current target is not allowed to include it through the declared dependency path. This often means the dependency is private to another target or only reachable transitively.
Safe response:
public_deps or whether the include can move to the .cc file.The build succeeds only because another target brings in the header transitively, or it fails because direct dependency checking is enabled.
Safe response:
deps unless a public header exposes the dependency.The header belongs to an implementation target that is not meant to be consumed directly.
Safe response:
Adding the obvious dependency creates a GN cycle.
Safe response: