[PyPy-issue] [issue691] pypy-head does not compile under Windows

David Naylor pypy-dev-issue at codespeak.net
Wed May 4 20:33:52 CEST 2011


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

I tried compiling and got the following errors (on consecutive runs):

[platform:execute] dlltool --dllname libpypy-c.dll --output-exp c:\users\<USER>\
appdata\local\temp\usession-unknown-1\dynamic-symbols-3.exp --def 
c:\users\<USER>
\appdata\local\temp\usession-unknown-1\dynamic-symbols-3
[Timer] Timings:
[Timer] annotate                       ---  847.2 s
[Timer] rtype_lltype                   ---  559.9 s
[Timer] pyjitpl_lltype                 ---  572.1 s
[Timer] backendopt_lltype              ---  158.3 s
[Timer] stackcheckinsertion_lltype     ---   75.8 s
[Timer] database_c                     ---  217.6 s
[Timer] source_c                       ---  441.3 s
[Timer] ===========================================
[Timer] Total:                         --- 2872.1 s
[translation:ERROR] Error:
[translation:ERROR]  Traceback (most recent call last):
[translation:ERROR]    File "translate.py", line 303, in main
[translation:ERROR]     drv.proceed(goals)
[translation:ERROR]    File "c:\cygwin\home\<USER>\pypy\pypy\translator\driver.p
y", line 809, in proceed
[translation:ERROR]     return self._execute(goals, task_skip = self._maybe_skip
())
[translation:ERROR]    File "c:\cygwin\home\<USER>\pypy\pypy\translator\tool\tas
kengine.py", line 116, in _execute
[translation:ERROR]     res = self._do(goal, taskcallable, *args, **kwds)
[translation:ERROR]    File "c:\cygwin\home\<USER>\pypy\pypy\translator\driver.p
y", line 286, in _do
[translation:ERROR]     res = func()
[translation:ERROR]    File "c:\cygwin\home\<USER>\pypy\pypy\translator\driver.p
y", line 530, in task_source_c
[translation:ERROR]     exe_name=exe_name)
[translation:ERROR]    File "c:\cygwin\home\<USER>\pypy\pypy\translator\c\genc.p
y", line 273, in generate_source
[translation:ERROR]     self.gen_makefile(targetdir, exe_name=exe_name)
[translation:ERROR]    File "c:\cygwin\home\<USER>\pypy\pypy\translator\c\genc.p
y", line 542, in gen_makefile
[translation:ERROR]     shared=self.config.translation.shared)
[translation:ERROR]    File "c:\cygwin\home\<USER>\pypy\pypy\translator\platform
\posix.py", line 104, in gen_makefile
[translation:ERROR]     linkflags += self._exportsymbols_link_flags(eci, target_
name, relto=path)
[translation:ERROR]    File "c:\cygwin\home\<USER>\pypy\pypy\translator\platform
\windows.py", line 387, in _exportsymbols_link_flags
[translation:ERROR]     exp_file)
[translation:ERROR]    File "c:\cygwin\home\<USER>\pypy\pypy\translator\platform
\__init__.py", line 116, in _execute_c_compiler
[translation:ERROR]     cwd)
[translation:ERROR]    File "c:\cygwin\home\<USER>\pypy\pypy\tool\runsubprocess.
py", line 11, in run_subprocess
[translation:ERROR]     return _run(executable, args, env, cwd)
[translation:ERROR]    File "c:\cygwin\home\<USER>\pypy\pypy\tool\runsubprocess.
py", line 25, in _run
[translation:ERROR]     stdout, stderr = pipe.communicate()
[translation:ERROR]    File "C:\Python27\lib\subprocess.py", line 740, in commun
icate
[translation:ERROR]     return self._communicate(input)
[translation:ERROR]    File "C:\Python27\lib\subprocess.py", line 949, in _commu
nicate
[translation:ERROR]     stdout_thread.start()
[translation:ERROR]    File "C:\Python27\lib\threading.py", line 473, in start
[translation:ERROR]     _start_new_thread(self.__bootstrap, ())
[translation:ERROR]  error: can't start new thread
[translation] start debugger...
> c:\python27\lib\threading.py(477)start()
-> raise
(Pdb+)

and

