Bill Allombert on Thu, 24 Mar 2016 15:17:30 +0100

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: Cross-compile pari with mingw on linux

On Thu, Mar 24, 2016 at 12:47:55PM +0100, Tommy Hofmann wrote:
> Hello PARI-dev,
> I am trying to cross-compile pari (2.7.5) with mingw on linux
> (
> indicates that this should work).
> I tried to imitate the steps at
> I have mingw up and running on my debian machine, but I end up with
> the same errors as
> Among the various problems, the Configure step doesn't seem to
> recognize the double format properly. Is the runwine script still the
> same as in the old post? Any help is appreciated.

Alas runwine depends strongly on wine behaviour which change with time...
You need to check that your runwine is compatible with your wine.

You can check the exact test done in 
Omingw-i686/config.log which is something like
cd config
i686-w64-mingw32-gcc-posix -O3 -Wall -fno-strict-aliasing endian.c -o mingw-i686-endian11985

The current version I use is below.
Another option is to use the package wine-binfmt, but I did not try it yet.
runwine purpose is just to deal with the minor difference in calling
conventions between linux and wine.

If you still have, issue write me privately and I send you my whole


case $1 in
/*) PROG="$1";;
*) PROG="./$1";;
WINEDEBUG=-all wine $PROG "$@" 2>&1 | sed -e 's/[\r]//'