Failure in testing/test_unicode_literals.py:47: test_cdef

Issue #157 invalid
Dirkjan Ochtman
created an issue

From https://bugs.gentoo.org/show_bug.cgi?id=510176. This only appears to happen with MAKEOPTS="-j5", not with empty MAKEOPTS.

testing/test_unicode_literals.py:47: test_cdef
================================================================ FAILURES =================================================================
____________________________________________________________ test_module_type _____________________________________________________________
    def test_module_type():
        import cffi.verifier
        ffi = FFI()
>       lib = ffi.verify()
testing/test_verify.py:37:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
{{{ more backtrace }}
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tmpdir = '/var/tmp/portage/dev-python/cffi-0.8.2/work/cffi-0.8.2/testing/__pycache__'
ext = <distutils.extension.Extension instance at 0x4311950>
    def _build(tmpdir, ext):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors
        #
        dist = Distribution({'ext_modules': [ext]})
        options = dist.get_option_dict('build_ext')
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            dist.run_command('build_ext')
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'x86_64-pc-linux-gnu-gcc' failed with exit status 1
cffi/ffiplatform.py:50: VerificationError
------------------------------------------------------------- Captured stderr -------------------------------------------------------------
x86_64-pc-linux-gnu-gcc: error: testing/__pycache__/_cffi__x62ffdd9ex48daca03.c: No such file or directory
x86_64-pc-linux-gnu-gcc: fatal error: no input files
compilation terminated.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
============================================ 1 failed, 491 passed, 38 skipped in 13.74 seconds ============================================

Comments (3)

  1. Armin Rigo

    I cannot reproduce this. It works for me with an unmodified "py.test" with MAKEOPTS=-j5.

    I don't really understand what you mean with the second comment, feel free to expand.

  2. Log in to comment