Why buildfarm member anchovy is failing on 8.2 and 8.3 branches - Mailing list pgsql-hackers

From Tom Lane
Subject Why buildfarm member anchovy is failing on 8.2 and 8.3 branches
Date
Msg-id 3579.1314562533@sss.pgh.pa.us
Whole thread Raw
Responses Re: Why buildfarm member anchovy is failing on 8.2 and 8.3 branches
List pgsql-hackers
I spent a bit of time looking into $SUBJECT.  The cause of the failure
is that configure mistakenly decides that setproctitle and some other
functions are available, when they aren't; this eventually leads to link
failures of course.

Now 8.2 and 8.3 use autoconf 2.59.  8.4 and up, which do not exhibit
this failure, use autoconf 2.61 or later.  Sure enough, there is a
difference in the test program generated by the more recent autoconfs:
they actually try to call the function, where the previous ones do
something weird involving a function pointer comparison.  I dug in the
autoconf change log and found this:

2005-10-19  Paul Eggert  <eggert@cs.ucla.edu>
(AC_LANG_FUNC_LINK_TRY(C)): Call the function rather than simplycomparing its address.  Intel's interprocedural
optimizationwasoutsmarting the old heuristic.  Problem reported byMikulas Patocka.
 

Since anchovy is using the "gold" linker at -O3, it's not exactly
surprising that it might be carrying out aggressive interprocedural
optimizations that we're not seeing used on other platforms.

The bottom line seems to be that autoconf 2.59 is seriously broken on
recent toolchains.  Should we try to do something about that, like
migrate the 8.2 and 8.3 releases to a newer autoconf?  8.2 is close
enough to EOL that I don't mind answering "no" for it, but maybe we
should do that in 8.3.

Comments?
        regards, tom lane


pgsql-hackers by date:

Previous
From: Kohei KaiGai
Date:
Subject: [v9.2] Object access hooks with arguments support (v1)
Next
From: Andrew Dunstan
Date:
Subject: Re: Why buildfarm member anchovy is failing on 8.2 and 8.3 branches