public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug runtime/25266] New: Log configure command output when compiling modules
@ 2019-12-10  6:12 craig.ringer at 2ndquadrant dot com
  2019-12-10  6:12 ` [Bug runtime/25266] " craig.ringer at 2ndquadrant dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: craig.ringer at 2ndquadrant dot com @ 2019-12-10  6:12 UTC (permalink / raw)
  To: systemtap

https://sourceware.org/bugzilla/show_bug.cgi?id=25266

            Bug ID: 25266
           Summary: Log configure command output when compiling modules
           Product: systemtap
           Version: unspecified
            Status: UNCONFIRMED
          Severity: minor
          Priority: P2
         Component: runtime
          Assignee: systemtap at sourceware dot org
          Reporter: craig.ringer at 2ndquadrant dot com
  Target Milestone: ---

The runtime configure commands' output is not logged anywhere. From the
generated Makefile for module builds:

~~~
        @if $(CHECK_BUILD)
$(SYSTEMTAP_RUNTIME)/linux/autoconf-linux-sched_headers.c > /dev/null 2>&1;
then echo "#define STAPCONF_LINUX_SCHED_HEADERS 1"; fi >> $@
~~~

all output is sent to /dev/null .

This made diagnosis rather harder in #25265 

I suggest redirection of stdout to stderr instead, and bracketing it with an
echo. Like

~~~
        @echo Runtime configure test linux/autoconf-linux-sched_headers.c for
STAPCONF_LINUX_SCHED_HEADERS:
        @if $(CHECK_BUILD)
$(SYSTEMTAP_RUNTIME)/linux/autoconf-linux-sched_headers.c 1>&2; then echo
"#define STAPCONF_LINUX_SCHED_HEADERS 1"; echo "yes"; else echo "no"; fi >> $@
~~~

-- 
You are receiving this mail because:
You are the assignee for the bug.

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

* [Bug runtime/25266] Log configure command output when compiling modules
  2019-12-10  6:12 [Bug runtime/25266] New: Log configure command output when compiling modules craig.ringer at 2ndquadrant dot com
@ 2019-12-10  6:12 ` craig.ringer at 2ndquadrant dot com
  2019-12-10  6:24 ` craig.ringer at 2ndquadrant dot com
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: craig.ringer at 2ndquadrant dot com @ 2019-12-10  6:12 UTC (permalink / raw)
  To: systemtap

https://sourceware.org/bugzilla/show_bug.cgi?id=25266

Craig Ringer <craig.ringer at 2ndquadrant dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://sourceware.org/bugz
                   |                            |illa/show_bug.cgi?id=25265

-- 
You are receiving this mail because:
You are the assignee for the bug.

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

* [Bug runtime/25266] Log configure command output when compiling modules
  2019-12-10  6:12 [Bug runtime/25266] New: Log configure command output when compiling modules craig.ringer at 2ndquadrant dot com
  2019-12-10  6:12 ` [Bug runtime/25266] " craig.ringer at 2ndquadrant dot com
@ 2019-12-10  6:24 ` craig.ringer at 2ndquadrant dot com
  2019-12-12 20:30 ` fche at redhat dot com
  2019-12-13  4:56 ` craig.ringer at 2ndquadrant dot com
  3 siblings, 0 replies; 5+ messages in thread
From: craig.ringer at 2ndquadrant dot com @ 2019-12-10  6:24 UTC (permalink / raw)
  To: systemtap

https://sourceware.org/bugzilla/show_bug.cgi?id=25266

Craig Ringer <craig.ringer at 2ndquadrant dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://sourceware.org/bugz
                   |                            |illa/show_bug.cgi?id=25267

-- 
You are receiving this mail because:
You are the assignee for the bug.

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

* [Bug runtime/25266] Log configure command output when compiling modules
  2019-12-10  6:12 [Bug runtime/25266] New: Log configure command output when compiling modules craig.ringer at 2ndquadrant dot com
  2019-12-10  6:12 ` [Bug runtime/25266] " craig.ringer at 2ndquadrant dot com
  2019-12-10  6:24 ` craig.ringer at 2ndquadrant dot com
@ 2019-12-12 20:30 ` fche at redhat dot com
  2019-12-13  4:56 ` craig.ringer at 2ndquadrant dot com
  3 siblings, 0 replies; 5+ messages in thread
From: fche at redhat dot com @ 2019-12-12 20:30 UTC (permalink / raw)
  To: systemtap

https://sourceware.org/bugzilla/show_bug.cgi?id=25266

Frank Ch. Eigler <fche at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fche at redhat dot com

--- Comment #1 from Frank Ch. Eigler <fche at redhat dot com> ---
All the runtime autoconf results end up in a stapconf_HEXHEXHEX.h file, did you
see that one?  We can't transcribe dozens of check/results to systemtap's
stderr, that's too chatty.  Maybe with some stap --vp 0x000 level, but then
this level would have to be communicated to the kbuild makefile.

-- 
You are receiving this mail because:
You are the assignee for the bug.

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

* [Bug runtime/25266] Log configure command output when compiling modules
  2019-12-10  6:12 [Bug runtime/25266] New: Log configure command output when compiling modules craig.ringer at 2ndquadrant dot com
                   ` (2 preceding siblings ...)
  2019-12-12 20:30 ` fche at redhat dot com
@ 2019-12-13  4:56 ` craig.ringer at 2ndquadrant dot com
  3 siblings, 0 replies; 5+ messages in thread
From: craig.ringer at 2ndquadrant dot com @ 2019-12-13  4:56 UTC (permalink / raw)
  To: systemtap

https://sourceware.org/bugzilla/show_bug.cgi?id=25266

--- Comment #2 from Craig Ringer <craig.ringer at 2ndquadrant dot com> ---
Yes, it's relatively easy to find the test outcomes, but not why the test
returned success or failure. That's part of why diagnosing these issues took me
so long.

I was thinking it'd make sense to output the configure test results at stap
-vvv or similar. So yes, probably by injecting a variable in the make command
invocation.

-- 
You are receiving this mail because:
You are the assignee for the bug.

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

end of thread, other threads:[~2019-12-13  4:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-10  6:12 [Bug runtime/25266] New: Log configure command output when compiling modules craig.ringer at 2ndquadrant dot com
2019-12-10  6:12 ` [Bug runtime/25266] " craig.ringer at 2ndquadrant dot com
2019-12-10  6:24 ` craig.ringer at 2ndquadrant dot com
2019-12-12 20:30 ` fche at redhat dot com
2019-12-13  4:56 ` craig.ringer at 2ndquadrant dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).