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

From: "Paragon Corporation" <lr(at)pcorp(dot)us>
To: "'Andres Freund'" <andres(at)2ndquadrant(dot)com>, <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: <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-05-25 02:57:52
Message-ID: 99EEB0452E144CFEAA650076F2C8431D@O
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Andreas,

Thanks for the suggestion of looking at the logs

Figured out the problem I think.

In looking at the logs:

http://www.postgresonline.com/tmp/config94_mingw64w32gcc481.txt

http://www.postgresonline.com/tmp/config934_mingw64w32gcc481.txt

I noticed the difference was the --disable-auto-import in 9.4.

So in src\template\win32 file

I changed:
LDFLAGS="-Wl,--allow-multiple-definition -Wl,--disable-auto-import"

Back to the old:

LDFLAGS="-Wl,--allow-multiple-definition"

And that fixed the configure issue with mingw64-w32 4.8.1+ and it seems to
have compiled fine too and passed all regression tests.

Better yet -- this new one doesn't have that annoying extra import of
InterlockedCompareExchange@

That I complained about here:
http://www.postgresql.org/message-id/286FBE756DA043A881A289C539AD2ED3@O
That broke my PostGIS 32-bit builds

And extensions built with it seem to be loadable in my EDB install again.
Have to do more tests, but looks good so far.

Still puzzling why my gcc 4.8.0 compiled at all and still had that annoying
dependency even when I also changed that file suspecting that was an issue
before. Perhaps the 4.8.0 has a bug and is half heartedly paying attention
to some things and not others.

Any thoughts on what to do about that win32 thing. Wasn't quite clear why
it was introduced in the first place

Thanks,
Regina

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Maxim Boguk 2014-05-25 09:40:36 Re: BUG #10123: Weird entries in pg_stat_activity
Previous Message Paragon Corporation 2014-05-25 00:09:41 Re: BUG #10436: Can't compile 9.4 with this mingw64-w32 gcc 4.8.1, 4.8.2, 4.8.3