ecj.in: Expand retry logic to work around internal compiler errors
PATCH 1/1 ecj.in: Expand retry logic to work around internal compiler errors
Ecj rarely crashes due to internal compiler error. Extend the existing retry logic to silently retry if compile fails.
Signed-off-by Erkka Kääriä <[email protected]>
--- recipes-core/ecj/files/ecj.in | 4 ++++ 1 file changed, 4 insertions(+)
recipes-core/ecj/files/ecj.in +4 -0
@@ -9,6 +9,10 @@ while [ ${error_counter} -le ${error_max} -a ${error_occured} = true ]; do echo "ecj crashed ${error_counter} - silently trying again" error_occured=true error_counter=$(( $error_counter + 1 )) + elif [ ${error_number} -eq 255 ]; then + echo "ecj returned -1 - likely internal compiler error or similar - silently trying again" + error_occured=true + error_counter=$(( $error_counter + 1 )) else error_occured=false fi
Signature · 12 lines
2.1.4 --------------------------------------------------------------------- Intel Finland Oy Registered Address: PL 281, 00181 Helsinki Business Identity Code: 0357606 - 4 Domiciled in Helsinki This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.