[Numpy-discussion] Segfault in mingw in test_arrayprint.TestComplexArray
Tue Jul 24 19:38:05 CDT 2012
I think I know what is going on. I use
$ wine --version
and it installs (by default) the following msvcr libraries:
$ ls ~/.wine/drive_c/windows/winsxs/
And the msvcr90.dll is in the *vc90* directory. This msvcr90.dll
cannot be read by our objdump. As such, I just remove it using "rm".
The Python installer installs the following directory:
and that is a good library. NumPy picks it up automatically and all is
ok. I also copy this good dll into C:\MinGW\libs, so that it is picked
up by the "ld" linker. Otherwise the numpy build also fails.
As such, here is my updated setup-wine.sh script:
In there, I still need to copy $tarballs/msvcr90.dll into lib/ (which
David does not recommend, but if I don't do that, then any compilation
with "gcc something.c -lmsvcr90" will fail, even though "gcc
Once this script is run, then numpy builds out of the box just using:
wine python setup.py build --compiler=mingw32 install
and all tests run via:
wine python -c "import numpy; numpy.test()"
with no segfault. So I think that this is a lot of progress. Let me
now test this numpy binary on a Windows machine.
More information about the NumPy-Discussion