Re: BUG #10436: Can't compile 9.4 with this mingw64-w32 gcc 4.8.1, 4.8.2, 4.8.3

From: Noah Misch <noah(at)leadboat(dot)com>
To: Andres Freund <andres(at)2ndquadrant(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, lr(at)pcorp(dot)us, pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #10436: Can't compile 9.4 with this mingw64-w32 gcc 4.8.1, 4.8.2, 4.8.3
Date: 2014-10-17 05:36:48
Message-ID: 20141017053648.GA194396@tornado.leadboat.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Sun, Aug 17, 2014 at 07:55:03PM -0400, Noah Misch wrote:
> On Sat, May 24, 2014 at 08:51:45PM +0200, Andres Freund wrote:
> > On 2014-05-24 14:21:32 -0400, Tom Lane wrote:
> > > Andres Freund <andres(at)2ndquadrant(dot)com> writes:
> > > > On 2014-05-24 12:35:08 -0400, Tom Lane wrote:
> > > >> If it's not getting through configure, the only plausible explanation
> > > >> seems to be that something in autoconf 2.69 broke it.
> > >
> > > > It could also be the linking changes made while trying to make missing
> > > > PGDLLIMPORTs more visible.
> > >
> > > None of those changes touched the configure script, though.
> >
> > Right.
> >
> > Regina, can you post config.log from 9.3 and 9.4?
> >
> > There's a couple of bugreports referencing _set_invalid_parameter_handle
> > and mingw. With confusingly different explanations...
>
> I, too, ran into this problem. It boils down to recent MinGW-w64 not
> tolerating -Wl,--disable-auto-import:
> https://sourceforge.net/p/mingw-w64/bugs/415

Jonathan Yong quickly committed a fix for that bug, and some of the latest
MinGW-w64 binary distributions (mingw64-x86_64-runtime 3.2.0-1 from Cygwin;
x86_64-4.9.1-release-posix-seh-rt_v3-rev1 from Mingw-builds) include it.

> For now, I work around this locally by removing -Wl,--disable-auto-import from
> src/template/win32. (Commit 1c9acd5 introduced our use of that flag for this
> target.) Let's see how that MinGW-w64 bug progresses; if needed, we can have
> "configure" check whether -Wl,--disable-auto-import works before using it.

I lean against doing that.

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message colin 2014-10-17 06:12:34 BUG #11696: C++ Linking issue - cant find ref to basic_tranaction
Previous Message kentoj 2014-10-16 14:13:24 BUG #11680: PostgreSQL JDBC Driver issue