public inbox for linux-kbuild@vger.kernel.org
 help / color / mirror / Atom feed
* debugging kbuild
@ 2018-08-06 23:31 Nick Desaulniers
  2018-08-06 23:40 ` Randy Dunlap
  2018-08-07 10:08 ` Segher Boessenkool
  0 siblings, 2 replies; 5+ messages in thread
From: Nick Desaulniers @ 2018-08-06 23:31 UTC (permalink / raw)
  To: Linux Kbuild mailing list

Is there a way to print the exact command that's being invoked from
Make? For example, some of the macro's in scripts/Kbuild.include are
tricky to unwind. Is there a way to dump each sub command being run?

-- 
Thanks,
~Nick Desaulniers

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: debugging kbuild
  2018-08-06 23:31 debugging kbuild Nick Desaulniers
@ 2018-08-06 23:40 ` Randy Dunlap
  2018-08-07 10:08 ` Segher Boessenkool
  1 sibling, 0 replies; 5+ messages in thread
From: Randy Dunlap @ 2018-08-06 23:40 UTC (permalink / raw)
  To: Nick Desaulniers, Linux Kbuild mailing list

On 08/06/2018 04:31 PM, Nick Desaulniers wrote:
> Is there a way to print the exact command that's being invoked from
> Make? For example, some of the macro's in scripts/Kbuild.include are
> tricky to unwind. Is there a way to dump each sub command being run?
> 

Yamada-san can answer that much better than I can.

I just begin with "make V=1" for verbose command logging.
and it will be verbose.

-- 
~Randy

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: debugging kbuild
  2018-08-06 23:31 debugging kbuild Nick Desaulniers
  2018-08-06 23:40 ` Randy Dunlap
@ 2018-08-07 10:08 ` Segher Boessenkool
  2018-08-07 16:29   ` Nick Desaulniers
  1 sibling, 1 reply; 5+ messages in thread
From: Segher Boessenkool @ 2018-08-07 10:08 UTC (permalink / raw)
  To: Nick Desaulniers; +Cc: Linux Kbuild mailing list

On Mon, Aug 06, 2018 at 04:31:14PM -0700, Nick Desaulniers wrote:
> Is there a way to print the exact command that's being invoked from
> Make? For example, some of the macro's in scripts/Kbuild.include are
> tricky to unwind. Is there a way to dump each sub command being run?

There always is strace...  Or maybe  make -dj  and friends.


Segher

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: debugging kbuild
  2018-08-07 10:08 ` Segher Boessenkool
@ 2018-08-07 16:29   ` Nick Desaulniers
  2018-08-07 16:31     ` Randy Dunlap
  0 siblings, 1 reply; 5+ messages in thread
From: Nick Desaulniers @ 2018-08-07 16:29 UTC (permalink / raw)
  To: segher, rdunlap; +Cc: Linux Kbuild mailing list

On Tue, Aug 7, 2018 at 3:08 AM Segher Boessenkool
<segher@kernel.crashing.org> wrote:
>
> On Mon, Aug 06, 2018 at 04:31:14PM -0700, Nick Desaulniers wrote:
> > Is there a way to print the exact command that's being invoked from
> > Make? For example, some of the macro's in scripts/Kbuild.include are
> > tricky to unwind. Is there a way to dump each sub command being run?
>
> There always is strace...  Or maybe  make -dj  and friends.

Hmm...I'm debugging a 4.9 LTS based kernel. `make V=1` and `make -dj`
were things I tried, but don't seem to be printing the commands being
executed (only "Reading makefile ...") until the first warning is hit.
I wonder if someone is setting the quiet variable somehow, or if I'm
missing a patch...

Thanks for the ideas.
-- 
Thanks,
~Nick Desaulniers

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: debugging kbuild
  2018-08-07 16:29   ` Nick Desaulniers
@ 2018-08-07 16:31     ` Randy Dunlap
  0 siblings, 0 replies; 5+ messages in thread
From: Randy Dunlap @ 2018-08-07 16:31 UTC (permalink / raw)
  To: Nick Desaulniers, segher; +Cc: Linux Kbuild mailing list

On 08/07/2018 09:29 AM, Nick Desaulniers wrote:
> On Tue, Aug 7, 2018 at 3:08 AM Segher Boessenkool
> <segher@kernel.crashing.org> wrote:
>>
>> On Mon, Aug 06, 2018 at 04:31:14PM -0700, Nick Desaulniers wrote:
>>> Is there a way to print the exact command that's being invoked from
>>> Make? For example, some of the macro's in scripts/Kbuild.include are
>>> tricky to unwind. Is there a way to dump each sub command being run?
>>
>> There always is strace...  Or maybe  make -dj  and friends.
> 
> Hmm...I'm debugging a 4.9 LTS based kernel. `make V=1` and `make -dj`
> were things I tried, but don't seem to be printing the commands being
> executed (only "Reading makefile ...") until the first warning is hit.
> I wonder if someone is setting the quiet variable somehow, or if I'm
> missing a patch...
> 
> Thanks for the ideas.
> 

Yeah, that sounds like -s (silent) is set.

-- 
~Randy

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-08-07 18:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-06 23:31 debugging kbuild Nick Desaulniers
2018-08-06 23:40 ` Randy Dunlap
2018-08-07 10:08 ` Segher Boessenkool
2018-08-07 16:29   ` Nick Desaulniers
2018-08-07 16:31     ` Randy Dunlap

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox