/usr/bin/libtool has:

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

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?


Bug-libtool mailing list

Reply via email to