only check compile error if compiled