[PyPy-issue] [issue551] Support for freebsd8+

David Naylor pypy-dev-issue at codespeak.net
Sun Nov 28 20:56:31 CET 2010


David Naylor <naylor.b.david at gmail.com> added the comment:

I've updated the patch for pypy-1.4.  There are four errors in the checks:
 - expat.h is not found [ctypes check 1]
 - undefined reference to mremap [check 7]
 - getpgrp (to many arguments) [check 17]
 - valgrind/valgrind.h is not found [check 39]

The change to check for x86_64 is not portable (FreeBSD defines x86_64 as amd64) 
otherwise everything else should not interfere with other platforms.  

Apply the patch with:
# cd /path/to/pypy-1.4
# patch -Esp0 < /path/to/patch-pypy3.diff

I've translated pypy under FreeBSD9/amd64 with success:
# python translate.py -Ojit
[translation:info] created: /tmp/pypy-1.4/pypy/translator/goal/pypy-c
[Timer] Timings:
[Timer] annotate                       --- 1485.5 s
[Timer] rtype_lltype                   ---  822.5 s
[Timer] pyjitpl_lltype                 --- 1691.1 s
[Timer] backendopt_lltype              ---  822.3 s
[Timer] stackcheckinsertion_lltype     ---  113.0 s
[Timer] database_c                     ---  902.2 s
[Timer] source_c                       --- 1715.7 s
[Timer] compile_c                      --- 1069.6 s
[Timer] ===========================================
[Timer] Total:                         --- 8621.9 s

and used the resulting pypy to translate itself (again with success):
# ./pypy-c~ translate.py -Ojit
[translation:info] created: /tmp/pypy-1.4/pypy/translator/goal/pypy-c
[Timer] Timings:
[Timer] annotate                       ---  858.2 s
[Timer] rtype_lltype                   ---  603.4 s
[Timer] pyjitpl_lltype                 ---  613.3 s
[Timer] backendopt_lltype              ---  258.0 s
[Timer] stackcheckinsertion_lltype     ---   36.7 s
[Timer] database_c                     ---  359.1 s
[Timer] source_c                       ---  444.4 s
[Timer] compile_c                      --- 1405.6 s
[Timer] ===========================================
[Timer] Total:                         --- 4578.7 s

----------
status: unread -> chatting

_______________________________________________________
PyPy development tracker <pypy-dev-issue at codespeak.net>
<https://codespeak.net/issue/pypy-dev/issue551>
_______________________________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch-pypy3.diff
Type: text/x-patch
Size: 8480 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/pypy-issue/attachments/20101128/43c81667/attachment.bin>


More information about the Pypy-issue mailing list