[pypy-issue] Issue #2848: GNU/Hurd port (pypy/pypy)

Samuel Thibault issues-reply at bitbucket.org
Fri Jun 15 17:43:06 EDT 2018


New issue 2848: GNU/Hurd port
https://bitbucket.org/pypy/pypy/issues/2848/gnu-hurd-port

Samuel Thibault:

Hello,

I'm trying to port pypy to GNU/Hurd, I have used the attached patch and gotten the build to proceed, but ended up with this:

[3c15] translation-task}

[translation:info] Error:
   File "/var/tmp/pypy-6.0.0+dfsg/rpython/translator/goal/translate.py", line 318, in main
    drv.proceed(goals)
   File "/var/tmp/pypy-6.0.0+dfsg/rpython/translator/driver.py", line 554, in proceed
    result = self._execute(goals, task_skip = self._maybe_skip())
   File "/var/tmp/pypy-6.0.0+dfsg/rpython/translator/tool/taskengine.py", line 114, in _execute
    res = self._do(goal, taskcallable, *args, **kwds)
   File "/var/tmp/pypy-6.0.0+dfsg/rpython/translator/driver.py", line 278, in _do
    res = func()
   File "/var/tmp/pypy-6.0.0+dfsg/rpython/translator/driver.py", line 315, in task_annotate
    s = annotator.build_types(self.entry_point, self.inputtypes)
   File "/var/tmp/pypy-6.0.0+dfsg/rpython/annotator/annrpython.py", line 92, in build_types
    return self.build_graph_types(flowgraph, inputs_s, complete_now=complete_now)
   File "/var/tmp/pypy-6.0.0+dfsg/rpython/annotator/annrpython.py", line 140, in build_graph_types
    self.complete()
   File "/var/tmp/pypy-6.0.0+dfsg/rpython/annotator/annrpython.py", line 229, in complete
    self.complete_pending_blocks()
   File "/var/tmp/pypy-6.0.0+dfsg/rpython/annotator/annrpython.py", line 224, in complete_pending_blocks
    self.processblock(graph, block)
   File "/var/tmp/pypy-6.0.0+dfsg/rpython/annotator/annrpython.py", line 398, in processblock
    self.flowin(graph, block)
   File "/var/tmp/pypy-6.0.0+dfsg/rpython/annotator/annrpython.py", line 501, in flowin
    self.consider_op(op)
   File "/var/tmp/pypy-6.0.0+dfsg/rpython/annotator/annrpython.py", line 653, in consider_op
    resultcell = op.consider(self)
   File "/var/tmp/pypy-6.0.0+dfsg/rpython/flowspace/operation.py", line 104, in consider
    return spec(annotator, *self.args)
   File "/var/tmp/pypy-6.0.0+dfsg/rpython/annotator/unaryop.py", line 118, in simple_call_SomeObject
    return s_func.call(argspec)
   File "/var/tmp/pypy-6.0.0+dfsg/rpython/annotator/unaryop.py", line 978, in call
    return bookkeeper.pbc_call(self, args)
   File "/var/tmp/pypy-6.0.0+dfsg/rpython/annotator/bookkeeper.py", line 535, in pbc_call
    results.append(desc.pycall(whence, args, s_previous_result, op))
   File "/var/tmp/pypy-6.0.0+dfsg/rpython/annotator/description.py", line 398, in pycall
    s_result = self.specialize(inputcells, op)
   File "/var/tmp/pypy-6.0.0+dfsg/rpython/annotator/description.py", line 281, in specialize
    return self.specializer(self, inputcells)
   File "/var/tmp/pypy-6.0.0+dfsg/rpython/annotator/specialize.py", line 303, in memo
    _, _, memotable = memotables.find(firstvalues)
   File "/var/tmp/pypy-6.0.0+dfsg/rpython/tool/algo/unionfind.py", line 48, in find
    info = self.info_factory(obj)
   File "/var/tmp/pypy-6.0.0+dfsg/rpython/annotator/specialize.py", line 293, in compute_one_result
    value = func(*args)
   File "/var/tmp/pypy-6.0.0+dfsg/rpython/rlib/rarithmetic.py", line 154, in _should_widen_type
    r_class = rffi.platform.numbertype_to_rclass[tp]
[translation:ERROR] KeyError: <Void>
Processing block:
 block at 28[n_1] is a <class 'rpython.flowspace.flowcontext.SpamBlock'> 
 in (rpython.rlib.rarithmetic:139)widen__NoneType 
 containing the following operations: 
       v637 = simple_call((function typeOf), n_1) 
       v638 = simple_call((function _should_widen_type), v637) 
       v639 = bool(v638) 
 --end--

which, I have to say, I don't understand :)

Samuel




More information about the pypy-issue mailing list