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

Поиск
Список
Период
Сортировка
От Noah Misch
Тема Re: BUG #10436: Can't compile 9.4 with this mingw64-w32 gcc 4.8.1, 4.8.2, 4.8.3
Дата
Msg-id 20140817235503.GE410471@tornado.leadboat.com
обсуждение исходный текст
Ответ на Re: BUG #10436: Can't compile 9.4 with this mingw64-w32 gcc 4.8.1, 4.8.2, 4.8.3  (Andres Freund <andres@2ndquadrant.com>)
Ответы Re: BUG #10436: Can't compile 9.4 with this mingw64-w32 gcc 4.8.1, 4.8.2, 4.8.3  (Noah Misch <noah@leadboat.com>)
Список pgsql-bugs
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@2ndquadrant.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

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.

Thanks,
nm

В списке pgsql-bugs по дате отправления:

Предыдущее
От: Christopher Browne
Дата:
Сообщение: Re: BUG #11176: Doc bug: New York City is *not* the capital of New York State.
Следующее
От: Sandeep Thakkar
Дата:
Сообщение: Re: Postgresql on windows SSL.