[pypy-dev] Failed to translate interpreter to JIT on Windows

Olli Wang olliwang at ollix.com
Mon Dec 21 07:59:13 CET 2009


Hi, I was trying to translate Python interpreter to JIT backend on WIndows
but failed.
It's no problem to translate it to C backend. Do I miss something? Thanks.

[c:writing] implement_40.c
[c:writing] implement_41.c
[c:writing] implement_42.c
[translation:info] written:
c:\docume~1\olliwa~1\locals~1\temp\usession-26\testi
ng_1\testing_1.c
[translation:info] Compiling c source...
[platform:execute] make in
c:\docume~1\olliwa~1\locals~1\temp\usession-26\testin
g_1
[platform:ERROR] cl : Command line warning D9024 : unrecognized source file
type
 'Wang\\pypy-trunk\\pypy\\translator\\c', object file assumed
[platform:ERROR] cl : Command line warning D9027 : source file
'Wang\\pypy-trunk
\\pypy\\translator\\c' ignored
[platform:ERROR] cl : Command line warning D9024 : unrecognized source file
type
 'Wang\\pypy-trunk\\pypy\\translator\\c\\src\\libffi_msvc', object file
assumed
[platform:ERROR] cl : Command line warning D9027 : source file
'Wang\\pypy-trunk
\\pypy\\translator\\c\\src\\libffi_msvc' ignored
[platform:ERROR] NMAKE : fatal error U1077: '"C:\Program Files\Microsoft
Visual
Studio 9.0\VC\BIN\cl.exe"' : return code '0x2'
[platform:ERROR] Stop.
[platform:ERROR]        cl.exe /nologo /MD  /O2 /Oi /Ob1 /c /FAs
/Fatesting_1.s
testing_1.c /Ic:\\Python26\\include  /IC:\\cygwin\\home\\Olli
Wang\\pypy-trunk\\
pypy\\translator\\c  /IC:\\cygwin\\home\\Olli
Wang\\pypy-trunk\\pypy\\translator
\\c\\src\\libffi_msvc
[platform:ERROR] testing_1.c
[platform:ERROR] c:\documents and settings\olli wang\local
settings\temp\usessio
n-26\testing_1\common_header.h(12) : fatal error C1083: Cannot open include
file
: 'src/stack.h': No such file or directory
[Timer] Timings:
[Timer] annotate                       ---  395.8 s
[Timer] rtype_lltype                   ---  540.0 s
[Timer] pyjitpl_lltype                 ---  371.9 s
[Timer] backendopt_lltype              ---  229.9 s
[Timer] stackcheckinsertion_lltype     ---   72.2 s
[Timer] database_c                     ---  559.6 s
[Timer] source_c                       ---  661.0 s
[Timer] compile_c                      ---    0.5 s
[Timer] ===========================================
[Timer] Total:                         --- 2830.9 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 "C:\cygwin\home\Olli
Wang\pypy-trunk\pypy\translator
\driver.py", line 741, in proceed
[translation:ERROR]     return self._execute(goals, task_skip =
self._maybe_skip
())
[translation:ERROR]    File "C:\cygwin\home\Olli
Wang\pypy-trunk\pypy\translator
\tool\taskengine.py", line 116, in _execute
[translation:ERROR]     res = self._do(goal, taskcallable, *args, **kwds)
[translation:ERROR]    File "C:\cygwin\home\Olli
Wang\pypy-trunk\pypy\translator
\driver.py", line 279, in _do
[translation:ERROR]     res = func()
[translation:ERROR]    File "C:\cygwin\home\Olli
Wang\pypy-trunk\pypy\translator
\driver.py", line 504, in task_compile_c
[translation:ERROR]     cbuilder.compile()
[translation:ERROR]    File "C:\cygwin\home\Olli
Wang\pypy-trunk\pypy\translator
\c\genc.py", line 447, in compile
[translation:ERROR]
self.translator.platform.execute_makefile(self.targetdir
)
[translation:ERROR]    File "C:\cygwin\home\Olli
Wang\pypy-trunk\pypy\translator
\platform\windows.py", line 281, in execute_makefile
[translation:ERROR]     self._handle_error(returncode, stdout, stderr,
path.join
('make'))
[translation:ERROR]    File "C:\cygwin\home\Olli
Wang\pypy-trunk\pypy\translator
\platform\windows.py", line 197, in _handle_error
[translation:ERROR]     raise CompilationError(stdout, stderr)
[translation:ERROR]  CompilationError: <CompilationError err="cl : Command
line
warning D9024 : unrecognized source file type
'Wang\\\\pypy-trunk\\\\pypy\\\\tra
nslator\\\\c', obje...sting_1\\common_header.h(12) : fatal error C1083:
Cannot o
pen include file: 'src/stack.h': No such file or directory\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/20091221/49721d1a/attachment.html>


More information about the Pypy-dev mailing list