Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WoOde-0003MY-KC for pgsql-bugs@arkaria.postgresql.org; Sun, 25 May 2014 02:58:18 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WoOdc-0006jc-VU for pgsql-bugs@arkaria.postgresql.org; Sun, 25 May 2014 02:58:17 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1WoOdb-0006jT-1S for pgsql-bugs@postgresql.org; Sun, 25 May 2014 02:58:15 +0000 Received: from mail.pcorp.us ([204.51.253.130]) by magus.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WoOdR-00084w-Pm for pgsql-bugs@postgresql.org; Sun, 25 May 2014 02:58:13 +0000 Received: from O ([50.78.240.110]) by mail.pcorp.us ; Sat, 24 May 2014 22:58:02 -0400 From: "Paragon Corporation" To: "'Andres Freund'" , Cc: References: In-Reply-To: Subject: Re: BUG #10436: Can't compile 9.4 with this mingw64-w32 gcc 4.8.1, 4.8.2, 4.8.3 Date: Sat, 24 May 2014 22:57:52 -0400 Message-ID: <99EEB0452E144CFEAA650076F2C8431D@O> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 Thread-Index: Ac93p5JOUlLinFx1TYOHlz2FO6/clQAAeCgAAAZPhiA= X-MimeOLE: Produced By Microsoft MimeOLE V6.1.7601.17609 X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org 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 -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs