GMP 4.1.4 on MinGW (Wintersteiger)
jurobystricky at hotmail.com
Mon Sep 12 15:55:45 CEST 2005
This is an old problem. See the filed bug report at
Basically, the LD generates incorrect (or missing) relocation information
in the DLL startup code.
It is built with the default load address of 0x1000000. Loading the DLL at
any other address will cause a
GP fault. This will happen if any other DLL is loaded before GMP (.EXE use
different load address).
I successfully rebuilt GMP using the binutils-2-13-90-20021006-2.tar.gz.
I installed the latest ("current" as of March 20/2005)
Mingw/Msys/MingwRuntime but used the above mentioned binutils.
All of the above should be available for download ot the official Mingw
Alternatively, make sure no other DLL uses the default start address of
----- Original Message -----
From: "Sisyphus" <sisyphus1 at optusnet.com.au>
To: <gmp-discuss at swox.com>; "Christoph M. Wintersteiger"
<christoph at winterstiger.at>
Sent: Sunday, September 11, 2005 7:23 PM
Subject: Re: GMP 4.1.4 on MinGW (Wintersteiger)
> ----- Original Message -----
> From: "Christoph M. Wintersteiger" <christoph at winterstiger.at>
> To: <gmp-discuss at swox.com>
> Sent: Sunday, September 11, 2005 11:44 PM
> Subject: Re: GMP 4.1.4 on MinGW (Wintersteiger)
>> >Anyways, thanks a lot and I'll post a success or failure note soon!
>> Sadly it's a failure note: I just graded down to gcc 3.3.1 and I
>> still got the same error; the dll builds fine, no linker errors, but
>> the built application won't start then (The application could not be
> Yeah - I find the same, now that I come to test.
> It seems to be something specifically related to the gmp dll. That is, I
> build a couple of simple dynamic libs that have the same type of
> relationship, and there's no problem. It's only when the "other" dynamic
> needs libgmp-3.dll that the problem arises. I expect there's a way around
> the problem .... I'm not so sure that I *expect* to be able to find that
> way - but if I do, then I'll post back.
> No such problem on linux, btw. Looks to me that this might warrant a bug
> gmp-discuss mailing list
> gmp-discuss at swox.com
More information about the gmp-discuss