GCC 5 compatibility problems: GCC 4.10?
Jakub Jelinek
jakub at redhat.com
Mon May 11 13:44:31 UTC 2015
On Mon, May 11, 2015 at 02:37:07PM +0100, David Howells wrote:
> Paolo Bonzini <pbonzini at redhat.com> wrote:
>
> > > > I'm encountering a few problems with GCC 5 due to code that fails to
> > > > work with GCC major releases above 4. In particular, there are at least
> > > > problems with the kernel
> > >
> > > fedora's kernel builds, can you be more specific about the problems you're
> > > experiencing?
> >
> > Kernels older than 3.18 don't build, which is a pain if you're bisecting
> > a kernel bug introduced before 3.18.
>
> Any particular arch? And what's the error?
I bet it is the linux/include/compiler*.h stuff.
In any case, supposedly you can just use
gcc -U__GNUC__ -U__GNUC_MINOR__ -U__GNUC_PATCHLEVEL__ -D__GNUC__=4 -D__GNUC_MINOR__=10 -D__GNUC_PATCHLEVEL__=0
instead of gcc, you don't need any hacks for that from the distro.
Jakub
More information about the devel
mailing list