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
> (http://pari.math.u-bordeaux.fr/buildlogs/eda2e60f-da07-4e4b-ac44-12a47c27552d
> indicates that this should work).
> 
> I tried to imitate the steps at
> http://pari.math.u-bordeaux.fr/archives/pari-dev-0912/msg00013.html
> I have mingw up and running on my debian machine, but I end up with
> the same errors as
> 
> http://pari.math.u-bordeaux.fr/buildlogs/c5febf5f-1d61-4fe4-9653-521fa41f76a9
> 
> 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
./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
setup.

Cheers,
Bill.

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