"ERROR! Building with GCC 4.4 is not supported!" on Centos 7.6


#1

Whilst trying to build blender 2.79 for Centos 7.6 install_deps.sh fails with the error “ERROR! Building with GCC 4.4 is not supported!”. Check gcc version and it’s: 4.8.5 20150623 (Red Hat 4.8.5-36) (GCC)

The reason is line 3296: if [ “grep '6\.' /etc/redhat-release” ]; then
As the “6.” finds a match in “CentOS Linux release 7.6.1810 (Core)”
For the time being I’ve just added another 6 so it keeps compiling.

Nicolas


#2

There should really be a distro agnostic gcc --version and clang --version check instead.