What's the difference betwen GCC 4.0 and 3.4?

Daniel Robitaille robitaille at gmail.com
Sun Oct 30 02:59:46 UTC 2005


On 29/10/05, golfer <golfbuf at gmail.com> wrote:
> I've already compiled a few programs and kernel modules.  When I
> installed 'build-essential' it brought in gcc-4, so I thought that was
> what was used for breezy, but when I tried to compile kernel-modules,
> it balked and needed gcc-3.4.  I'm not sure now what to think.  It
> seems my programs were compiled with 4.0 (since that's where
> /usr/bin/gcc points), but the kernel is 3.4.  So, nothing has crashed
> yet.
>

That wiki has some details about this (In Breezy the kernel compiled
using 3.4, the rest using 4.0):
https://wiki.ubuntu.com/LinuxKernelRoadmap

The highlight from that wiki page:

[2005-07-22]

The compiler situation is more complex than expected. We can't switch
to 4.0 and apparently there is some miscompilation with 3.4. We might
have to revert to 3.3 for all arches other than ppc64 and iseries
(known to work).

[2005-07-28]

All arches have been verified to be ok with gcc-3.4. We will stay with
3.4 for breezy. Switching to 4.0 brings no real advantages.



--
Daniel Robitaille




More information about the ubuntu-users mailing list