Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1519923

Re: Kbuild: CC= handling broken for tools/

From Josh Poimboeuf <jpoimboe@redhat.com>
Newsgroups linux.kernel
Subject Re: Kbuild: CC= handling broken for tools/
Date 2016-11-11 18:30 +0100
Message-ID <sCnOh-7dZ-7@gated-at.bofh.it> (permalink)
References (1 earlier) <sCkGJ-5mT-3@gated-at.bofh.it> <sCkGJ-5mT-1@gated-at.bofh.it> <sClMt-5Zj-17@gated-at.bofh.it> <sCm5P-65D-17@gated-at.bofh.it> <sCnuW-77s-13@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Fri, Nov 11, 2016 at 06:08:24PM +0100, Jiri Slaby wrote:
> On 11/11/2016, 04:30 PM, Josh Poimboeuf wrote:
> > Does it work if you use KCFLAGS instead of EXTRA_CFLAGS?
> 
> Yes, the kernel builds with the flags now.
> 
> But objtool is unexpectedly still built by a different compiler.
> 
> I would also prefer the flags (like the warning above) to be passed even
> when building host commands.

In that case, if you want to build *everything* in tools and kernel with
the new compiler and new flags, I think you'll need to set HOSTCC,
HOSTCFLAGS, and CFLAGS, in addition to CC and KCFLAGS.

objtool uses the host compiler, but it doesn't support setting HOSTCC or
HOSTCFLAGS yet.  It always just uses 'gcc'.  I'll add HOSTCC/HOSTCFLAGS
to the TODO list, though feel free to work up a patch.

-- 
Josh

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Kbuild: CC= handling broken for tools/ Jiri Slaby <jslaby@suse.cz> - 2016-11-11 12:30 +0100
  Re: Kbuild: CC= handling broken for tools/ Michal Marek <mmarek@suse.com> - 2016-11-11 13:40 +0100
  Re: Kbuild: CC= handling broken for tools/ Jiri Olsa <jolsa@redhat.com> - 2016-11-11 15:10 +0100
    Re: Kbuild: CC= handling broken for tools/ Jiri Slaby <jslaby@suse.cz> - 2016-11-11 15:10 +0100
      Re: Kbuild: CC= handling broken for tools/ Jiri Olsa <jolsa@redhat.com> - 2016-11-11 16:20 +0100
        Re: Kbuild: CC= handling broken for tools/ Josh Poimboeuf <jpoimboe@redhat.com> - 2016-11-11 16:40 +0100
          Re: Kbuild: CC= handling broken for tools/ Jiri Slaby <jslaby@suse.cz> - 2016-11-11 18:10 +0100
            Re: Kbuild: CC= handling broken for tools/ Josh Poimboeuf <jpoimboe@redhat.com> - 2016-11-11 18:30 +0100

csiph-web