[pypy-dev] VerificationError after build

Skip Montanaro skip at pobox.com
Fri Jun 28 21:08:40 CEST 2013


My Linux machine at work is OpenSUSE 12.2, so I couldn't use a
pre-built binary.  I built PyPy 2.0.2 yesterday, then tried the
interpreter.  I got a couple VerificationError exceptions and never
got a prompt.  Looking more closely, I realized I was missing some
prerequisites I thought I had.  I installed everything I could find
from the list and fired up the build process again before heading
home.

It was done when I got in this morning.  I tried again.  Same result.
Since it was a compilation error, I thought I should mention what I
have available:

hornet% type cc
cc is /usr/bin/cc
hornet% type gcc
gcc is /opt/TWWfsw/bin/gcc
hornet% cc --version
cc (SUSE Linux) 4.7.1 20120723 [gcc-4_7-branch revision 189773]
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

hornet% gcc --version
gcc (GCC) 4.4.6 [TWW]
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

For compatibility with our other bits of software, and with the PyPy
build itself, I would prefer to guarantee it uses gcc.  The error
message wasn't clear about what "cc" failed.  I skimmed the --help
output of rpython, then built it again with --cc=/.../.../gcc.  Third
try is a charm?  Not so much.  Can someone give me some suggestions
about debugging these tracebacks?

hornet% ./pypy-c
Python 2.7.3 (5acfe049a5b0cd0de158f62553a98f5ef364fd29, Jun 28 2013, 15:39:43)
[PyPy 2.0.2] on linux3
Type "help", "copyright", "credits" or "license" for more information.
/net/udesktop267.wacker/export/home/skipm/3rdParty/pypy-2.0.2-src/lib_pypy/__pycache__/_cffi__g85535e98x310af836.c:27:19:
fatal error: panel.h: No such file or directory
compilation terminated.
Traceback (most recent call last):
  File "app_main.py", line 72, in run_toplevel
  File "app_main.py", line 598, in run_it
  File "/home/skipm/.python.py", line 27, in <module>
    from save_session import mark, save, load
  File "/home/skipm/misc/python/save_session.py", line 19, in <module>
    import readline
  File "/net/udesktop267.wacker/export/home/skipm/3rdParty/pypy-2.0.2-src/lib_pypy/readline.py",
line 9, in <module>
    from pyrepl.readline import *
  File "/net/udesktop267.wacker/export/home/skipm/3rdParty/pypy-2.0.2-src/lib_pypy/pyrepl/readline.py",
line 33, in <module>
    from pyrepl.unix_console import UnixConsole, _error
  File "/net/udesktop267.wacker/export/home/skipm/3rdParty/pypy-2.0.2-src/lib_pypy/pyrepl/unix_console.py",
line 25, in <module>
    from pyrepl import curses
  File "/net/udesktop267.wacker/export/home/skipm/3rdParty/pypy-2.0.2-src/lib_pypy/pyrepl/curses.py",
line 28, in <module>
    import _curses
  File "/net/udesktop267.wacker/export/home/skipm/3rdParty/pypy-2.0.2-src/lib_pypy/_curses.py",
line 319, in <module>
    """, libraries=['ncurses', 'panel'])
  File "/net/udesktop267.wacker/export/home/skipm/3rdParty/pypy-2.0.2-src/lib_pypy/cffi/api.py",
line 311, in verify
    lib = self.verifier.load_library()
  File "/net/udesktop267.wacker/export/home/skipm/3rdParty/pypy-2.0.2-src/lib_pypy/cffi/verifier.py",
line 68, in load_library
    self.compile_module()
  File "/net/udesktop267.wacker/export/home/skipm/3rdParty/pypy-2.0.2-src/lib_pypy/cffi/verifier.py",
line 56, in compile_module
    self._compile_module()
  File "/net/udesktop267.wacker/export/home/skipm/3rdParty/pypy-2.0.2-src/lib_pypy/cffi/verifier.py",
line 142, in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
  File "/net/udesktop267.wacker/export/home/skipm/3rdParty/pypy-2.0.2-src/lib_pypy/cffi/ffiplatform.py",
line 25, in compile
    outputfilename = _build(tmpdir, ext)
  File "/net/udesktop267.wacker/export/home/skipm/3rdParty/pypy-2.0.2-src/lib_pypy/cffi/ffiplatform.py",
line 50, in _build
    raise VerificationError('%s: %s' % (e.__class__.__name__, e))
VerificationError: CompileError: command 'cc' failed with exit status 1
And now for something completely different: ``it is the expected behavior,
except when you don't expect it''
/net/udesktop267.wacker/export/home/skipm/3rdParty/pypy-2.0.2-src/lib_pypy/__pycache__/_cffi__g85535e98x310af836.c:27:19:
fatal error: panel.h: No such file or directory
compilation terminated.
Traceback (most recent call last):
  File "app_main.py", line 72, in run_toplevel
  File "/net/udesktop267.wacker/export/home/skipm/3rdParty/pypy-2.0.2-src/lib_pypy/_pypy_interact.py",
line 34, in interactive_console
    from pyrepl.simple_interact import check
  File "/net/udesktop267.wacker/export/home/skipm/3rdParty/pypy-2.0.2-src/lib_pypy/pyrepl/simple_interact.py",
line 27, in <module>
    from pyrepl.readline import multiline_input, _error, _get_reader
  File "/net/udesktop267.wacker/export/home/skipm/3rdParty/pypy-2.0.2-src/lib_pypy/pyrepl/readline.py",
line 33, in <module>
    from pyrepl.unix_console import UnixConsole, _error
  File "/net/udesktop267.wacker/export/home/skipm/3rdParty/pypy-2.0.2-src/lib_pypy/pyrepl/unix_console.py",
line 25, in <module>
    from pyrepl import curses
  File "/net/udesktop267.wacker/export/home/skipm/3rdParty/pypy-2.0.2-src/lib_pypy/pyrepl/curses.py",
line 28, in <module>
    import _curses
  File "/net/udesktop267.wacker/export/home/skipm/3rdParty/pypy-2.0.2-src/lib_pypy/_curses.py",
line 319, in <module>
    """, libraries=['ncurses', 'panel'])
  File "/net/udesktop267.wacker/export/home/skipm/3rdParty/pypy-2.0.2-src/lib_pypy/cffi/api.py",
line 311, in verify
    lib = self.verifier.load_library()
  File "/net/udesktop267.wacker/export/home/skipm/3rdParty/pypy-2.0.2-src/lib_pypy/cffi/verifier.py",
line 68, in load_library
    self.compile_module()
  File "/net/udesktop267.wacker/export/home/skipm/3rdParty/pypy-2.0.2-src/lib_pypy/cffi/verifier.py",
line 56, in compile_module
    self._compile_module()
  File "/net/udesktop267.wacker/export/home/skipm/3rdParty/pypy-2.0.2-src/lib_pypy/cffi/verifier.py",
line 142, in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
  File "/net/udesktop267.wacker/export/home/skipm/3rdParty/pypy-2.0.2-src/lib_pypy/cffi/ffiplatform.py",
line 25, in compile
    outputfilename = _build(tmpdir, ext)
  File "/net/udesktop267.wacker/export/home/skipm/3rdParty/pypy-2.0.2-src/lib_pypy/cffi/ffiplatform.py",
line 50, in _build
    raise VerificationError('%s: %s' % (e.__class__.__name__, e))
VerificationError: CompileError: command 'cc' failed with exit status 1

Thx,

Skip


More information about the pypy-dev mailing list