This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: libtool is hiding errors from failed GCC build


On Tue, Nov 06, 2001 at 01:22:44AM -0200, Alexandre Oliva wrote:
> On Nov  5, 2001, Bryce McKinlay <bryce@waitaki.otago.ac.nz> wrote:
> 
> > 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?
> 
> I'm afraid not.  If we're to change libtool like this, we should save
> the output of the first and the second runs, and only display it again
> if they differ.  The problem is that letting the output go through to
> the stdout while still redirecting it gets tricky if you don't have
> tee.

If you want to avoid warnings in the second compilation, why not just
throw in a -w?

Personally I'd infinitely rather see warnings twice than run the risk
of even *possibly* losing a single error message.

zw


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]