[Numpy-discussion] Segfault in mingw in test_arrayprint.TestComplexArray
Tue Jul 24 19:57:18 CDT 2012
On Tue, Jul 24, 2012 at 5:38 PM, Ondřej Čertík <email@example.com> wrote:
> Possible conclusion:
> 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
> something.c" works).
> 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.
Also works! There is even one more test failure, but I'll post these
in another thread.
So I think I am set for creating Windows binaries now.
Thanks Ralf and David for your help!
More information about the NumPy-Discussion