mingw initdb failure on HEAD

Started by Andrew Dunstanover 15 years ago3 messages
#1Andrew Dunstan
andrew@dunslane.net

Several buildfarm mingw members are getting failures like this, when
running initdb:

creating conversions ... FATAL: could not load library "C:/msys/1.0/home/pgrunner/bf/root/HEAD/pgsql.3584/src/test/regress/./tmp_check/install/home/pgrunner/bf/root/HEAD/inst/lib/postgresql/utf8_and_johab.dll": Invalid access to memory location.

STATEMENT: CREATE OR REPLACE FUNCTION johab_to_utf8 (INTEGER, INTEGER, CSTRING, INTERNAL, INTEGER) RETURNS VOID AS '$libdir/utf8_and_johab', 'johab_to_utf8' LANGUAGE C STRICT;

child process exited with exit code 1

See for example
<http://www.pgbuildfarm.org/cgi-bin/show_log.pl?nm=dawn_bat&amp;dt=2010-05-27%2019:45:18&gt;

Could it have been caused by the PGDLLIMPORT/PGDLLEXPORT changes?

cheers

andrew

#2Takahiro Itagaki
itagaki.takahiro@oss.ntt.co.jp
In reply to: Andrew Dunstan (#1)
Re: mingw initdb failure on HEAD

Andrew Dunstan <andrew@dunslane.net> wrote:

Several buildfarm mingw members are getting failures like this, when
running initdb:
<http://www.pgbuildfarm.org/cgi-bin/show_log.pl?nm=dawn_bat&amp;dt=2010-05-27%2019:45:18&gt;

Could it have been caused by the PGDLLIMPORT/PGDLLEXPORT changes?

Probably, but it's curious because MSVC members are OK.
Do we have special treatments for exported functions in mingw?
It might export 'dllimport' funtions/variables, but not 'dllexport' ones.

Regards,
---
Takahiro Itagaki
NTT Open Source Software Center

#3Andrew Dunstan
andrew@dunslane.net
In reply to: Takahiro Itagaki (#2)
Re: mingw initdb failure on HEAD

Takahiro Itagaki wrote:

Andrew Dunstan <andrew@dunslane.net> wrote:

Several buildfarm mingw members are getting failures like this, when
running initdb:
<http://www.pgbuildfarm.org/cgi-bin/show_log.pl?nm=dawn_bat&amp;dt=2010-05-27%2019:45:18&gt;

Could it have been caused by the PGDLLIMPORT/PGDLLEXPORT changes?

Probably, but it's curious because MSVC members are OK.
Do we have special treatments for exported functions in mingw?
It might export 'dllimport' funtions/variables, but not 'dllexport' ones.

It has broken Cygwin as well, so that's two out of three Windows
platforms that don't like this.

I am not sure what the best fix for the original problem is, but this
isn't it.

cheers

andrew