Add error diagnosis.
Merge topic 'cross-compiling-toolchain-variables' into next

572c56a Add error diagnosis.