[pypy-dev] Problems translating PyPy to Java
Jan Wedel
Jan.Wedel at ettex.de
Wed Oct 7 10:01:26 CEST 2009
Ok, I tried to translate PyPy to Java using
./translate.py --backend=jvm targetpypystandalone.py
But it tried to call the MS Compiler cl.exe which I don’t have. I’m
wondering why? This results in several errors (see below).
What’s happening?
Thanks, Jan
C:\Dokumente und Einstellungen\Jan Wedel\Eigene
Dateien\repo\trunk\rialto\tools\
pypy-1.1.0\pypy\translator\goal>translate.py --backend=jvm
targetpypystandalone.
py
[translation:info] Translating target as defined by targetpypystandalone
[platform:error] Could not find a Microsoft Compiler
[platform:msg] Setting platform to 'host' cc=None
[translation] PyPy config object:
[translation] [objspace]
[translation] compiler = ast
[translation] nofaking = True
[translation] [opcodes]
[translation] CALL_LIKELY_BUILTIN = True
[translation] CALL_METHOD = True
[translation] [std]
[translation] builtinshortcut = True
[translation] getattributeshortcut = True
[translation] multimethods = doubledispatch
[translation] optimized_list_getitem = True
[translation] withmethodcache = True
[translation] withmultidict = True
[translation] withprebuiltchar = True
[translation] withrangelist = True
[translation] withshadowtracking = True
[translation] withtypeversion = True
[translation] [usemodules]
[translation] __pypy__ = True
[translation] _codecs = True
[translation] _pickle_support = True
[translation] _random = True
[translation] _sre = True
[translation] _weakref = True
[translation] cStringIO = True
[translation] errno = True
[translation] gc = True
[translation] itertools = True
[translation] marshal = True
[translation] math = True
[translation] md5 = True
[translation] operator = True
[translation] posix = True
[translation] rbench = True
[translation] recparser = True
[translation] sha = True
[translation] symbol = True
[translation] time = True
[platform:execute] cl.exe /nologo /c /MD /O2 /IC:\Python26\PC
c:\windows\temp\us
ession-2\gcctest.c /Foc:\windows\temp\usession-2\gcctest.obj
[translation:ERROR] Error:
[translation:ERROR] Traceback (most recent call last):
[translation:ERROR] File "C:\Dokumente und Einstellungen\Jan
Wedel\Eigene Dat
eien\repo\trunk\rialto\tools\pypy-1.1.0\pypy\translator\goal\translate.p
y", line
257, in main
[translation:ERROR] default_goal='compile')
[translation:ERROR] File "C:\Dokumente und Einstellungen\Jan
Wedel\Eigene Dat
eien\repo\trunk\rialto\tools\pypy-1.1.0\pypy\translator\driver.py", line
723, in
from_targetspec
[translation:ERROR] spec = target(driver, args)
[translation:ERROR] File "targetpypystandalone.py", line 202, in
target
[translation:ERROR] return self.get_entry_point(config)
[translation:ERROR] File "targetpypystandalone.py", line 209, in
get_entry_po
int
[translation:ERROR] space = make_objspace(config)
[translation:ERROR] File "C:\Dokumente und Einstellungen\Jan
Wedel\Eigene Dat
eien\repo\trunk\rialto\tools\pypy-1.1.0\pypy\tool\option.py", line 48,
in make_o
bjspace
[translation:ERROR] space = Space(config)
[translation:ERROR] File "C:\Dokumente und Einstellungen\Jan
Wedel\Eigene Dat
eien\repo\trunk\rialto\tools\pypy-1.1.0\pypy\interpreter\baseobjspace.py
", line
265, in __init__
[translation:ERROR] self.initialize()
[translation:ERROR] File "C:\Dokumente und Einstellungen\Jan
Wedel\Eigene Dat
eien\repo\trunk\rialto\tools\pypy-1.1.0\pypy\objspace\std\objspace.py",
line 73,
in initialize
[translation:ERROR] self.model = StdTypeModel(self.config)
[translation:ERROR] File "C:\Dokumente und Einstellungen\Jan
Wedel\Eigene Dat
eien\repo\trunk\rialto\tools\pypy-1.1.0\pypy\objspace\std\model.py",
line 88, in
__init__
[translation:ERROR] import pypy.objspace.std.marshal_impl # install
marshal
multimethods
[translation:ERROR] File "C:\Dokumente und Einstellungen\Jan
Wedel\Eigene Dat
eien\repo\trunk\rialto\tools\pypy-1.1.0\pypy\objspace\std\marshal_impl.p
y", line
40, in <module>
[translation:ERROR] from pypy.module.marshal.interp_marshal import
register
[translation:ERROR] File "C:\Dokumente und Einstellungen\Jan
Wedel\Eigene Dat
eien\repo\trunk\rialto\tools\pypy-1.1.0\pypy\module\marshal\interp_marsh
al.py",
line 4, in <module>
[translation:ERROR] from pypy.module._file.interp_file import W_File
[translation:ERROR] File "C:\Dokumente und Einstellungen\Jan
Wedel\Eigene Dat
eien\repo\trunk\rialto\tools\pypy-1.1.0\pypy\module\_file\interp_file.py
", line
3, in <module>
[translation:ERROR] from pypy.rlib import streamio
[translation:ERROR] File "C:\Dokumente und Einstellungen\Jan
Wedel\Eigene Dat
eien\repo\trunk\rialto\tools\pypy-1.1.0\pypy\rlib\streamio.py", line
167, in <mo
dule>
[translation:ERROR] from pypy.rlib import rwin32
[translation:ERROR] File "C:\Dokumente und Einstellungen\Jan
Wedel\Eigene Dat
eien\repo\trunk\rialto\tools\pypy-1.1.0\pypy\rlib\rwin32.py", line 5, in
<module
>
[translation:ERROR] from pypy.rpython.tool import rffi_platform
[translation:ERROR] File "C:\Dokumente und Einstellungen\Jan
Wedel\Eigene Dat
eien\repo\trunk\rialto\tools\pypy-1.1.0\pypy\rpython\tool\rffi_platform.
py", lin
e 5, in <module>
[translation:ERROR] from pypy.rpython.lltypesystem import rffi
[translation:ERROR] File "C:\Dokumente und Einstellungen\Jan
Wedel\Eigene Dat
eien\repo\trunk\rialto\tools\pypy-1.1.0\pypy\rpython\lltypesystem\rffi.p
y", line
348, in <module>
[translation:ERROR] NUMBER_TYPES = setup()
[translation:ERROR] File "C:\Dokumente und Einstellungen\Jan
Wedel\Eigene Dat
eien\repo\trunk\rialto\tools\pypy-1.1.0\pypy\rpython\lltypesystem\rffi.p
y", line
340, in setup
[translation:ERROR] tp = platform.inttype(name.upper(), c_name,
signed)
[translation:ERROR] File "C:\Dokumente und Einstellungen\Jan
Wedel\Eigene Dat
eien\repo\trunk\rialto\tools\pypy-1.1.0\pypy\rpython\tool\rfficache.py",
line 53
, in inttype
[translation:ERROR] bits = sizeof_c_type(c_name, **kwds) * 8
[translation:ERROR] File "C:\Dokumente und Einstellungen\Jan
Wedel\Eigene Dat
eien\repo\trunk\rialto\tools\pypy-1.1.0\pypy\rpython\tool\rfficache.py",
line 39
, in sizeof_c_type
[translation:ERROR] answer = ask_gcc(question, **kwds).split('=')
[translation:ERROR] File "C:\Dokumente und Einstellungen\Jan
Wedel\Eigene Dat
eien\repo\trunk\rialto\tools\pypy-1.1.0\pypy\rpython\tool\rfficache.py",
line 34
, in ask_gcc
[translation:ERROR] return build_executable_cache([c_file], eci)
[translation:ERROR] File "C:\Dokumente und Einstellungen\Jan
Wedel\Eigene Dat
eien\repo\trunk\rialto\tools\pypy-1.1.0\pypy\tool\gcc_cache.py", line
22, in bui
ld_executable_cache
[translation:ERROR] result =
platform.execute(platform.compile(c_files, eci)
)
[translation:ERROR] File "C:\Dokumente und Einstellungen\Jan
Wedel\Eigene Dat
eien\repo\trunk\rialto\tools\pypy-1.1.0\pypy\translator\platform\__init_
_.py", l
ine 61, in compile
[translation:ERROR] ofiles = self._compile_o_files(cfiles, eci,
standalone)
[translation:ERROR] File "C:\Dokumente und Einstellungen\Jan
Wedel\Eigene Dat
eien\repo\trunk\rialto\tools\pypy-1.1.0\pypy\translator\platform\__init_
_.py", l
ine 70, in _compile_o_files
[translation:ERROR] ofiles.append(self._compile_c_file(self.cc,
cfile, compi
le_args))
[translation:ERROR] File "C:\Dokumente und Einstellungen\Jan
Wedel\Eigene Dat
eien\repo\trunk\rialto\tools\pypy-1.1.0\pypy\translator\platform\windows
.py", li
ne 143, in _compile_c_file
[translation:ERROR] self._execute_c_compiler(cc, args, oname)
[translation:ERROR] File "C:\Dokumente und Einstellungen\Jan
Wedel\Eigene Dat
eien\repo\trunk\rialto\tools\pypy-1.1.0\pypy\translator\platform\__init_
_.py", l
ine 98, in _execute_c_compiler
[translation:ERROR] returncode, stdout, stderr = _run_subprocess(cc,
args, s
elf.c_environ)
[translation:ERROR] File "C:\Dokumente und Einstellungen\Jan
Wedel\Eigene Dat
eien\repo\trunk\rialto\tools\pypy-1.1.0\pypy\translator\platform\__init_
_.py", l
ine 25, in _run_subprocess
[translation:ERROR] pipe = Popen(args, stdout=PIPE, stderr=PIPE,
shell=shell
, env=env)
[translation:ERROR] File "C:\Python26\lib\subprocess.py", line 595,
in __init
__
[translation:ERROR] errread, errwrite)
[translation:ERROR] File "C:\Python26\lib\subprocess.py", line 804,
in _execu
te_child
[translation:ERROR] startupinfo)
[translation:ERROR] WindowsError: [Error 2] Das System kann die
angegebene Date
i nicht finden
[translation] start debugger...
> c:\python26\lib\subprocess.py(810)_execute_child()
-> raise WindowsError(*e.args)
(Pdb+) exit
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pypy-dev/attachments/20091007/938e4500/attachment.html>
More information about the Pypy-dev
mailing list