print error to Stderr and cross compilation