[Top][All Lists]

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

libtool is hiding errors from failed GCC build

From: Bryce McKinlay
Subject: libtool is hiding errors from failed GCC build
Date: Tue, 06 Nov 2001 13:16:22 +1300
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.5) Gecko/20011012

We have an i686 bootstrap failure at present in libjava which only occurs when a file is compiled with -fPIC. Confusingly, libtool is hiding this error because it sends output from the -fPIC compilation to /dev/null.

Alexandre, is this patch ok to install in GCC?

2001-11-05  Bryce McKinlay  <address@hidden>

       * Don't redirect output from PIC compilation.

RCS file: /cvs/gcc/gcc/,v
retrieving revision 1.17
diff -u -r1.17
---   2001/09/01 00:47:19     1.17
+++   2001/11/06 00:08:37
@@ -697,8 +697,6 @@


-      # Allow error messages only from the first compilation.
-      suppress_output=' >/dev/null 2>&1'
      # No PIC object so indicate it doesn't exist in the libtool
      # object file.



Mark Mitchell wrote:

The intent seems to be to avoid printing the same messages twice in the
case where the input file contains errors. But in this case, where the
compiler bug only occurs with -fPIC, the error is getting lost. This
behaviour seems unneccessary because libtool will return an error
immediatly if the first compilation fails.

OK to install this?

I have noticed this property of libtool before, and agree that it is
a misfeature.  However, we're only supposed to install libtool changes
when they are approved by the libtool developers.  Alexandre Oliva is
our usual liason to the libtool folks; he is a libtool expert.

Please send the patch to him, and to the libtool development team.

reply via email to

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