Page MenuHomePhabricator

Check for gcc minimum version is wrong
Closed, ResolvedPublic

Description

The new minimum gcc version is 4.7 even for ubuntu 12.04. But currently we just throw a CMake error if gcc version is less than 4.6.

We also should provide a howto for updating the compiler on ubuntu 12.04 systems

Event Timeline

sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install g++-4.7

Bonus: This ("official") repository also provides gcc 4.8 and 4.9.

Note that this does not replace the currently installed GCC version (probably 4.6.3 on Ubuntu 12.04). It is installed in parallel, i.e., execute gcc-4.7 instead of gcc.

User kislinsk has pushed new remote branch:

bug-18855-GCCUbuntu1204Hint

[1ad51d]: Merge branch 'bug-18855-GCCUbuntu1204Hint'

Merged commits:

2015-04-15 12:09:25 Stefan Kislinskiy [70f241]
Give hints for GCC 4.7 in Ubuntu 12.04 if GCC 4.6 is used.