← Back to team overview

ubuntu-phone team mailing list archive

Re: [PATCH] Fix mako kernel build with stock gcc 4.7

 

I just saw that the nexus 4 image build uses the linux-nexus4 kernel
package from the official raring archives,
and that already has build fixes included. So never mind this patch :)

On Wed, Apr 24, 2013 at 5:15 PM, Jani Monoses <jani@xxxxxxxxxx> wrote:
> These two patches allow arm-linux-gnueabihf-gcc 4.7.3 from Ubuntu
> 13.04 to build a booting mako kernel image.
>
> Patch 1)
> scripts/gcc-wrapper is a python tool that is used in some
> Qualcomm/Code Aurora kernels containing a whitelist of warning
> messages generated during the build and fail on any non-listed one.
> gcc 4.7 triggers many new warnings so I rather disabled the wrapper
> itself. This way it is also in line with the rest of non-Qualcomm
> kernels trees.
> Patch 2)
> Do not specify the inline qualifier for some functions that cannot be
> inlined by 4.7 and thus break building.
>
> The Linaro 4.7.2 gcc bundled with the Ubuntu Touch sources fails
> though as it defaults to using the gold linker (and has no support for
> -fuse-ld=bfd as Linaro gcc 4.8.1 has) and the gold linker cannot
> correctly link the kernel at the moment.
>
> cheers
> Jani


References