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

From Paragon Corporation
Subject Re: BUG #10436: Can't compile 9.4 with this mingw64-w32 gcc 4.8.1, 4.8.2, 4.8.3
Date
Msg-id 99EEB0452E144CFEAA650076F2C8431D@O
Whole thread Raw
In response to BUG #10436: Can't compile 9.4 with this mingw64-w32 gcc 4.8.1, 4.8.2, 4.8.3  ("Paragon Corporation" <lr@pcorp.us>)
Responses Re: BUG #10436: Can't compile 9.4 with this mingw64-w32 gcc 4.8.1, 4.8.2, 4.8.3  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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

pgsql-bugs by date:

Previous
From: "Paragon Corporation"
Date:
Subject: Re: BUG #10436: Can't compile 9.4 with this mingw64-w32 gcc 4.8.1, 4.8.2, 4.8.3
Next
From: Maxim Boguk
Date:
Subject: Re: BUG #10123: Weird entries in pg_stat_activity