678c678
< # Check for a supported version of gcc. >= 4.7 is chosen for its
---
> # Check for a supported version of gcc. >= 4.8 is chosen for its
682,683c682,683
< if compareVersions(gcc_version, "4.7") < 0:
< print 'Error: gcc version 4.7 or newer required.'
---
> if compareVersions(gcc_version, "4.8") < 0:
> print 'Error: gcc version 4.8 or newer required.'
693,695c693,694
< if compareVersions(gcc_version, "4.8") > 0:
< as_version_raw = readCommand([main['AS'], '-v', '/dev/null'],
< exception=False).split()
---
> as_version_raw = readCommand([main['AS'], '-v', '/dev/null'],
> exception=False).split()
697,701c696,699
< # version strings may contain extra distro-specific
< # qualifiers, so play it safe and keep only what comes before
< # the first hyphen
< as_version = as_version_raw[-1].split('-')[0] if as_version_raw \
< else None
---
> # version strings may contain extra distro-specific
> # qualifiers, so play it safe and keep only what comes before
> # the first hyphen
> as_version = as_version_raw[-1].split('-')[0] if as_version_raw else None
703,709c701,707
< if not as_version or compareVersions(as_version, "2.23") < 0:
< print termcap.Yellow + termcap.Bold + \
< 'Warning: This combination of gcc and binutils have' + \
< ' known incompatibilities.\n' + \
< ' If you encounter build problems, please update ' + \
< 'binutils to 2.23.' + \
< termcap.Normal
---
> if not as_version or compareVersions(as_version, "2.23") < 0:
> print termcap.Yellow + termcap.Bold + \
> 'Warning: This combination of gcc and binutils have' + \
> ' known incompatibilities.\n' + \
> ' If you encounter build problems, please update ' + \
> 'binutils to 2.23.' + \
> termcap.Normal
742c740
< # support similar features as gcc 4.7. See
---
> # support similar features as gcc 4.8. See