bug-libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Second (non-fPIC) pass messages being suppressed on failure


From: Ed Catmur
Subject: Second (non-fPIC) pass messages being suppressed on failure
Date: Mon, 19 Nov 2007 01:18:58 +0000

/usr/bin/libtool has:


      # Allow error messages only from the first compilation.
      if test "$suppress_opt" = yes; then
        suppress_output=' >/dev/null 2>&1'
      fi
...
      # Suppress compiler output if we already did a PIC compilation.
      command="$command$suppress_output"

This is presumably intended to ensure that when an object file gets
compiled twice (once with -fPIC, once without) warning messages etc. are
not duplicated.  However, if the second position-dependent run fails
(compiler bug, usually, but could also be running out of disk space) it
will fail without any error message being printed.

Would it make sense to capture output from the second compilation
instead of discarding it, then print it if the second compilation fails?

Ed





reply via email to

[Prev in Thread] Current Thread [Next in Thread]