[c:writing] implement_76.c
[Timer] Timings:
[Timer] annotate                       ---  834.7 s
[Timer] rtype_lltype                   ---  561.5 s
[Timer] pyjitpl_lltype                 ---  569.9 s
[Timer] backendopt_lltype              ---  157.4 s
[Timer] stackcheckinsertion_lltype     ---   37.3 s
[Timer] database_c                     ---  211.3 s
[Timer] source_c                       ---  607.5 s
[Timer] ===========================================
[Timer] Total:                         --- 2979.7 s
[translation:ERROR] Error:
[translation:ERROR]  Traceback (most recent call last):
[translation:ERROR]    File "translate.py", line 303, in main
[translation:ERROR]     drv.proceed(goals)
[translation:ERROR]    File "c:\cygwin\home\<USER>\pypy\pypy\translator\driver.p
y", line 809, in proceed
[translation:ERROR]     return self._execute(goals, task_skip = self._maybe_skip
())
[translation:ERROR]    File "c:\cygwin\home\<USER>\pypy\pypy\translator\tool\tas
kengine.py", line 116, in _execute
[translation:ERROR]     res = self._do(goal, taskcallable, *args, **kwds)
[translation:ERROR]    File "c:\cygwin\home\<USER>\pypy\pypy\translator\driver.p
y", line 286, in _do
[translation:ERROR]     res = func()
[translation:ERROR]    File "c:\cygwin\home\<USER>\pypy\pypy\translator\driver.p
y", line 530, in task_source_c
[translation:ERROR]     exe_name=exe_name)
[translation:ERROR]    File "c:\cygwin\home\<USER>\pypy\pypy\translator\c\genc.p
y", line 270, in generate_source
[translation:ERROR]     defines = defines)
[translation:ERROR]    File "c:\cygwin\home\<USER>\pypy\pypy\translator\c\genc.p
y", line 961, in gen_source_standalone
[translation:ERROR]     sg.gen_readable_parts_of_source(f)
[translation:ERROR]    File "c:\cygwin\home\<USER>\pypy\pypy\translator\c\genc.p
y", line 820, in gen_readable_parts_of_source
[translation:ERROR]     for node, impl in nodeiter:
[translation:ERROR]    File "c:\cygwin\home\<USER>\pypy\pypy\translator\c\genc.p
y", line 706, in subiter
[translation:ERROR]     impl = '\n'.join(list(node.implementation())).split('\n'
)
[translation:ERROR]    File "c:\cygwin\home\<USER>\pypy\pypy\translator\c\node.p
y", line 862, in implementation
[translation:ERROR]     for s in self.funcgen_implementation(funcgen):
[translation:ERROR]    File "c:\cygwin\home\<USER>\pypy\pypy\translator\c\node.p
y", line 871, in funcgen_implementation
[translation:ERROR]     funcgen.implementation_begin()
[translation:ERROR]    File "c:\cygwin\home\<USER>\pypy\pypy\translator\c\funcge
n.py", line 123, in implementation_begin
[translation:ERROR]     self.collect_var_and_types()
[translation:ERROR]    File "c:\cygwin\home\<USER>\pypy\pypy\translator\c\funcge
n.py", line 105, in collect_var_and_types
[translation:ERROR]     seen[v] = True
[translation:ERROR]    File "c:\cygwin\home\<USER>\pypy\pypy\tool\identity_dict.
py", line 20, in __setitem__
[translation:ERROR]     self._keys[id(arg)] = arg
[translation:ERROR]  MemoryError
[translation] start debugger...
Traceback (most recent call last):
  File "translate.py", line 319, in <module>
    main()
  File "translate.py", line 310, in main
    debug(True)
  File "translate.py", line 264, in debug
    pdb_plus_show.start(tb)
  File "c:\cygwin\home\<USER>\pypy\pypy\translator\tool\pdbplus.py", line 417, i
n start
    fn(*args)
  File "c:\cygwin\home\<USER>\pypy\pypy\translator\tool\pdbplus.py", line 22, in
 post_mortem
    self.reset()
  File "C:\Python27\lib\pdb.py", line 108, in reset
    bdb.Bdb.reset(self)
  File "C:\Python27\lib\bdb.py", line 40, in reset
    linecache.checkcache()
  File "C:\Python27\lib\linecache.py", line 48, in checkcache
    filenames = cache.keys()
MemoryError

This is on Windows 7 64bit running python 2.7 32bit.  It appears pypy translate 
is running out of memory?  This was not run in a virtual environment.

_______________________________________________________
PyPy development tracker <pypy-dev-issue at codespeak.net>
<https://codespeak.net/issue/pypy-dev/issue691>
_______________________________________________________



More information about the Pypy-issue mailing list