[oe] [PATCH] ecj.in: Expand retry logic to work around internal compiler errors
Erkka Kääriä
erkka.kaaria at intel.com
Fri Jan 29 13:04:53 UTC 2016
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ä <erkka.kaaria at intel.com>
---
recipes-core/ecj/files/ecj.in | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/recipes-core/ecj/files/ecj.in b/recipes-core/ecj/files/ecj.in
index caebed3..36fb9ae 100755
--- a/recipes-core/ecj/files/ecj.in
+++ b/recipes-core/ecj/files/ecj.in
@@ -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
--
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.
More information about the Openembedded-devel
mailing list