precompiled never fails your build: when something is wrong, the affected dependencies compile from source and one line says why. Find that line below.

Getting more detail

SetTo
PRECOMPILED_DEBUG=1also list the dependencies that were not candidates, and why
PRECOMPILED=0rule the library out completely: it removes its installs and Mix compiles everything

Setup

LineMeaningWhat to do
ArgumentError: precompiled: :source is not an option (or :root, :content)Precompiled.Host.install/2 was given a source, root or content origins.Drop the option: the official API is the default. A self-hosted source goes in the project's config (Trust).
{:error, {:source_not_allowed, source}}A device call named a network source.Drop it, or set it in the firmware's config :precompiled, :device. Per call, only file:// bundles.
{:error, {:content_not_allowed, origins}}A device call named content origins (mirrors).Drop it, or set content: in the firmware's config :precompiled, :device.
source must be https (http only on loopback), disabled: ...The configured source is plain http or not a URL; nothing installs.Fix config :precompiled, source:.

Nothing installs: the batch

Without a usable batch, nothing installs and everything compiles.

LineMeaningWhat to do
batch unavailable: <why>The source sent no batch (network error, 4xx/5xx, refused redirect) and no cached one could stand in.Check the network or the source URL.
batch signature invalidA batch arrived but isn't signed by a key your root trusts.Report it: the source or a mirror serves something wrong.
batch stale: ..., batch expired at ...The batch is too old.Usually the source stopped publishing; try again later.
batch sequence N is older than MThe source served an older batch than this machine already saw.A rollback or a stale mirror; it is refused on purpose.
batch lifetime ..., batch malformedThe batch is not valid.Report it.

See Trust for every batch check.

Working offline

LineMeaningWhat to do
source unreachable (<why>); using the cached batchThe network failed; a cached batch that still passes every check stood in.Nothing. Files that are not in the cache miss straight away; the source is not asked again in that run.
batch unavailable: offline, no cached batchPRECOMPILED_OFFLINE=1 is set and this machine has no batch yet.Run once online to fill the cache.
no fresh batch (<why>); N installed builds kept, not recheckedEarlier installs stay as they are.Nothing; they are rechecked once a batch is available again.

Clock

LineMeaningWhat to do
clock is before ...The machine's clock is wrong, typically a device before NTP.Set the clock. Nothing installs until then.
clock: ...A batch claims to be from the future.Check the clock.

Cache

LineMeaningWhat to do
cache dir ... is not writable; using ...The run used a fresh cache under _build.Fix the permissions, or set PRECOMPILED_HOME.
FAIL cache refused (... remove it)A cache entry is a symlink or not a plain file; it is never followed.Remove the path the line names.

A dependency misses

A MISS line names the rule that the closest build broke; see What matches for all the rules. Some worth knowing:

LineMeaning
MISS reads Mix.target() at compile time ...Rule 8: no build was made for your target name. It compiles from source.
MISS project sets :manager for this dependencyRule 9: your deps entry, or a package's mix.exs, changes how Mix builds it, with :manager, :compile or :system_env. It always compiles from source.
MISS built with rebar3, project builds with makeRule 9: the build was made by another manager than Mix uses for it here. It compiles from source.
MISS build method unknown (deps did not load: ...)Rule 9: Precompiled.Host.install/2 could not load the dependencies through Mix (the warning above names why), so no build can be confirmed. Everything compiles from source.
MISS built with rebar3, project's manager for it is unknownRule 9: Mix resolved no manager for the dependency here (often: its sources are not fetched yet), so the build's cannot be confirmed. It compiles from source.

A bug

LineMeaningWhat to do
internal error, compiling from sourceA bug in this library. Your build carries on.Please report it with the line.

Still stuck? See Known limitations.