Re: BUG #7816: test for compiler output produces bogus results

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: seebs(at)seebs(dot)net
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #7816: test for compiler output produces bogus results
Date: 2013-01-21 05:02:50
Message-ID: 9064.1358744570@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

seebs(at)seebs(dot)net writes:
> Your modified acx_pthread.m4 tests for any compiler output to stderr at all,
> and considers it evidence that a flag is invalid.

I believe the reason we do that is that we want to find flags that will
not result in the compiler generating a warning during each and every
source compile. Most developers would consider such a behavior broken,
and not without good reason.

> This test is not actually correct, although it usually works.

[ shrug... ] Given the lack of previous complaints, it works 99.999%
of the time, which is about as much reliability as can be hoped for in
most autoconf tests :-(. I'm afraid we can't help you without breaking
it worse for a larger number of other people.

regards, tom lane

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Seebs 2013-01-21 05:38:10 Re: BUG #7816: test for compiler output produces bogus results
Previous Message Giannis Mavropoulos 2013-01-21 04:40:36 error reading c:\Program Files\PostgreSQL\8.3\data\postgresql.conf during installation