355 branched and committed to SVN

Luca Boccassi luca.boccassi at gmail.com
Sat Oct 17 15:58:26 UTC 2015


On Sat, 2015-10-17 at 17:28 +0200, Andreas Beckmann wrote:
> On 2015-10-17 15:21, Luca Boccassi wrote:
> > On Sat, 2015-10-17 at 02:38 +0200, Andreas Beckmann wrote:
> >> cc is clearly the wrong compiler to use!
> 
> The modules shouldn't be built with cc (aka gcc5) but with the same
> compiler as the kernel itself. kbuild has this information, but the
> nvidia build just uses cc. This was working previously.

Ah I see, sorry I didn't catch that.

As far as I can see the compiler is set in the same way in both old and
new system:

kernel/nvidia-modules/common.mk lines 85-87:

CC ?= cc
HOST_CC ?= $(CC)
LD ?= ld

kernel/Kbuild lines 86-88:

CC ?= cc
HOST_CC ?= $(CC)
LD ?= ld

But new build also sets CC in kernel/Makefile line 52:

CC ?= cc

How is the compiler set in the old system?

Kind regards,
Luca Boccassi




More information about the pkg-nvidia-devel mailing list