Issue #147 duplicate

cfi doesn't gobble stderr messages

Anonymous created an issue

I have been redirected with this issue from pypy bug tracker https://bugs.pypy.org/issue1716

while executing

pypy-c jitviewer.py -q -c my_file.py

I got those messages (tcl.h not found, tk.h not found) in ubuntu 13.10 until I had installed tcl-dev, tk-dev.

arigo thinks it's due to running "try: import tkinter; except ImportError:..." will print an error message to stderr because cffi doesn't gobble them

Comments (2)

  1. Armin Rigo

    More precisely: the problem is that ffi.verify() will leave the compiler error messages going to stderr, before distutils raises a CompilerError. There are cases where this CompilerError is caught and execution continues normally --- but the compiler's error messages to stderr are already printed.

  2. Log in to comment