On Sunday, 17 June 2012 09:32:35 Armin Rigo wrote:
> Hi David,
> 
> On Sat, Jun 16, 2012 at 4:41 PM, David Naylor <[email protected]> 
> wrote:
> > Oh, okay.  I don't have access to the latest sources.  I normally work of
> > the released sources.  But thanks for looking at this.
> 
> It's going to take us a loooooong time to fix CLI translation if the
> process goes: "you find some minor bug in the release, we attempt to
> fix it a bit blindly, and then we wait for the next release to know if
> it worked and what the next minor bug is" :-)

This is true.  Would it be possible to do a RC release, or a heads up, so that 
I may track down these small minor bugs *before* the release is 
made?  

> In case you want to help slightly more actively, you need to get the
> sources via Mercurial's command "hg clone
> https://bitbucket.org/pypy/pypy"; and then keep up-to-date with "hg
> pull && hg update".  

Here are my results:
# mono --version
Mono JIT compiler version 2.11.1 (tarball Wed Jun 13 11:35:28 UTC 2012)
Copyright (C) 2002-2012 Novell, Inc, Xamarin Inc and Contributors. 
www.mono-project.com
        TLS:           normal
        SIGSEGV:       normal
        Notification:  kqueue
        Architecture:  x86
        Disabled:      none
        Misc:          softdebug 
        LLVM:          supported, not enabled.
        GC:            Included Boehm (with typed GC and Parallel Mark)

1) First attempt (fixed with quick patch):
# python translate.py --source -O2 --backend=cli
<snip/>
[translation:ERROR]  Skipped: ilasm2 is not on your path.

2) Second attempt (fixed with quick patch):
# python translate.py --source -O2 --backend=cli
<snip/>
[translation:ERROR]  CompilationError': CompilationError(err="""
[translation:ERROR]     /tmp/usession-unknown-1/platcheck_4.c:38:17: error: 
pty.h: No such file or directory
[translation:ERROR]     """)
[translation:ERROR]     .. v1 = simple_call((builtin_function_or_method write), 
(2), v0)
[translation:ERROR]     .. '(targetpypystandalone:19)debug'
[translation:ERROR] Processing block:
[translation:ERROR]  block@15 is a <class 
'pypy.objspace.flow.flowcontext.SpamBlock'>
[translation:ERROR]  in (targetpypystandalone:19)debug
[translation:ERROR]  containing the following operations:
[translation:ERROR]        v2 = add(('debug: '), msg_0)
[translation:ERROR]        v0 = add(v2, ('\n'))
[translation:ERROR]        v1 = simple_call((builtin_function_or_method write), 
(2), v0)
[translation:ERROR]  --end--

3) Third attempt:
# python translate.py --source -O2 --backend=cli
<snip/>
[rtyper] -=- specialized 10 more blocks -=-
[Timer] Timings:
[Timer] annotate                       --- 280.7 s
[Timer] rtype_ootype                   --- 367.2 s
[Timer] backendopt_ootype              ---  54.7 s
[Timer] source_cli                     ---   9.8 s
[Timer] ==========================================
[Timer] Total:                         --- 712.3 s
[translation:ERROR] Error:
[translation:ERROR]  Traceback (most recent call last):
[translation:ERROR]    File "translate.py", line 308, in main
[translation:ERROR]     drv.proceed(goals)
[translation:ERROR]    File "/tmp/pypy/pypy/translator/driver.py", line 791, in 
proceed
[translation:ERROR]     return self._execute(goals, task_skip = 
self._maybe_skip())
[translation:ERROR]    File "/tmp/pypy/pypy/translator/tool/taskengine.py", 
line 116, in _execute
[translation:ERROR]     res = self._do(goal, taskcallable, *args, **kwds)
[translation:ERROR]    File "/tmp/pypy/pypy/translator/driver.py", line 285, in 
_do
[translation:ERROR]     res = func()
[translation:ERROR]    File "/tmp/pypy/pypy/translator/driver.py", line 618, in 
task_source_cli
[translation:ERROR]     filename = self.gen.generate_source()
[translation:ERROR]    File "/tmp/pypy/pypy/translator/cli/gencli.py", line 56, 
in generate_source
[translation:ERROR]     GenOO.generate_source(self)
[translation:ERROR]    File "/tmp/pypy/pypy/translator/oosupport/genoo.py", 
line 68, in generate_source
[translation:ERROR]     self.gen_pendings()
[translation:ERROR]    File "/tmp/pypy/pypy/translator/oosupport/genoo.py", 
line 83, in gen_pendings
[translation:ERROR]     node.render(self.ilasm)
[translation:ERROR]    File "/tmp/pypy/pypy/translator/oosupport/function.py", 
line 131, in render
[translation:ERROR]     self.render_normal_block(block)
[translation:ERROR]    File "/tmp/pypy/pypy/translator/oosupport/function.py", 
line 239, in render_normal_block
[translation:ERROR]     self._render_op(op)
[translation:ERROR]    File "/tmp/pypy/pypy/translator/oosupport/function.py", 
line 377, in _render_op
[translation:ERROR]     instr_list.render(self.generator, op)
[translation:ERROR]    File "/tmp/pypy/pypy/translator/oosupport/metavm.py", 
line 246, in render
[translation:ERROR]     instr.render(generator, op)
[translation:ERROR]    File "/tmp/pypy/pypy/translator/cli/metavm.py", line 27, 
in render
[translation:ERROR]     _OOCall.render(self, generator, op)
[translation:ERROR]    File "/tmp/pypy/pypy/translator/oosupport/metavm.py", 
line 456, in render
[translation:ERROR]     is_primitive = get_primitive_name(callee)
[translation:ERROR]    File "/tmp/pypy/pypy/translator/oosupport/metavm.py", 
line 450, in get_primitive_name
[translation:ERROR]     return sm._name.rsplit('.', 1)
[translation:ERROR]    File "/tmp/pypy/pypy/rpython/lltypesystem/lltype.py", 
line 1171, in __getattr__
[translation:ERROR]     field_name))
[translation:ERROR]  AttributeError: <Func (  ) -> Signed> instance has no 
field '_name'

To make sure things were working properly on my system I did:
# python translate.py --source -O2
with success.

Regards

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
pypy-dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-dev

Reply via email to