34c34,36
< if compareVersions(env['GCC_VERSION'], '5.0') < 0:
---
> if 'GCC_VERSION' in env and \
> compareVersions(env['GCC_VERSION'], '5.0') < 0:
>