diff --git a/tools/toolchains/arm.py b/tools/toolchains/arm.py index b365d0b0f9..ba95c9cb7f 100644 --- a/tools/toolchains/arm.py +++ b/tools/toolchains/arm.py @@ -26,7 +26,7 @@ class ARM(mbedToolchain): LIBRARY_EXT = '.ar' STD_LIB_NAME = "%s.ar" - DIAGNOSTIC_PATTERN = re.compile('"(?P[^"]+)", line (?P\d+)( \(column (?P\d+)\)|): (?PWarning|Error): (?P.+)') + DIAGNOSTIC_PATTERN = re.compile('"(?P[^"]+)", line (?P\d+)( \(column (?P\d+)\)|): (?PWarning|Error|Fatal error): (?P.+)') INDEX_PATTERN = re.compile('(?P\s*)\^') DEP_PATTERN = re.compile('\S+:\s(?P.+)\n') diff --git a/tools/toolchains/gcc.py b/tools/toolchains/gcc.py index f21ce54624..3186cbb76f 100644 --- a/tools/toolchains/gcc.py +++ b/tools/toolchains/gcc.py @@ -25,7 +25,7 @@ class GCC(mbedToolchain): LIBRARY_EXT = '.a' STD_LIB_NAME = "lib%s.a" - DIAGNOSTIC_PATTERN = re.compile('((?P[^:]+):(?P\d+):)(\d+:)? (?Pwarning|error): (?P.+)') + DIAGNOSTIC_PATTERN = re.compile('((?P[^:]+):(?P\d+):)(\d+:)? (?Pwarning|error|fatal error): (?P.+)') INDEX_PATTERN = re.compile('(?P\s*)\^') def __init__(self, target, notify=None, macros=None, diff --git a/tools/toolchains/iar.py b/tools/toolchains/iar.py index cf4db9ee5e..bbbd114e5f 100644 --- a/tools/toolchains/iar.py +++ b/tools/toolchains/iar.py @@ -26,7 +26,7 @@ class IAR(mbedToolchain): LINKER_EXT = '.icf' STD_LIB_NAME = "%s.a" - DIAGNOSTIC_PATTERN = re.compile('"(?P[^"]+)",(?P[\d]+)\s+(?PWarning|Error)(?P.+)') + DIAGNOSTIC_PATTERN = re.compile('"(?P[^"]+)",(?P[\d]+)\s+(?PWarning|Error|Fatal error)(?P.+)') INDEX_PATTERN = re.compile('(?P\s*)\^') @staticmethod