mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Rich Felker <dalias@aerifal.cx>
To: musl@lists.openwall.com
Subject: Re: [PATCH] makefile: Make default output compact and similar to Linux kernel.
Date: Fri, 16 Mar 2012 18:55:45 -0400	[thread overview]
Message-ID: <20120316225545.GB22075@brightrain.aerifal.cx> (raw)
In-Reply-To: <20120316110023.bc4724d8.idunham@lavabit.com>

On Fri, Mar 16, 2012 at 11:00:23AM -0700, Isaac Dunham wrote:
> On Thu, 15 Mar 2012 12:42:09 -0400
> Rich Felker <dalias@aerifal.cx> wrote:
> 
> > On Thu, Mar 15, 2012 at 10:25:23AM +0200, Georgi Chorbadzhiyski wrote:
> > > This patch changes default make output to be similar to Linux kernel.
> > > An example output looks like this:
> > > CC      src/unistd/write.c
> > > LD      lib/libc.so
> > > BUILD   tools/musl-gcc
> > > INSTALL /usr/local/musl/lib/libc.a
> ...
> > 
> > Any opinions on this? I really dislike this kind of output, but if
> > there's a demand for it I'll consider it.
> > 
> On the plus side, it makes spotting warnings/errors easier.
> It does look a little cleaner, as well.

For warnings, I agree. For errors, they should stop compilation
anyway. As for myself, I always build with -Werror but with a
carefully tuned set of warning options that disable a number of
warnings which I consider broken by design (e.g. ones that necessarily
have false positives that can't be "fixed", like unused function
arguments) or which impose style rules I disagree with. :-)

> On the down side
> -it complicates makefiles

Indeed. A feature like this really belongs in make itself (e.g. make
--pretty or something) rather than in every single program's makefile.

> -it hides what's happening (and often the flags gcc gets are the
> biggest problem)

With most programs, the reason I dislike the "V=0" style is that it
makes it impossible to re-run just the command that failed after
changing something in the source, or to rerun it with slightly
different compiler options. Often re-running make will recurse through
10 different directories before getting back to where it stopped, and
of course the situation is even worse trying to find where in the
makefile to override CFLAGS for just one source file (e.g. when gcc is
OOM'ing building some gigantic file with -O3 and you want to retry
with -O0 just to get a working build).

For musl this is not such a big deal since the makefile is sane.

> -you can review the errors in full context later with 
> make  2>&1 | tee errors.log -
> 
> So my vote is that it isn't worth the effort.

My view is that it wouldn't be as harmful in musl as in many other
projects, but I still find it mildly annoying at best and slightly
problematic at worst.

Rich


  reply	other threads:[~2012-03-16 22:55 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-15  8:25 Georgi Chorbadzhiyski
2012-03-15 16:42 ` Rich Felker
2012-03-16 18:00   ` Isaac Dunham
2012-03-16 22:55     ` Rich Felker [this message]
2012-03-15 16:47 ` Igmar Palsenberg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120316225545.GB22075@brightrain.aerifal.cx \
    --to=dalias@aerifal.cx \
    --cc=musl@lists.openwall.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

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 NNTP newsgroup(s).