[pypy-dev] Failed to translate PyPy Python interpreter on Snow Leopard

Olli Wang olliwang at ollix.com
Sat Dec 12 19:22:54 CET 2009


Hi, I was following this page (
http://codespeak.net/pypy/dist/pypy/doc/getting-started-python.html#translating-the-pypy-python-interpreter)
and tried to translate the PyPy Python interpreter on Snow Leopard. But
unfortunately it always failed unexpectedly after a long time translating.
Here's the error messages, any idea? Thanks.

[c:writing] implement.c
[backendopt:WARNING] constant-folding v1 = getfield(v0,
('inst_co_varnames')):
[backendopt:WARNING]   AttributeError: 'NoneType' object has no attribute
'_getattr'
[backendopt:WARNING] constant-folding v1 = getfield(v0,
('inst_co_varnames')):
[backendopt:WARNING]   AttributeError: 'NoneType' object has no attribute
'_getattr'
[backendopt:WARNING] constant-folding v1 = getfield(v0,
('inst_co_varnames')):
[backendopt:WARNING]   AttributeError: 'NoneType' object has no attribute
'_getattr'
[backendopt:WARNING] constant-folding v1 = getfield(v0,
('inst_co_varnames')):
[backendopt:WARNING]   AttributeError: 'NoneType' object has no attribute
'_getattr'
[backendopt:WARNING] constant-folding v1 = getfield(v0,
('inst_co_varnames')):
[backendopt:WARNING]   AttributeError: 'NoneType' object has no attribute
'_getattr'
[c:writing] implement_1.c
[c:writing] implement_2.c
[c:writing] implement_3.c
[c:writing] implement_4.c
[c:writing] implement_5.c
[c:writing] implement_6.c
[c:writing] implement_7.c
[c:writing] implement_8.c
[c:writing] implement_9.c
[translation:info] written:
/var/folders/m9/m9iGqKJ2EACAKiV+yD8Lb++++TI/-Tmp-/usession-trunk-4/testing_1/testing_1.c
[translation:info] Compiling c source...
[c:profopt] -c 'from richards import main;main(); from test import pystone;
pystone.main()'
[platform:execute] gcc -c -O3 -fomit-frame-pointer -mmacosx-version-min=10.4
-mdynamic-no-pic -fprofile-generate
-I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6
-I/Users/olliwang/workspace/repo/pypy-trunk/pypy/translator/c
-I/usr/include/ffi
/var/folders/m9/m9iGqKJ2EACAKiV+yD8Lb++++TI/-Tmp-/usession-trunk-4/testing_1/testing_1.c
-o
/var/folders/m9/m9iGqKJ2EACAKiV+yD8Lb++++TI/-Tmp-/usession-trunk-4/testing_1/testing_1.o
[platform:ERROR] In file included from
/Users/olliwang/workspace/repo/pypy-trunk/pypy/translator/c/src/g_include.h:54,
[platform:ERROR]                  from
/var/folders/m9/m9iGqKJ2EACAKiV+yD8Lb++++TI/-Tmp-/usession-trunk-4/testing_1/testing_1.c:42:
[platform:ERROR]
/Users/olliwang/workspace/repo/pypy-trunk/pypy/translator/c/src/debug.h: In
function 'pypy_read_timestamp':
[platform:ERROR]
/Users/olliwang/workspace/repo/pypy-trunk/pypy/translator/c/src/debug.h:127:
error: 'CLOCK_THREAD_CPUTIME_ID' undeclared (first use in this function)
[platform:ERROR]
/Users/olliwang/workspace/repo/pypy-trunk/pypy/translator/c/src/debug.h:127:
error: (Each undeclared identifier is reported only once
[platform:ERROR]
/Users/olliwang/workspace/repo/pypy-trunk/pypy/translator/c/src/debug.h:127:
error: for each function it appears in.)
[Timer] Timings:
[Timer] annotate                       ---  445.6 s
[Timer] rtype_lltype                   ---  587.0 s
[Timer] backendopt_lltype              ---  305.5 s
[Timer] stackcheckinsertion_lltype     ---   71.5 s
[Timer] database_c                     ---  433.6 s
[Timer] source_c                       ---  812.9 s
[Timer] compile_c                      ---    8.7 s
[Timer] ===========================================
[Timer] Total:                         --- 2664.7 s
[translation:ERROR] Error:
[translation:ERROR]  Traceback (most recent call last):
[translation:ERROR]    File "translate.py", line 277, in main
[translation:ERROR]     drv.proceed(goals)
[translation:ERROR]    File
"/Users/olliwang/workspace/repo/pypy-trunk/pypy/translator/driver.py", line
741, in proceed
[translation:ERROR]     return self._execute(goals, task_skip =
self._maybe_skip())
[translation:ERROR]    File
"/Users/olliwang/workspace/repo/pypy-trunk/pypy/translator/tool/taskengine.py",
line 116, in _execute
[translation:ERROR]     res = self._do(goal, taskcallable, *args, **kwds)
[translation:ERROR]    File
"/Users/olliwang/workspace/repo/pypy-trunk/pypy/translator/driver.py", line
279, in _do
[translation:ERROR]     res = func()
[translation:ERROR]    File
"/Users/olliwang/workspace/repo/pypy-trunk/pypy/translator/driver.py", line
504, in task_compile_c
[translation:ERROR]     cbuilder.compile()
[translation:ERROR]    File
"/Users/olliwang/workspace/repo/pypy-trunk/pypy/translator/c/genc.py", line
452, in compile
[translation:ERROR]     self.executable_name = compiler.build()
[translation:ERROR]    File
"/Users/olliwang/workspace/repo/pypy-trunk/pypy/translator/c/genc.py", line
86, in build
[translation:ERROR]     return self._do_profbased()
[translation:ERROR]    File
"/Users/olliwang/workspace/repo/pypy-trunk/pypy/translator/c/genc.py", line
94, in _do_profbased
[translation:ERROR]     exename = profdrv.first()
[translation:ERROR]    File
"/Users/olliwang/workspace/repo/pypy-trunk/pypy/translator/c/genc.py", line
49, in first
[translation:ERROR]     ofiles = platform._compile_o_files(prof, p_eci)
[translation:ERROR]    File
"/Users/olliwang/workspace/repo/pypy-trunk/pypy/translator/platform/__init__.py",
line 72, in _compile_o_files
[translation:ERROR]     ofiles.append(self._compile_c_file(self.cc, cfile,
compile_args))
[translation:ERROR]    File
"/Users/olliwang/workspace/repo/pypy-trunk/pypy/translator/platform/posix.py",
line 33, in _compile_c_file
[translation:ERROR]     self._execute_c_compiler(cc, args, oname)
[translation:ERROR]    File
"/Users/olliwang/workspace/repo/pypy-trunk/pypy/translator/platform/__init__.py",
line 106, in _execute_c_compiler
[translation:ERROR]     self._handle_error(returncode, stderr, stdout,
outname)
[translation:ERROR]    File
"/Users/olliwang/workspace/repo/pypy-trunk/pypy/translator/platform/__init__.py",
line 117, in _handle_error
[translation:ERROR]     raise CompilationError(stdout, stderr)
[translation:ERROR]  CompilationError: <CompilationError err='In file
included from
/Users/olliwang/workspace/repo/pypy-trunk/pypy/translator/c/src/g_include.h:54,\n

 ...Users/olliwang/workspace/repo/pypy-trunk/pypy/translator/c/src/debug.h:127:
error: for each function it appears in.)\n'>


-- 
Olli Wang

OLLI WANG PRODUCTIONS - http://olliwang.com
A BLOG ABOUT MY LIFE AND MY WORK
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pypy-dev/attachments/20091213/b6cbeab9/attachment.html>


More information about the Pypy-dev mailing list