[Users] gcc Version

Kir Kolyshkin kir at openvz.org
Mon May 18 11:57:02 PDT 2015


On 05/18/2015 06:50 AM, Benjamin Henrion wrote:
> On Tue, Apr 14, 2015 at 6:33 PM, Joseph <joseph at netletter.at> wrote:
>> Hi OpenVZ Team,
>>
>> is there a special reason why you use a different gcc Version for the
>> kernels you provide
>> cat /proc/version
>> Linux version 2.6.32-042stab106.4 (root at kbuild-rh6-x64) (gcc version
>> 4.4.6 20120305 (Red Hat 4.4.6-4) (GCC) ) #1 SMP Fri Mar 27 15:19:28 MSK 2015
>> that either CentOS6 or RHEL6 ship with:
>> gcc -v
>> gcc-Version 4.4.7 20120313 (Red Hat 4.4.7-11) (GCC)
> 4.4 is super old.
>
> I have hit some openvz bugs in the past because the kernel was
> compiled with a more recent compiler.
>

4.4 is the kernel used in Red Hat Enterprise Linux 6 (to compile their
kernel, among the other things). As our kernel is based on RHEL6 kernel,
we use the same gcc version they use to eliminate the possibility of
bugs caused by a different version of gcc.

In general, this is they way RHEL works -- they branch off some version
of software and only use that version (that, naturally, becomes "old" over
time), backporting bug fixes (and sometimes features) from newer versions,
in a hope this way they can eliminate most of the bugs appearing in 
newer versions
of that software. Therefore we have kernel 2.6.32 (which is in fact went
quite far from vanilla 2.6.32, with the only thing left is the version 
number)
and gcc 4.4.


More information about the Users mailing list