Windows system, after
set cc=mingw32-gcc
PyPy can not pass many tests:
pytest.py pypy/translator/test/test_unsimplify.py
pytest.py
pypy/translator/c/test/test_extfunc.py::test_dictlike_environ_getitem
...
I find this is because MinGW32 gcc compile default use msvcrt.dll, but we need
msvcr90.dll,
as Python 2.7 use msvcr90.dll.
>>> import ctypes
>>> ctypes.util.find_msvcrt()
'msvcr90.dll'And even python.exe dependence on msvcr90.dllref to
http://trac.seqan.de/wiki/HowTo/SelectASpecificMsvcrtVersionWithMinGw
this is how I make MinGW32 gcc use msvcr90.dll instead:
save these to you MinGW directory as file D:\MinGW\lib\gcc\mingw32\4.6.2\specs
*cpp:
%{posix:-D_POSIX_SOURCE} %{mthreads:-D_MT} -D__MSVCRT_VERSION__=0x0900
*libgcc:
%{mthreads:-lmingwthrd} -lmingw32 %{shared-libgcc:-lgcc_s}
%{!shared-libgcc:-lgcc_eh} -lgcc -lmoldname90 -lmingwex -lmsvcr90
I suggest this instruction should be add to PyPy doc: MinGW32 support
_______________________________________________
pypy-dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-dev