[pypy-issue] Issue #3054: Build fails on SPARC64 (pypy/pypy)
Stefano Rivera
issues-reply at bitbucket.org
Mon Aug 12 07:25:53 EDT 2019
New issue 3054: Build fails on SPARC64
https://bitbucket.org/pypy/pypy/issues/3054/build-fails-on-sparc64
Stefano Rivera:
pypy 3.x has never built on Debian sparc64, although pypy 2.x has been building. That is, it failed on 6.0.0 through the py3.6 HEAD \([d21e9a6b4037](https://bitbucket.org/pypy/pypy/commits/d21e9a6b4037)\). The failure is:
```
[translation:info] Error:
File "/home/stefanor/pypy3.d21e9a6b4037/rpython/translator/goal/translate.py", line 318, in main
drv.proceed(goals)
File "/home/stefanor/pypy3.d21e9a6b4037/rpython/translator/driver.py", line 554, in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
File "/home/stefanor/pypy3.d21e9a6b4037/rpython/translator/tool/taskengine.py", line 114, in _execute
res = self._do(goal, taskcallable, *args, **kwds)
File "/home/stefanor/pypy3.d21e9a6b4037/rpython/translator/driver.py", line 278, in _do
res = func()
File "/home/stefanor/pypy3.d21e9a6b4037/rpython/translator/driver.py", line 315, in task_annotate
s = annotator.build_types(self.entry_point, self.inputtypes)
File "/home/stefanor/pypy3.d21e9a6b4037/rpython/annotator/annrpython.py", line 88, in build_types
flowgraph, inputs_s = self.get_call_parameters(function, args_s)
File "/home/stefanor/pypy3.d21e9a6b4037/rpython/annotator/annrpython.py", line 97, in get_call_parameters
return desc.get_call_parameters(args_s)
File "/home/stefanor/pypy3.d21e9a6b4037/rpython/annotator/description.py", line 335, in get_call_parameters
graph = self.specialize(inputcells)
File "/home/stefanor/pypy3.d21e9a6b4037/rpython/annotator/description.py", line 281, in specialize
return self.specializer(self, inputcells)
File "/home/stefanor/pypy3.d21e9a6b4037/rpython/annotator/specialize.py", line 82, in default_specialize
graph = funcdesc.cachedgraph(key, builder=builder)
File "/home/stefanor/pypy3.d21e9a6b4037/rpython/annotator/description.py", line 247, in cachedgraph
graph = self.buildgraph(alt_name, builder)
File "/home/stefanor/pypy3.d21e9a6b4037/rpython/annotator/description.py", line 210, in buildgraph
graph = translator.buildflowgraph(self.pyobj)
File "/home/stefanor/pypy3.d21e9a6b4037/rpython/translator/translator.py", line 53, in buildflowgraph
graph = build_flow(func)
File "/home/stefanor/pypy3.d21e9a6b4037/rpython/flowspace/objspace.py", line 49, in build_flow
ctx.build_flow()
File "/home/stefanor/pypy3.d21e9a6b4037/rpython/flowspace/flowcontext.py", line 400, in build_flow
self.record_block(block)
File "/home/stefanor/pypy3.d21e9a6b4037/rpython/flowspace/flowcontext.py", line 408, in record_block
next_offset = self.handle_bytecode(next_offset)
File "/home/stefanor/pypy3.d21e9a6b4037/rpython/flowspace/flowcontext.py", line 487, in handle_bytecode
offset = getattr(self, methodname)(oparg)
File "/home/stefanor/pypy3.d21e9a6b4037/rpython/flowspace/flowcontext.py", line 664, in IMPORT_NAME
w_obj = self.import_name(modulename, glob, None, fromlist, level)
File "/home/stefanor/pypy3.d21e9a6b4037/rpython/flowspace/flowcontext.py", line 654, in import_name
mod = __import__(name, glob, loc, frm, level)
File "/home/stefanor/pypy3.d21e9a6b4037/rpython/rlib/rsiphash.py", line 346, in <module>
_update_prebuilt_hashes()
File "/home/stefanor/pypy3.d21e9a6b4037/rpython/rlib/rsiphash.py", line 343, in _update_prebuilt_hashes
seed.hash_single[i] = _siphash24(addr, 1)
File "/home/stefanor/pypy3.d21e9a6b4037/rpython/rlib/rsiphash.py", line 309, in _siphash24
t |= r_uint64(llop.raw_load(rffi.UCHAR, addr_in, index))
File "/home/stefanor/pypy3.d21e9a6b4037/rpython/rtyper/lltypesystem/lloperation.py", line 57, in __call__
val = fold(RESULTTYPE, *args)
File "/home/stefanor/pypy3.d21e9a6b4037/rpython/rtyper/lltypesystem/opimpl.py", line 739, in op_raw_load
p = rffi.cast(rffi.CArrayPtr(TVAL), p + ofs)
File "/home/stefanor/pypy3.d21e9a6b4037/rpython/rtyper/lltypesystem/ll2ctypes.py", line 1361, in force_cast
TYPE1 = lltype.typeOf(value)
File "/home/stefanor/pypy3.d21e9a6b4037/rpython/rtyper/lltypesystem/lltype.py", line 820, in typeOf
raise OverflowError("integer %r is out of bounds" % (val,))
[translation:ERROR] OverflowError: integer 18446603340612095520L is out of bounds
```
Full build log: [https://buildd.debian.org/status/fetch.php?pkg=pypy3&arch=sparc64&ver=7.1.1%2Bdfsg-1&stamp=1565369400&raw=0](https://buildd.debian.org/status/fetch.php?pkg=pypy3&arch=sparc64&ver=7.1.1%2Bdfsg-1&stamp=1565369400&raw=0)
More information about the pypy-issue
mailing list