MidnightBSD Magus

devel/py-cffi

Foreign Function Interface for Python calling C code

Flavor Version Run OSVersion Arch License Restricted Status
py27 1.13.2_1 400 1.2 amd64 mit 0 fail

Events

Machine Type Time Message
m1264 info 2020-04-18 23:29:44.240673 Test Started
m1264 fail 2020-04-18 23:32:56.417013 make test returned non-zero: 1
m1264 fail 2020-04-18 23:32:56.680953 Test complete.

Log

===>  Testing for py27-cffi-1.13.2_1
===>   py27-cffi-1.13.2_1 depends on package: py27-pytest>0 - not found
===>  Installing /magus/packages/All/py27-pytest-3.6.4.mport
===>   py27-pytest-3.6.4 depends on package: py27-atomicwrites>=1.0 - not found
===>  Installing /magus/packages/All/py27-atomicwrites-1.1.5.mport
===>   py27-atomicwrites-1.1.5 depends on package: py27-setuptools>0 - found
===>   py27-atomicwrites-1.1.5 depends on file: /usr/local/bin/python2.7 - found
Installing py27-atomicwrites-1.1.5
/usr/local/share/licenses/py27-atomicwrites-1.1.5/catalog.mk
/usr/local/share/licenses/py27-atomicwrites-1.1.5/LICENSE
/usr/local/share/licenses/py27-atomicwrites-1.1.5/mit
/usr/local/lib/python2.7/site-packages/atomicwrites-1.1.5-py2.7.egg-info/PKG-INFO
/usr/local/lib/python2.7/site-packages/atomicwrites-1.1.5-py2.7.egg-info/SOURCES.txt
/usr/local/lib/python2.7/site-packages/atomicwrites-1.1.5-py2.7.egg-info/dependency_links.txt
/usr/local/lib/python2.7/site-packages/atomicwrites-1.1.5-py2.7.egg-info/top_level.txt
/usr/local/lib/python2.7/site-packages/atomicwrites/__init__.py
/usr/local/lib/python2.7/site-packages/atomicwrites/__init__.pyc
/usr/local/lib/python2.7/site-packages/atomicwrites/__init__.pyo

===>  Done.
===>   py27-pytest-3.6.4 depends on package: py27-atomicwrites>=1.0 - found
===>   Returning to build of py27-pytest-3.6.4
===>   py27-pytest-3.6.4 depends on package: py27-attrs>=17.4.0 - not found
===>  Installing /magus/packages/All/py27-attrs-18.1.0.mport
===>   py27-attrs-18.1.0 depends on package: py27-setuptools>0 - found
===>   py27-attrs-18.1.0 depends on file: /usr/local/bin/python2.7 - found
Installing py27-attrs-18.1.0
/usr/local/share/licenses/py27-attrs-18.1.0/catalog.mk
/usr/local/share/licenses/py27-attrs-18.1.0/LICENSE
/usr/local/share/licenses/py27-attrs-18.1.0/mit
/usr/local/lib/python2.7/site-packages/attr/__init__.py
/usr/local/lib/python2.7/site-packages/attr/__init__.pyc
/usr/local/lib/python2.7/site-packages/attr/__init__.pyo
/usr/local/lib/python2.7/site-packages/attr/_compat.py
/usr/local/lib/python2.7/site-packages/attr/_compat.pyc
/usr/local/lib/python2.7/site-packages/attr/_compat.pyo
/usr/local/lib/python2.7/site-packages/attr/_config.py
/usr/local/lib/python2.7/site-packages/attr/_config.pyc
/usr/local/lib/python2.7/site-packages/attr/_config.pyo
/usr/local/lib/python2.7/site-packages/attr/_funcs.py
/usr/local/lib/python2.7/site-packages/attr/_funcs.pyc
/usr/local/lib/python2.7/site-packages/attr/_funcs.pyo
/usr/local/lib/python2.7/site-packages/attr/_make.py
/usr/local/lib/python2.7/site-packages/attr/_make.pyc
/usr/local/lib/python2.7/site-packages/attr/_make.pyo
/usr/local/lib/python2.7/site-packages/attr/converters.py
/usr/local/lib/python2.7/site-packages/attr/converters.pyc
/usr/local/lib/python2.7/site-packages/attr/converters.pyo
/usr/local/lib/python2.7/site-packages/attr/exceptions.py
/usr/local/lib/python2.7/site-packages/attr/exceptions.pyc
/usr/local/lib/python2.7/site-packages/attr/exceptions.pyo
/usr/local/lib/python2.7/site-packages/attr/filters.py
/usr/local/lib/python2.7/site-packages/attr/filters.pyc
/usr/local/lib/python2.7/site-packages/attr/filters.pyo
/usr/local/lib/python2.7/site-packages/attr/validators.py
/usr/local/lib/python2.7/site-packages/attr/validators.pyc
/usr/local/lib/python2.7/site-packages/attr/validators.pyo
/usr/local/lib/python2.7/site-packages/attrs-18.1.0-py2.7.egg-info/PKG-INFO
/usr/local/lib/python2.7/site-packages/attrs-18.1.0-py2.7.egg-info/SOURCES.txt
/usr/local/lib/python2.7/site-packages/attrs-18.1.0-py2.7.egg-info/dependency_links.txt
/usr/local/lib/python2.7/site-packages/attrs-18.1.0-py2.7.egg-info/not-zip-safe
/usr/local/lib/python2.7/site-packages/attrs-18.1.0-py2.7.egg-info/requires.txt
/usr/local/lib/python2.7/site-packages/attrs-18.1.0-py2.7.egg-info/top_level.txt

===>  Done.
===>   py27-pytest-3.6.4 depends on package: py27-attrs>=17.4.0 - found
===>   Returning to build of py27-pytest-3.6.4
===>   py27-pytest-3.6.4 depends on package: py27-more-itertools>=4.0.0 - not found
===>  Installing /magus/packages/All/py27-more-itertools-4.2.0.mport
===>   py27-more-itertools-4.2.0 depends on package: py27-six>=1.0.0 - not found
===>  Installing /magus/packages/All/py27-six-1.13.0.mport
===>   py27-six-1.13.0 depends on package: py27-setuptools>0 - found
===>   py27-six-1.13.0 depends on file: /usr/local/bin/python2.7 - found
Installing py27-six-1.13.0
/usr/local/share/licenses/py27-six-1.13.0/catalog.mk
/usr/local/share/licenses/py27-six-1.13.0/LICENSE
/usr/local/share/licenses/py27-six-1.13.0/mit
/usr/local/lib/python2.7/site-packages/six-1.13.0-py2.7.egg-info/PKG-INFO
/usr/local/lib/python2.7/site-packages/six-1.13.0-py2.7.egg-info/SOURCES.txt
/usr/local/lib/python2.7/site-packages/six-1.13.0-py2.7.egg-info/dependency_links.txt
/usr/local/lib/python2.7/site-packages/six-1.13.0-py2.7.egg-info/top_level.txt
/usr/local/lib/python2.7/site-packages/six.py
/usr/local/lib/python2.7/site-packages/six.pyc
/usr/local/lib/python2.7/site-packages/six.pyo

===>  Done.
===>   py27-more-itertools-4.2.0 depends on package: py27-six>=1.0.0 - found
===>   Returning to build of py27-more-itertools-4.2.0
===>   py27-more-itertools-4.2.0 depends on package: py27-setuptools>0 - found
===>   py27-more-itertools-4.2.0 depends on file: /usr/local/bin/python2.7 - found
Installing py27-more-itertools-4.2.0
/usr/local/share/licenses/py27-more-itertools-4.2.0/catalog.mk
/usr/local/share/licenses/py27-more-itertools-4.2.0/LICENSE
/usr/local/share/licenses/py27-more-itertools-4.2.0/mit
/usr/local/lib/python2.7/site-packages/more_itertools-4.2.0-py2.7.egg-info/PKG-INFO
/usr/local/lib/python2.7/site-packages/more_itertools-4.2.0-py2.7.egg-info/SOURCES.txt
/usr/local/lib/python2.7/site-packages/more_itertools-4.2.0-py2.7.egg-info/dependency_links.txt
/usr/local/lib/python2.7/site-packages/more_itertools-4.2.0-py2.7.egg-info/requires.txt
/usr/local/lib/python2.7/site-packages/more_itertools-4.2.0-py2.7.egg-info/top_level.txt
/usr/local/lib/python2.7/site-packages/more_itertools/__init__.py
/usr/local/lib/python2.7/site-packages/more_itertools/__init__.pyc
/usr/local/lib/python2.7/site-packages/more_itertools/__init__.pyo
/usr/local/lib/python2.7/site-packages/more_itertools/more.py
/usr/local/lib/python2.7/site-packages/more_itertools/more.pyc
/usr/local/lib/python2.7/site-packages/more_itertools/more.pyo
/usr/local/lib/python2.7/site-packages/more_itertools/recipes.py
/usr/local/lib/python2.7/site-packages/more_itertools/recipes.pyc
/usr/local/lib/python2.7/site-packages/more_itertools/recipes.pyo
/usr/local/lib/python2.7/site-packages/more_itertools/tests/__init__.py
/usr/local/lib/python2.7/site-packages/more_itertools/tests/__init__.pyc
/usr/local/lib/python2.7/site-packages/more_itertools/tests/__init__.pyo
/usr/local/lib/python2.7/site-packages/more_itertools/tests/test_more.py
/usr/local/lib/python2.7/site-packages/more_itertools/tests/test_more.pyc
/usr/local/lib/python2.7/site-packages/more_itertools/tests/test_more.pyo
/usr/local/lib/python2.7/site-packages/more_itertools/tests/test_recipes.py
/usr/local/lib/python2.7/site-packages/more_itertools/tests/test_recipes.pyc
/usr/local/lib/python2.7/site-packages/more_itertools/tests/test_recipes.pyo

===>  Done.
===>   py27-pytest-3.6.4 depends on package: py27-more-itertools>=4.0.0 - found
===>   Returning to build of py27-pytest-3.6.4
===>   py27-pytest-3.6.4 depends on package: py27-pluggy>=0.5 - not found
===>  Installing /magus/packages/All/py27-pluggy-0.6.0.mport
===>   py27-pluggy-0.6.0 depends on package: py27-setuptools>0 - found
===>   py27-pluggy-0.6.0 depends on file: /usr/local/bin/python2.7 - found
Installing py27-pluggy-0.6.0
/usr/local/share/licenses/py27-pluggy-0.6.0/catalog.mk
/usr/local/share/licenses/py27-pluggy-0.6.0/LICENSE
/usr/local/share/licenses/py27-pluggy-0.6.0/mit
/usr/local/lib/python2.7/site-packages/pluggy-0.6.0-py2.7.egg-info/PKG-INFO
/usr/local/lib/python2.7/site-packages/pluggy-0.6.0-py2.7.egg-info/SOURCES.txt
/usr/local/lib/python2.7/site-packages/pluggy-0.6.0-py2.7.egg-info/dependency_links.txt
/usr/local/lib/python2.7/site-packages/pluggy-0.6.0-py2.7.egg-info/top_level.txt
/usr/local/lib/python2.7/site-packages/pluggy/__init__.py
/usr/local/lib/python2.7/site-packages/pluggy/__init__.pyc
/usr/local/lib/python2.7/site-packages/pluggy/__init__.pyo
/usr/local/lib/python2.7/site-packages/pluggy/callers.py
/usr/local/lib/python2.7/site-packages/pluggy/callers.pyc
/usr/local/lib/python2.7/site-packages/pluggy/callers.pyo

===>  Done.
===>   py27-pytest-3.6.4 depends on package: py27-pluggy>=0.5 - found
===>   Returning to build of py27-pytest-3.6.4
===>   py27-pytest-3.6.4 depends on package: py27-py>=1.5.0 - not found
===>  Installing /magus/packages/All/py27-py-1.7.0.mport
===>   py27-py-1.7.0 depends on package: py27-setuptools>0 - found
===>   py27-py-1.7.0 depends on file: /usr/local/bin/python2.7 - found
Installing py27-py-1.7.0
/usr/local/share/licenses/py27-py-1.7.0/catalog.mk
/usr/local/share/licenses/py27-py-1.7.0/LICENSE
/usr/local/share/licenses/py27-py-1.7.0/mit
/usr/local/lib/python2.7/site-packages/py-1.7.0-py2.7.egg-info/PKG-INFO
/usr/local/lib/python2.7/site-packages/py-1.7.0-py2.7.egg-info/SOURCES.txt
/usr/local/lib/python2.7/site-packages/py-1.7.0-py2.7.egg-info/dependency_links.txt
/usr/local/lib/python2.7/site-packages/py-1.7.0-py2.7.egg-info/not-zip-safe
/usr/local/lib/python2.7/site-packages/py-1.7.0-py2.7.egg-info/top_level.txt
/usr/local/lib/python2.7/site-packages/py/__init__.py
/usr/local/lib/python2.7/site-packages/py/__init__.pyc
/usr/local/lib/python2.7/site-packages/py/__init__.pyo
/usr/local/lib/python2.7/site-packages/py/__metainfo.py
/usr/local/lib/python2.7/site-packages/py/__metainfo.pyc
/usr/local/lib/python2.7/site-packages/py/__metainfo.pyo
/usr/local/lib/python2.7/site-packages/py/_builtin.py
/usr/local/lib/python2.7/site-packages/py/_builtin.pyc
/usr/local/lib/python2.7/site-packages/py/_builtin.pyo
/usr/local/lib/python2.7/site-packages/py/_code/__init__.py
/usr/local/lib/python2.7/site-packages/py/_code/__init__.pyc
/usr/local/lib/python2.7/site-packages/py/_code/__init__.pyo
/usr/local/lib/python2.7/site-packages/py/_code/_assertionnew.py
/usr/local/lib/python2.7/site-packages/py/_code/_assertionnew.pyc
/usr/local/lib/python2.7/site-packages/py/_code/_assertionnew.pyo
/usr/local/lib/python2.7/site-packages/py/_code/_assertionold.py
/usr/local/lib/python2.7/site-packages/py/_code/_assertionold.pyc
/usr/local/lib/python2.7/site-packages/py/_code/_assertionold.pyo
/usr/local/lib/python2.7/site-packages/py/_code/_py2traceback.py
/usr/local/lib/python2.7/site-packages/py/_code/_py2traceback.pyc
/usr/local/lib/python2.7/site-packages/py/_code/_py2traceback.pyo
/usr/local/lib/python2.7/site-packages/py/_code/assertion.py
/usr/local/lib/python2.7/site-packages/py/_code/assertion.pyc
/usr/local/lib/python2.7/site-packages/py/_code/assertion.pyo
/usr/local/lib/python2.7/site-packages/py/_code/code.py
/usr/local/lib/python2.7/site-packages/py/_code/code.pyc
/usr/local/lib/python2.7/site-packages/py/_code/code.pyo
/usr/local/lib/python2.7/site-packages/py/_code/source.py
/usr/local/lib/python2.7/site-packages/py/_code/source.pyc
/usr/local/lib/python2.7/site-packages/py/_code/source.pyo
/usr/local/lib/python2.7/site-packages/py/_error.py
/usr/local/lib/python2.7/site-packages/py/_error.pyc
/usr/local/lib/python2.7/site-packages/py/_error.pyo
/usr/local/lib/python2.7/site-packages/py/_io/__init__.py
/usr/local/lib/python2.7/site-packages/py/_io/__init__.pyc
/usr/local/lib/python2.7/site-packages/py/_io/__init__.pyo
/usr/local/lib/python2.7/site-packages/py/_io/capture.py
/usr/local/lib/python2.7/site-packages/py/_io/capture.pyc
/usr/local/lib/python2.7/site-packages/py/_io/capture.pyo
/usr/local/lib/python2.7/site-packages/py/_io/saferepr.py
/usr/local/lib/python2.7/site-packages/py/_io/saferepr.pyc
/usr/local/lib/python2.7/site-packages/py/_io/saferepr.pyo
/usr/local/lib/python2.7/site-packages/py/_io/terminalwriter.py
/usr/local/lib/python2.7/site-packages/py/_io/terminalwriter.pyc
/usr/local/lib/python2.7/site-packages/py/_io/terminalwriter.pyo
/usr/local/lib/python2.7/site-packages/py/_log/__init__.py
/usr/local/lib/python2.7/site-packages/py/_log/__init__.pyc
/usr/local/lib/python2.7/site-packages/py/_log/__init__.pyo
/usr/local/lib/python2.7/site-packages/py/_log/log.py
/usr/local/lib/python2.7/site-packages/py/_log/log.pyc
/usr/local/lib/python2.7/site-packages/py/_log/log.pyo
/usr/local/lib/python2.7/site-packages/py/_log/warning.py
/usr/local/lib/python2.7/site-packages/py/_log/warning.pyc
/usr/local/lib/python2.7/site-packages/py/_log/warning.pyo
/usr/local/lib/python2.7/site-packages/py/_path/__init__.py
/usr/local/lib/python2.7/site-packages/py/_path/__init__.pyc
/usr/local/lib/python2.7/site-packages/py/_path/__init__.pyo
/usr/local/lib/python2.7/site-packages/py/_path/cacheutil.py
/usr/local/lib/python2.7/site-packages/py/_path/cacheutil.pyc
/usr/local/lib/python2.7/site-packages/py/_path/cacheutil.pyo
/usr/local/lib/python2.7/site-packages/py/_path/common.py
/usr/local/lib/python2.7/site-packages/py/_path/common.pyc
/usr/local/lib/python2.7/site-packages/py/_path/common.pyo
/usr/local/lib/python2.7/site-packages/py/_path/local.py
/usr/local/lib/python2.7/site-packages/py/_path/local.pyc
/usr/local/lib/python2.7/site-packages/py/_path/local.pyo
/usr/local/lib/python2.7/site-packages/py/_path/svnurl.py
/usr/local/lib/python2.7/site-packages/py/_path/svnurl.pyc
/usr/local/lib/python2.7/site-packages/py/_path/svnurl.pyo
/usr/local/lib/python2.7/site-packages/py/_path/svnwc.py
/usr/local/lib/python2.7/site-packages/py/_path/svnwc.pyc
/usr/local/lib/python2.7/site-packages/py/_path/svnwc.pyo
/usr/local/lib/python2.7/site-packages/py/_process/__init__.py
/usr/local/lib/python2.7/site-packages/py/_process/__init__.pyc
/usr/local/lib/python2.7/site-packages/py/_process/__init__.pyo
/usr/local/lib/python2.7/site-packages/py/_process/cmdexec.py
/usr/local/lib/python2.7/site-packages/py/_process/cmdexec.pyc
/usr/local/lib/python2.7/site-packages/py/_process/cmdexec.pyo
/usr/local/lib/python2.7/site-packages/py/_process/forkedfunc.py
/usr/local/lib/python2.7/site-packages/py/_process/forkedfunc.pyc
/usr/local/lib/python2.7/site-packages/py/_process/forkedfunc.pyo
/usr/local/lib/python2.7/site-packages/py/_process/killproc.py
/usr/local/lib/python2.7/site-packages/py/_process/killproc.pyc
/usr/local/lib/python2.7/site-packages/py/_process/killproc.pyo
/usr/local/lib/python2.7/site-packages/py/_std.py
/usr/local/lib/python2.7/site-packages/py/_std.pyc
/usr/local/lib/python2.7/site-packages/py/_std.pyo
/usr/local/lib/python2.7/site-packages/py/_vendored_packages/__init__.py
/usr/local/lib/python2.7/site-packages/py/_vendored_packages/__init__.pyc
/usr/local/lib/python2.7/site-packages/py/_vendored_packages/__init__.pyo
/usr/local/lib/python2.7/site-packages/py/_vendored_packages/apipkg.py
/usr/local/lib/python2.7/site-packages/py/_vendored_packages/apipkg.pyc
/usr/local/lib/python2.7/site-packages/py/_vendored_packages/apipkg.pyo
/usr/local/lib/python2.7/site-packages/py/_vendored_packages/iniconfig.py
/usr/local/lib/python2.7/site-packages/py/_vendored_packages/iniconfig.pyc
/usr/local/lib/python2.7/site-packages/py/_vendored_packages/iniconfig.pyo
/usr/local/lib/python2.7/site-packages/py/_version.py
/usr/local/lib/python2.7/site-packages/py/_version.pyc
/usr/local/lib/python2.7/site-packages/py/_version.pyo
/usr/local/lib/python2.7/site-packages/py/_xmlgen.py
/usr/local/lib/python2.7/site-packages/py/_xmlgen.pyc
/usr/local/lib/python2.7/site-packages/py/_xmlgen.pyo
/usr/local/lib/python2.7/site-packages/py/test.py
/usr/local/lib/python2.7/site-packages/py/test.pyc
/usr/local/lib/python2.7/site-packages/py/test.pyo

===>  Done.
===>   py27-pytest-3.6.4 depends on package: py27-py>=1.5.0 - found
===>   Returning to build of py27-pytest-3.6.4
===>   py27-pytest-3.6.4 depends on package: py27-six>=1.10.0 - found
===>   py27-pytest-3.6.4 depends on package: py27-setuptools>0 - found
===>   py27-pytest-3.6.4 depends on file: /usr/local/bin/python2.7 - found
===>   py27-pytest-3.6.4 depends on package: py27-funcsigs>=0 - not found
===>  Installing /magus/packages/All/py27-funcsigs-1.0.2.mport
===>   py27-funcsigs-1.0.2 depends on package: py27-setuptools>0 - found
===>   py27-funcsigs-1.0.2 depends on file: /usr/local/bin/python2.7 - found
Installing py27-funcsigs-1.0.2
/usr/local/share/licenses/py27-funcsigs-1.0.2/catalog.mk
/usr/local/share/licenses/py27-funcsigs-1.0.2/LICENSE
/usr/local/share/licenses/py27-funcsigs-1.0.2/apache2
/usr/local/lib/python2.7/site-packages/funcsigs-1.0.2-py2.7.egg-info/PKG-INFO
/usr/local/lib/python2.7/site-packages/funcsigs-1.0.2-py2.7.egg-info/SOURCES.txt
/usr/local/lib/python2.7/site-packages/funcsigs-1.0.2-py2.7.egg-info/dependency_links.txt
/usr/local/lib/python2.7/site-packages/funcsigs-1.0.2-py2.7.egg-info/not-zip-safe
/usr/local/lib/python2.7/site-packages/funcsigs-1.0.2-py2.7.egg-info/pbr.json
/usr/local/lib/python2.7/site-packages/funcsigs-1.0.2-py2.7.egg-info/requires.txt
/usr/local/lib/python2.7/site-packages/funcsigs-1.0.2-py2.7.egg-info/top_level.txt
/usr/local/lib/python2.7/site-packages/funcsigs/__init__.py
/usr/local/lib/python2.7/site-packages/funcsigs/__init__.pyc
/usr/local/lib/python2.7/site-packages/funcsigs/__init__.pyo
/usr/local/lib/python2.7/site-packages/funcsigs/version.py
/usr/local/lib/python2.7/site-packages/funcsigs/version.pyc
/usr/local/lib/python2.7/site-packages/funcsigs/version.pyo

===>  Done.
===>   py27-pytest-3.6.4 depends on package: py27-funcsigs>=0 - found
===>   Returning to build of py27-pytest-3.6.4
Installing py27-pytest-3.6.4
/usr/local/share/licenses/py27-pytest-3.6.4/catalog.mk
/usr/local/share/licenses/py27-pytest-3.6.4/LICENSE
/usr/local/share/licenses/py27-pytest-3.6.4/mit
/usr/local/bin/py.test-2.7
/usr/local/bin/pytest-2.7
/usr/local/lib/python2.7/site-packages/_pytest/__init__.py
/usr/local/lib/python2.7/site-packages/_pytest/__init__.pyc
/usr/local/lib/python2.7/site-packages/_pytest/__init__.pyo
/usr/local/lib/python2.7/site-packages/_pytest/_argcomplete.py
/usr/local/lib/python2.7/site-packages/_pytest/_argcomplete.pyc
/usr/local/lib/python2.7/site-packages/_pytest/_argcomplete.pyo
/usr/local/lib/python2.7/site-packages/_pytest/_code/__init__.py
/usr/local/lib/python2.7/site-packages/_pytest/_code/__init__.pyc
/usr/local/lib/python2.7/site-packages/_pytest/_code/__init__.pyo
/usr/local/lib/python2.7/site-packages/_pytest/_code/_py2traceback.py
/usr/local/lib/python2.7/site-packages/_pytest/_code/_py2traceback.pyc
/usr/local/lib/python2.7/site-packages/_pytest/_code/_py2traceback.pyo
/usr/local/lib/python2.7/site-packages/_pytest/_code/code.py
/usr/local/lib/python2.7/site-packages/_pytest/_code/code.pyc
/usr/local/lib/python2.7/site-packages/_pytest/_code/code.pyo
/usr/local/lib/python2.7/site-packages/_pytest/_code/source.py
/usr/local/lib/python2.7/site-packages/_pytest/_code/source.pyc
/usr/local/lib/python2.7/site-packages/_pytest/_code/source.pyo
/usr/local/lib/python2.7/site-packages/_pytest/_version.py
/usr/local/lib/python2.7/site-packages/_pytest/_version.pyc
/usr/local/lib/python2.7/site-packages/_pytest/_version.pyo
/usr/local/lib/python2.7/site-packages/_pytest/assertion/__init__.py
/usr/local/lib/python2.7/site-packages/_pytest/assertion/__init__.pyc
/usr/local/lib/python2.7/site-packages/_pytest/assertion/__init__.pyo
/usr/local/lib/python2.7/site-packages/_pytest/assertion/rewrite.py
/usr/local/lib/python2.7/site-packages/_pytest/assertion/rewrite.pyc
/usr/local/lib/python2.7/site-packages/_pytest/assertion/rewrite.pyo
/usr/local/lib/python2.7/site-packages/_pytest/assertion/truncate.py
/usr/local/lib/python2.7/site-packages/_pytest/assertion/truncate.pyc
/usr/local/lib/python2.7/site-packages/_pytest/assertion/truncate.pyo
/usr/local/lib/python2.7/site-packages/_pytest/assertion/util.py
/usr/local/lib/python2.7/site-packages/_pytest/assertion/util.pyc
/usr/local/lib/python2.7/site-packages/_pytest/assertion/util.pyo
/usr/local/lib/python2.7/site-packages/_pytest/cacheprovider.py
/usr/local/lib/python2.7/site-packages/_pytest/cacheprovider.pyc
/usr/local/lib/python2.7/site-packages/_pytest/cacheprovider.pyo
/usr/local/lib/python2.7/site-packages/_pytest/capture.py
/usr/local/lib/python2.7/site-packages/_pytest/capture.pyc
/usr/local/lib/python2.7/site-packages/_pytest/capture.pyo
/usr/local/lib/python2.7/site-packages/_pytest/compat.py
/usr/local/lib/python2.7/site-packages/_pytest/compat.pyc
/usr/local/lib/python2.7/site-packages/_pytest/compat.pyo
/usr/local/lib/python2.7/site-packages/_pytest/config/__init__.py
/usr/local/lib/python2.7/site-packages/_pytest/config/__init__.pyc
/usr/local/lib/python2.7/site-packages/_pytest/config/__init__.pyo
/usr/local/lib/python2.7/site-packages/_pytest/config/argparsing.py
/usr/local/lib/python2.7/site-packages/_pytest/config/argparsing.pyc
/usr/local/lib/python2.7/site-packages/_pytest/config/argparsing.pyo
/usr/local/lib/python2.7/site-packages/_pytest/config/exceptions.py
/usr/local/lib/python2.7/site-packages/_pytest/config/exceptions.pyc
/usr/local/lib/python2.7/site-packages/_pytest/config/exceptions.pyo
/usr/local/lib/python2.7/site-packages/_pytest/config/findpaths.py
/usr/local/lib/python2.7/site-packages/_pytest/config/findpaths.pyc
/usr/local/lib/python2.7/site-packages/_pytest/config/findpaths.pyo
/usr/local/lib/python2.7/site-packages/_pytest/debugging.py
/usr/local/lib/python2.7/site-packages/_pytest/debugging.pyc
/usr/local/lib/python2.7/site-packages/_pytest/debugging.pyo
/usr/local/lib/python2.7/site-packages/_pytest/deprecated.py
/usr/local/lib/python2.7/site-packages/_pytest/deprecated.pyc
/usr/local/lib/python2.7/site-packages/_pytest/deprecated.pyo
/usr/local/lib/python2.7/site-packages/_pytest/doctest.py
/usr/local/lib/python2.7/site-packages/_pytest/doctest.pyc
/usr/local/lib/python2.7/site-packages/_pytest/doctest.pyo
/usr/local/lib/python2.7/site-packages/_pytest/fixtures.py
/usr/local/lib/python2.7/site-packages/_pytest/fixtures.pyc
/usr/local/lib/python2.7/site-packages/_pytest/fixtures.pyo
/usr/local/lib/python2.7/site-packages/_pytest/freeze_support.py
/usr/local/lib/python2.7/site-packages/_pytest/freeze_support.pyc
/usr/local/lib/python2.7/site-packages/_pytest/freeze_support.pyo
/usr/local/lib/python2.7/site-packages/_pytest/helpconfig.py
/usr/local/lib/python2.7/site-packages/_pytest/helpconfig.pyc
/usr/local/lib/python2.7/site-packages/_pytest/helpconfig.pyo
/usr/local/lib/python2.7/site-packages/_pytest/hookspec.py
/usr/local/lib/python2.7/site-packages/_pytest/hookspec.pyc
/usr/local/lib/python2.7/site-packages/_pytest/hookspec.pyo
/usr/local/lib/python2.7/site-packages/_pytest/junitxml.py
/usr/local/lib/python2.7/site-packages/_pytest/junitxml.pyc
/usr/local/lib/python2.7/site-packages/_pytest/junitxml.pyo
/usr/local/lib/python2.7/site-packages/_pytest/logging.py
/usr/local/lib/python2.7/site-packages/_pytest/logging.pyc
/usr/local/lib/python2.7/site-packages/_pytest/logging.pyo
/usr/local/lib/python2.7/site-packages/_pytest/main.py
/usr/local/lib/python2.7/site-packages/_pytest/main.pyc
/usr/local/lib/python2.7/site-packages/_pytest/main.pyo
/usr/local/lib/python2.7/site-packages/_pytest/mark/__init__.py
/usr/local/lib/python2.7/site-packages/_pytest/mark/__init__.pyc
/usr/local/lib/python2.7/site-packages/_pytest/mark/__init__.pyo
/usr/local/lib/python2.7/site-packages/_pytest/mark/evaluate.py
/usr/local/lib/python2.7/site-packages/_pytest/mark/evaluate.pyc
/usr/local/lib/python2.7/site-packages/_pytest/mark/evaluate.pyo
/usr/local/lib/python2.7/site-packages/_pytest/mark/legacy.py
/usr/local/lib/python2.7/site-packages/_pytest/mark/legacy.pyc
/usr/local/lib/python2.7/site-packages/_pytest/mark/legacy.pyo
/usr/local/lib/python2.7/site-packages/_pytest/mark/structures.py
/usr/local/lib/python2.7/site-packages/_pytest/mark/structures.pyc
/usr/local/lib/python2.7/site-packages/_pytest/mark/structures.pyo
/usr/local/lib/python2.7/site-packages/_pytest/monkeypatch.py
/usr/local/lib/python2.7/site-packages/_pytest/monkeypatch.pyc
/usr/local/lib/python2.7/site-packages/_pytest/monkeypatch.pyo
/usr/local/lib/python2.7/site-packages/_pytest/nodes.py
/usr/local/lib/python2.7/site-packages/_pytest/nodes.pyc
/usr/local/lib/python2.7/site-packages/_pytest/nodes.pyo
/usr/local/lib/python2.7/site-packages/_pytest/nose.py
/usr/local/lib/python2.7/site-packages/_pytest/nose.pyc
/usr/local/lib/python2.7/site-packages/_pytest/nose.pyo
/usr/local/lib/python2.7/site-packages/_pytest/outcomes.py
/usr/local/lib/python2.7/site-packages/_pytest/outcomes.pyc
/usr/local/lib/python2.7/site-packages/_pytest/outcomes.pyo
/usr/local/lib/python2.7/site-packages/_pytest/pastebin.py
/usr/local/lib/python2.7/site-packages/_pytest/pastebin.pyc
/usr/local/lib/python2.7/site-packages/_pytest/pastebin.pyo
/usr/local/lib/python2.7/site-packages/_pytest/pytester.py
/usr/local/lib/python2.7/site-packages/_pytest/pytester.pyc
/usr/local/lib/python2.7/site-packages/_pytest/pytester.pyo
/usr/local/lib/python2.7/site-packages/_pytest/python.py
/usr/local/lib/python2.7/site-packages/_pytest/python.pyc
/usr/local/lib/python2.7/site-packages/_pytest/python.pyo
/usr/local/lib/python2.7/site-packages/_pytest/python_api.py
/usr/local/lib/python2.7/site-packages/_pytest/python_api.pyc
/usr/local/lib/python2.7/site-packages/_pytest/python_api.pyo
/usr/local/lib/python2.7/site-packages/_pytest/recwarn.py
/usr/local/lib/python2.7/site-packages/_pytest/recwarn.pyc
/usr/local/lib/python2.7/site-packages/_pytest/recwarn.pyo
/usr/local/lib/python2.7/site-packages/_pytest/resultlog.py
/usr/local/lib/python2.7/site-packages/_pytest/resultlog.pyc
/usr/local/lib/python2.7/site-packages/_pytest/resultlog.pyo
/usr/local/lib/python2.7/site-packages/_pytest/runner.py
/usr/local/lib/python2.7/site-packages/_pytest/runner.pyc
/usr/local/lib/python2.7/site-packages/_pytest/runner.pyo
/usr/local/lib/python2.7/site-packages/_pytest/setuponly.py
/usr/local/lib/python2.7/site-packages/_pytest/setuponly.pyc
/usr/local/lib/python2.7/site-packages/_pytest/setuponly.pyo
/usr/local/lib/python2.7/site-packages/_pytest/setupplan.py
/usr/local/lib/python2.7/site-packages/_pytest/setupplan.pyc
/usr/local/lib/python2.7/site-packages/_pytest/setupplan.pyo
/usr/local/lib/python2.7/site-packages/_pytest/skipping.py
/usr/local/lib/python2.7/site-packages/_pytest/skipping.pyc
/usr/local/lib/python2.7/site-packages/_pytest/skipping.pyo
/usr/local/lib/python2.7/site-packages/_pytest/terminal.py
/usr/local/lib/python2.7/site-packages/_pytest/terminal.pyc
/usr/local/lib/python2.7/site-packages/_pytest/terminal.pyo
/usr/local/lib/python2.7/site-packages/_pytest/tmpdir.py
/usr/local/lib/python2.7/site-packages/_pytest/tmpdir.pyc
/usr/local/lib/python2.7/site-packages/_pytest/tmpdir.pyo
/usr/local/lib/python2.7/site-packages/_pytest/unittest.py
/usr/local/lib/python2.7/site-packages/_pytest/unittest.pyc
/usr/local/lib/python2.7/site-packages/_pytest/unittest.pyo
/usr/local/lib/python2.7/site-packages/_pytest/warnings.py
/usr/local/lib/python2.7/site-packages/_pytest/warnings.pyc
/usr/local/lib/python2.7/site-packages/_pytest/warnings.pyo
/usr/local/lib/python2.7/site-packages/pytest-3.6.4-py2.7.egg-info/PKG-INFO
/usr/local/lib/python2.7/site-packages/pytest-3.6.4-py2.7.egg-info/SOURCES.txt
/usr/local/lib/python2.7/site-packages/pytest-3.6.4-py2.7.egg-info/dependency_links.txt
/usr/local/lib/python2.7/site-packages/pytest-3.6.4-py2.7.egg-info/entry_points.txt
/usr/local/lib/python2.7/site-packages/pytest-3.6.4-py2.7.egg-info/not-zip-safe
/usr/local/lib/python2.7/site-packages/pytest-3.6.4-py2.7.egg-info/requires.txt
/usr/local/lib/python2.7/site-packages/pytest-3.6.4-py2.7.egg-info/top_level.txt
/usr/local/lib/python2.7/site-packages/pytest.py
/usr/local/lib/python2.7/site-packages/pytest.pyc
/usr/local/lib/python2.7/site-packages/pytest.pyo

===>  Done.
===>   py27-cffi-1.13.2_1 depends on package: py27-pytest>0 - found
===>   Returning to build of py27-cffi-1.13.2_1
===>   py27-cffi-1.13.2_1 depends on file: /usr/local/bin/python2.7 - found
warning: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Wunknown-warning-option]
1 warning generated.
warning: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Wunknown-warning-option]
1 warning generated.
running build_ext
copying build/lib.midnightbsd-1.2-amd64-2.7/_cffi_backend.so -> 
============================= test session starts ==============================
platform midnightbsd1 -- Python 2.7.17, pytest-3.6.4, py-1.7.0, pluggy-0.6.0
rootdir: /magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2, inifile:
collected 2018 items

c/test_c.py ............................................................ [  2%]
....................sss................................................. [  6%]
...........s.......................s.................................... [ 10%]
....................                                                     [ 11%]
testing/cffi0/test_cdata.py .                                            [ 11%]
testing/cffi0/test_ctypes.py ..................s...............s.s.s.... [ 13%]
...s.........................sssssss..s..s.............................. [ 16%]
...............ssssssss.                                                 [ 18%]
testing/cffi0/test_ffi_backend.py ...................................... [ 19%]
.............................................s...s...................... [ 23%]
............................................ssss..s..s...........ss..... [ 27%]
...........s.s...s...................                                    [ 28%]
testing/cffi0/test_function.py ......ssss..s..s...s..ss..sss..s          [ 30%]
testing/cffi0/test_model.py .............                                [ 31%]
testing/cffi0/test_ownlib.py ..ss...sss                                  [ 31%]
testing/cffi0/test_parsing.py ......................s..........          [ 33%]
testing/cffi0/test_platform.py ....                                      [ 33%]
testing/cffi0/test_unicode_literals.py ............                      [ 34%]
testing/cffi0/test_verify.py F..FFFFFFFFFFFFFF.FFFFFFFsFFFFFsFFFFFFF.FFF [ 36%]
FFFFF.FFFFFFFFF.FFFFFFFFFFFFFFF.FFFFFFFFFFFF.FFFFFFF.FF.FFFFFFFFFFFFFF.F [ 39%]
.FFsFFF.F.FFFFFFFFFFFFFFF.FFFFsF.FsFFFFFF.FFFFFsssF                      [ 42%]
testing/cffi0/test_verify2.py F..FFFFFFFFFFFFFF.FFFFFFFsFFFFFsFFFFFFF.FF [ 44%]
FFFFFF.FFFFFFFFF.FFFFFFFFFFFFFFF.FFFFFFFFFFFF.FFFFFFF.FF.FFFFFFFFFFFFFF. [ 47%]
F.FFsFFF.F.FFFFFFFFFFFFFFF.FFFFsF.FsFFFFFF.FFFFFsssF                     [ 50%]
testing/cffi0/test_version.py ......                                     [ 50%]
testing/cffi0/test_vgen.py F..FFFFFFFFFFFFFF.FFFFFFFsFFFFFsFFFFFFF.FFFFF [ 53%]
FFF.FFFFFFFFF.FFFFFFFFFFFFFFF.FFFFFFFFFFFF.FFFFFFF.FF.FFFFFFFFFFFFFF.F.F [ 56%]
FsFFF.FFFFFFFFFFFFFFFFF.FFFFsF.FsFFFFFF.FFFFFsssF                        [ 59%]
testing/cffi0/test_vgen2.py F..FFFFFFFFFFFFFF.FFFFFFFsFFFFFsFFFFFFF.FFFF [ 61%]
FFFF.FFFFFFFFF.FFFFFFFFFFFFFFF.FFFFFFFFFFFF.FFFFFFF.FF.FFFFFFFFFFFFFF.F. [ 64%]
FFsFFF.FFFFFFFFFFFFFFFFF.FFFFsF.FsFFFFFF.FFFFFsssF                       [ 67%]
testing/cffi0/test_zdistutils.py ......................................  [ 69%]
testing/cffi0/test_zintegration.py sssssss.                              [ 69%]
testing/cffi1/test_cffi_binary.py s                                      [ 69%]
testing/cffi1/test_commontypes.py ...                                    [ 69%]
testing/cffi1/test_dlopen.py ...............                             [ 70%]
testing/cffi1/test_dlopen_unicode_literals.py ...............            [ 71%]
testing/cffi1/test_ffi_obj.py .............................s............ [ 73%]
.                                                                        [ 73%]
testing/cffi1/test_new_ffi_1.py ........................................ [ 75%]
.........................................s...s.......................... [ 78%]
...........                                                              [ 79%]
testing/cffi1/test_parse_c_type.py ..................                    [ 80%]
testing/cffi1/test_pkgconfig.py ...                                      [ 80%]
testing/cffi1/test_re_python.py ....................                     [ 81%]
testing/cffi1/test_realize_c_type.py .........                           [ 81%]
testing/cffi1/test_recompiler.py ....................................... [ 83%]
........................................................................ [ 87%]
.......................s...FFFF...........F.........                     [ 89%]
testing/cffi1/test_unicode_literals.py .......                           [ 90%]
testing/cffi1/test_verify1.py ..FFFFFFFFFFFFFF.FFFFFFFFFFFFsFFFFFFF.FFFF [ 92%]
FFFF.FFFFFFFFFFFFFFFFFFFFFFF.FFFFFFFFFFFFFFFFFFFF.FF.FFFFFFFFFsFFFFFxxxs [ 95%]
FFFxF.FFFFFFFFFFFFFFFFFFFFsF.FsFFF.sFFFssss                              [ 98%]
testing/cffi1/test_zdist.py .......................                      [ 99%]
testing/embedding/test_basic.py ....                                     [ 99%]
testing/embedding/test_performance.py .....                              [ 99%]
testing/embedding/test_recursive.py .                                    [ 99%]
testing/embedding/test_thread.py ....                                    [ 99%]
testing/embedding/test_tlocal.py .                                       [100%]

=================================== FAILURES ===================================
_______________________________ test_module_type _______________________________

    def test_module_type():
        import cffi.verifier
        ffi = FFI()
>       lib = ffi.verify()

testing/cffi0/test_verify.py:58: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_______________________________ test_simple_case _______________________________

    def test_simple_case():
        ffi = FFI()
        ffi.cdef("double sin(double x);")
>       lib = ffi.verify('#include ', libraries=lib_m)

testing/cffi0/test_verify.py:92: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
__________________________ test_Wconversion_unsigned ___________________________

    def test_Wconversion_unsigned():
        _Wconversion("unsigned foo(void);",
>                    "int foo(void) { return -1;}")

testing/cffi0/test_verify.py:111: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:104: in _Wconversion
    lib = ffi.verify(source, **kargs)
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
___________________________ test_Wconversion_integer ___________________________

    def test_Wconversion_integer():
        _Wconversion("short foo(void);",
>                    "long long foo(void) { return 1<
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
__________________________ test_Wconversion_floating ___________________________

    def test_Wconversion_floating():
        lib = _Wconversion("float sin(double);",
>                          "#include ", libraries=lib_m)

testing/cffi0/test_verify.py:119: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:104: in _Wconversion
    lib = ffi.verify(source, **kargs)
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
__________________________ test_Wconversion_float2int __________________________

    def test_Wconversion_float2int():
        _Wconversion("int sinf(float);",
>                    "#include ", libraries=lib_m)

testing/cffi0/test_verify.py:126: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:104: in _Wconversion
    lib = ffi.verify(source, **kargs)
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_________________________ test_Wconversion_double2int __________________________

    def test_Wconversion_double2int():
        _Wconversion("int sin(double);",
>                    "#include ", libraries=lib_m)

testing/cffi0/test_verify.py:130: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:104: in _Wconversion
    lib = ffi.verify(source, **kargs)
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_______________________________ test_rounding_1 ________________________________

    def test_rounding_1():
        ffi = FFI()
        ffi.cdef("double sinf(float x);")
>       lib = ffi.verify('#include ', libraries=lib_m)

testing/cffi0/test_verify.py:135: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_______________________________ test_rounding_2 ________________________________

    def test_rounding_2():
        ffi = FFI()
        ffi.cdef("double sin(float x);")
>       lib = ffi.verify('#include ', libraries=lib_m)

testing/cffi0/test_verify.py:143: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
______________________________ test_strlen_exact _______________________________

    def test_strlen_exact():
        ffi = FFI()
        ffi.cdef("size_t strlen(const char *s);")
>       lib = ffi.verify("#include ")

testing/cffi0/test_verify.py:151: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
___________________________ test_strlen_approximate ____________________________

    def test_strlen_approximate():
        lib = _Wconversion("int strlen(char *s);",
>                          "#include ")

testing/cffi0/test_verify.py:156: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:104: in _Wconversion
    lib = ffi.verify(source, **kargs)
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
___________________________ test_return_approximate ____________________________

    def test_return_approximate():
        for typename in ['short', 'int', 'long', 'long long']:
            ffi = FFI()
            ffi.cdef("%s foo(signed char x);" % typename)
>           lib = ffi.verify("signed char foo(signed char x) { return x;}")

testing/cffi0/test_verify.py:163: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
__________________________ test_strlen_array_of_char ___________________________

    def test_strlen_array_of_char():
        ffi = FFI()
        ffi.cdef("size_t strlen(char[]);")
>       lib = ffi.verify("#include ")

testing/cffi0/test_verify.py:170: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_______________________________ test_longdouble ________________________________

    def test_longdouble():
        ffi = FFI()
        ffi.cdef("long double sinl(long double x);")
>       lib = ffi.verify('#include ', libraries=lib_m)

testing/cffi0/test_verify.py:176: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
__________________________ test_longdouble_precision ___________________________

    def test_longdouble_precision():
        # Test that we don't loose any precision of 'long double' when
        # passing through Python and CFFI.
        ffi = FFI()
        ffi.cdef("long double step1(long double x);")
        SAME_SIZE = ffi.sizeof("long double") == ffi.sizeof("double")
        lib = ffi.verify("""
            long double step1(long double x)
            {
                return 4*x-x*x;
            }
>       """)

testing/cffi0/test_verify.py:195: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_______________________ test_all_integer_and_float_types _______________________

    def test_all_integer_and_float_types():
        typenames = []
        for typename in all_primitive_types:
            if (all_primitive_types[typename] == 'c' or
                all_primitive_types[typename] == 'j' or    # complex
                typename == '_Bool' or typename == 'long double'):
                pass
            else:
                typenames.append(typename)
        #
        ffi = FFI()
        ffi.cdef('\n'.join(["%s foo_%s(%s);" % (tp, tp.replace(' ', '_'), tp)
                           for tp in typenames]))
        lib = ffi.verify('\n'.join(["%s foo_%s(%s x) { return (%s)(x+1); }" %
                                    (tp, tp.replace(' ', '_'), tp, tp)
>                                   for tp in typenames]))

testing/cffi0/test_verify.py:266: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
________________________ test_var_signed_integer_types _________________________

    def test_var_signed_integer_types():
        ffi = FFI()
        lst = all_signed_integer_types(ffi)
        csource = "\n".join(["static %s somevar_%s;" % (tp, tp.replace(' ', '_'))
                             for tp in lst])
        ffi.cdef(csource)
>       lib = ffi.verify(csource)

testing/cffi0/test_verify.py:292: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_______________________ test_var_unsigned_integer_types ________________________

    def test_var_unsigned_integer_types():
        ffi = FFI()
        lst = all_unsigned_integer_types(ffi)
        csource = "\n".join(["static %s somevar_%s;" % (tp, tp.replace(' ', '_'))
                             for tp in lst])
        ffi.cdef(csource)
>       lib = ffi.verify(csource)

testing/cffi0/test_verify.py:311: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_________________________ test_fn_signed_integer_types _________________________

    def test_fn_signed_integer_types():
        ffi = FFI()
        lst = all_signed_integer_types(ffi)
        cdefsrc = "\n".join(["%s somefn_%s(%s);" % (tp, tp.replace(' ', '_'), tp)
                             for tp in lst])
        ffi.cdef(cdefsrc)
        verifysrc = "\n".join(["%s somefn_%s(%s x) { return x; }" %
                               (tp, tp.replace(' ', '_'), tp) for tp in lst])
>       lib = ffi.verify(verifysrc)

testing/cffi0/test_verify.py:334: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
________________________ test_fn_unsigned_integer_types ________________________

    def test_fn_unsigned_integer_types():
        ffi = FFI()
        lst = all_unsigned_integer_types(ffi)
        cdefsrc = "\n".join(["%s somefn_%s(%s);" % (tp, tp.replace(' ', '_'), tp)
                             for tp in lst])
        ffi.cdef(cdefsrc)
        verifysrc = "\n".join(["%s somefn_%s(%s x) { return x; }" %
                               (tp, tp.replace(' ', '_'), tp) for tp in lst])
>       lib = ffi.verify(verifysrc)

testing/cffi0/test_verify.py:354: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
________________________________ test_char_type ________________________________

    def test_char_type():
        ffi = FFI()
        ffi.cdef("char foo(char);")
>       lib = ffi.verify("char foo(char x) { return ++x; }")

testing/cffi0/test_verify.py:371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_______________________________ test_wchar_type ________________________________

    def test_wchar_type():
        ffi = FFI()
        if ffi.sizeof('wchar_t') == 2:
            uniexample1 = u+'\u1234'
            uniexample2 = u+'\u1235'
        else:
            uniexample1 = u+'\U00012345'
            uniexample2 = u+'\U00012346'
        #
        ffi.cdef("wchar_t foo(wchar_t);")
>       lib = ffi.verify("wchar_t foo(wchar_t x) { return x+1; }")

testing/cffi0/test_verify.py:386: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_______________________________ test_no_argument _______________________________

    def test_no_argument():
        ffi = FFI()
        ffi.cdef("int foo(void);")
>       lib = ffi.verify("int foo(void) { return 42; }")

testing/cffi0/test_verify.py:396: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
______________________________ test_two_arguments ______________________________

    def test_two_arguments():
        ffi = FFI()
        ffi.cdef("int foo(int, int);")
>       lib = ffi.verify("int foo(int a, int b) { return a - b; }")

testing/cffi0/test_verify.py:402: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
__________________________________ test_macro __________________________________

    def test_macro():
        ffi = FFI()
        ffi.cdef("int foo(int, int);")
>       lib = ffi.verify("#define foo(a, b) ((a) * (b))")

testing/cffi0/test_verify.py:408: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
___________________________________ test_ptr ___________________________________

    def test_ptr():
        ffi = FFI()
        ffi.cdef("int *foo(int *);")
>       lib = ffi.verify("int *foo(int *a) { return a; }")

testing/cffi0/test_verify.py:414: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
________________________________ test_bogus_ptr ________________________________

    def test_bogus_ptr():
        ffi = FFI()
        ffi.cdef("int *foo(int *);")
>       lib = ffi.verify("int *foo(int *a) { return a; }")

testing/cffi0/test_verify.py:424: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_____________________________ test_nondecl_struct ______________________________

    def test_nondecl_struct():
        ffi = FFI()
        ffi.cdef("typedef struct foo_s foo_t; int bar(foo_t *);")
>       lib = ffi.verify("typedef struct foo_s foo_t;\n"
                         "int bar(foo_t *f) { (void)f; return 42; }\n")

testing/cffi0/test_verify.py:444: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_____________________________ test_ffi_full_struct _____________________________

    def test_ffi_full_struct():
        ffi = FFI()
        ffi.cdef("struct foo_s { char x; int y; long *z; };")
>       ffi.verify("struct foo_s { char x; int y; long *z; };")

testing/cffi0/test_verify.py:451: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
___________________________ test_ffi_nonfull_struct ____________________________

    def test_ffi_nonfull_struct():
        ffi = FFI()
        ffi.cdef("""
        struct foo_s {
           int x;
           ...;
        };
        """)
        py.test.raises(VerificationMissing, ffi.sizeof, 'struct foo_s')
        py.test.raises(VerificationMissing, ffi.offsetof, 'struct foo_s', 'x')
        py.test.raises(VerificationMissing, ffi.new, 'struct foo_s *')
        ffi.verify("""
        struct foo_s {
           int a, b, x, c, d, e;
        };
>       """)

testing/cffi0/test_verify.py:500: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
__________________________ test_ffi_nonfull_alignment __________________________

    def test_ffi_nonfull_alignment():
        ffi = FFI()
        ffi.cdef("struct foo_s { char x; ...; };")
>       ffi.verify("struct foo_s { int a, b; char x; };")

testing/cffi0/test_verify.py:507: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
________________________ test_struct_bad_sized_integer _________________________

    def test_struct_bad_sized_integer():
        for typename in ['int8_t', 'int16_t', 'int32_t', 'int64_t']:
            for real in ['int8_t', 'int16_t', 'int32_t', 'int64_t']:
>               _check_field_match(typename, real, "by_size")

testing/cffi0/test_verify.py:535: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

typename = 'int8_t', real = 'int8_t', expect_mismatch = False

    def _check_field_match(typename, real, expect_mismatch):
        ffi = FFI()
        testing_by_size = (expect_mismatch == 'by_size')
        if testing_by_size:
            expect_mismatch = ffi.sizeof(typename) != ffi.sizeof(real)
        ffi.cdef("struct foo_s { %s x; ...; };" % typename)
        try:
            ffi.verify("struct foo_s { %s x; };" % real)
        except VerificationError:
            if not expect_mismatch:
                if testing_by_size and typename != real:
                    print("ignoring mismatch between %s* and %s* even though "
                          "they have the same size" % (typename, real))
                    return
                raise AssertionError("unexpected mismatch: %s should be accepted "
>                                    "as equal to %s" % (typename, real))
E               AssertionError: unexpected mismatch: int8_t should be accepted as equal to int8_t

testing/cffi0/test_verify.py:526: AssertionError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_________________________ test_struct_bad_sized_float __________________________

    def test_struct_bad_sized_float():
        for typename in all_float_types:
            for real in all_float_types:
>               _check_field_match(typename, real, "by_size")

testing/cffi0/test_verify.py:540: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

typename = 'double', real = 'double', expect_mismatch = False

    def _check_field_match(typename, real, expect_mismatch):
        ffi = FFI()
        testing_by_size = (expect_mismatch == 'by_size')
        if testing_by_size:
            expect_mismatch = ffi.sizeof(typename) != ffi.sizeof(real)
        ffi.cdef("struct foo_s { %s x; ...; };" % typename)
        try:
            ffi.verify("struct foo_s { %s x; };" % real)
        except VerificationError:
            if not expect_mismatch:
                if testing_by_size and typename != real:
                    print("ignoring mismatch between %s* and %s* even though "
                          "they have the same size" % (typename, real))
                    return
                raise AssertionError("unexpected mismatch: %s should be accepted "
>                                    "as equal to %s" % (typename, real))
E               AssertionError: unexpected mismatch: double should be accepted as equal to double

testing/cffi0/test_verify.py:526: AssertionError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
________________________ test_struct_signedness_ignored ________________________

    def test_struct_signedness_ignored():
>       _check_field_match("int", "unsigned int", expect_mismatch=False)

testing/cffi0/test_verify.py:543: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

typename = 'int', real = 'unsigned int', expect_mismatch = False

    def _check_field_match(typename, real, expect_mismatch):
        ffi = FFI()
        testing_by_size = (expect_mismatch == 'by_size')
        if testing_by_size:
            expect_mismatch = ffi.sizeof(typename) != ffi.sizeof(real)
        ffi.cdef("struct foo_s { %s x; ...; };" % typename)
        try:
            ffi.verify("struct foo_s { %s x; };" % real)
        except VerificationError:
            if not expect_mismatch:
                if testing_by_size and typename != real:
                    print("ignoring mismatch between %s* and %s* even though "
                          "they have the same size" % (typename, real))
                    return
                raise AssertionError("unexpected mismatch: %s should be accepted "
>                                    "as equal to %s" % (typename, real))
E               AssertionError: unexpected mismatch: int should be accepted as equal to unsigned int

testing/cffi0/test_verify.py:526: AssertionError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
___________________________ test_struct_array_field ____________________________

    def test_struct_array_field():
        ffi = FFI()
        ffi.cdef("struct foo_s { int a[17]; ...; };")
>       ffi.verify("struct foo_s { int x; int a[17]; int y; };")

testing/cffi0/test_verify.py:560: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_________________________ test_struct_array_no_length __________________________

    def test_struct_array_no_length():
        ffi = FFI()
        ffi.cdef("struct foo_s { int a[]; int y; ...; };\n"
                 "int bar(struct foo_s *);\n")
>       lib = ffi.verify("struct foo_s { int x; int a[17]; int y; };\n"
                         "int bar(struct foo_s *f) { return f->a[14]; }\n")

testing/cffi0/test_verify.py:569: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
________________________ test_struct_array_guess_length ________________________

    def test_struct_array_guess_length():
        ffi = FFI()
        ffi.cdef("struct foo_s { int a[...]; };")
>       ffi.verify("struct foo_s { int x; int a[17]; int y; };")

testing/cffi0/test_verify.py:590: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
___________________________ test_struct_array_c99_1 ____________________________

    def test_struct_array_c99_1():
        if sys.platform == 'win32':
            py.test.skip("requires C99")
        ffi = FFI()
        ffi.cdef("struct foo_s { int x; int a[]; };")
>       ffi.verify("struct foo_s { int x; int a[]; };")

testing/cffi0/test_verify.py:602: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
___________________________ test_struct_array_c99_2 ____________________________

    def test_struct_array_c99_2():
        if sys.platform == 'win32':
            py.test.skip("requires C99")
        ffi = FFI()
        ffi.cdef("struct foo_s { int x; int a[]; ...; };")
>       ffi.verify("struct foo_s { int x, y; int a[]; };")

testing/cffi0/test_verify.py:625: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
________________________ test_struct_ptr_to_array_field ________________________

    def test_struct_ptr_to_array_field():
        ffi = FFI()
        ffi.cdef("struct foo_s { int (*a)[17]; ...; }; struct bar_s { ...; };")
>       ffi.verify("struct foo_s { int x; int (*a)[17]; int y; };\n"
                   "struct bar_s { int x; int *a; int y; };")

testing/cffi0/test_verify.py:641: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_______________________ test_struct_with_bitfield_exact ________________________

    def test_struct_with_bitfield_exact():
        ffi = FFI()
        ffi.cdef("struct foo_s { int a:2, b:3; };")
>       ffi.verify("struct foo_s { int a:2, b:3; };")

testing/cffi0/test_verify.py:650: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
________________________ test_struct_with_bitfield_enum ________________________

    def test_struct_with_bitfield_enum():
        ffi = FFI()
        code = """
            typedef enum { AA, BB, CC } foo_e;
            typedef struct { foo_e f:2; } foo_s;
        """
        ffi.cdef(code)
>       ffi.verify(code)

testing/cffi0/test_verify.py:664: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
____________________________ test_global_constants _____________________________

    def test_global_constants():
        ffi = FFI()
        # use 'static const int', as generally documented, although in this
        # case the 'static' is completely ignored.
        ffi.cdef("static const int AA, BB, CC, DD;")
>       lib = ffi.verify("#define AA 42\n"
                         "#define BB (-43)   // blah\n"
                         "#define CC (22*2)  /* foobar */\n"
                         "#define DD ((unsigned int)142)  /* foo\nbar */\n")

testing/cffi0/test_verify.py:679: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
__________________________ test_global_const_int_size __________________________

    def test_global_const_int_size():
        # integer constants: ignore the declared type, always just use the value
        for value in [-2**63, -2**31, -2**15,
                      2**15-1, 2**15, 2**31-1, 2**31, 2**32-1, 2**32,
                      2**63-1, 2**63, 2**64-1]:
            ffi = FFI()
            if value == int(ffi.cast("long long", value)):
                if value < 0:
                    vstr = '(-%dLL-1)' % (~value,)
                else:
                    vstr = '%dLL' % value
            elif value == int(ffi.cast("unsigned long long", value)):
                vstr = '%dULL' % value
            else:
                raise AssertionError(value)
            ffi.cdef("static const unsigned short AA;")
>           lib = ffi.verify("#define AA %s\n" % vstr)

testing/cffi0/test_verify.py:704: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
________________________ test_global_constants_non_int _________________________

    def test_global_constants_non_int():
        ffi = FFI()
        ffi.cdef("static char *const PP;")
>       lib = ffi.verify('static char *const PP = "testing!";\n')

testing/cffi0/test_verify.py:711: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
______________________________ test_nonfull_enum _______________________________

    def test_nonfull_enum():
        ffi = FFI()
        ffi.cdef("enum ee { EE1, EE2, EE3, ... \n \t };")
        py.test.raises(VerificationMissing, ffi.cast, 'enum ee', 'EE2')
>       ffi.verify("enum ee { EE1=10, EE2, EE3=-10, EE4 };")

testing/cffi0/test_verify.py:719: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
________________________________ test_full_enum ________________________________

    def test_full_enum():
        ffi = FFI()
        ffi.cdef("enum ee { EE1, EE2, EE3 };")
>       ffi.verify("enum ee { EE1, EE2, EE3 };")

testing/cffi0/test_verify.py:733: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_______________________________ test_enum_usage ________________________________

    def test_enum_usage():
        ffi = FFI()
        ffi.cdef("enum ee { EE1,EE2 }; typedef struct { enum ee x; } *sp;")
>       lib = ffi.verify("enum ee { EE1,EE2 }; typedef struct { enum ee x; } *sp;")

testing/cffi0/test_verify.py:745: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_____________________________ test_anonymous_enum ______________________________

    def test_anonymous_enum():
        ffi = FFI()
        ffi.cdef("enum { EE1 }; enum { EE2, EE3 };")
>       lib = ffi.verify("enum { EE1 }; enum { EE2, EE3 };")

testing/cffi0/test_verify.py:755: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_________________________ test_nonfull_anonymous_enum __________________________

    def test_nonfull_anonymous_enum():
        ffi = FFI()
        ffi.cdef("enum { EE1, ... }; enum { EE3, ... };")
>       lib = ffi.verify("enum { EE2, EE1 }; enum { EE3 };")

testing/cffi0/test_verify.py:763: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
__________________________ test_nonfull_enum_syntax2 ___________________________

    def test_nonfull_enum_syntax2():
        ffi = FFI()
        ffi.cdef("enum ee { EE1, EE2=\t..., EE3 };")
        py.test.raises(VerificationMissing, ffi.cast, 'enum ee', 'EE1')
>       ffi.verify("enum ee { EE1=10, EE2, EE3=-10, EE4 };")

testing/cffi0/test_verify.py:771: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
______________________________ test_get_set_errno ______________________________

    def test_get_set_errno():
        ffi = FFI()
        ffi.cdef("int foo(int);")
        lib = ffi.verify("""
            static int foo(int x)
            {
                errno += 1;
                return x * 7;
            }
>       """)

testing/cffi0/test_verify.py:801: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_______________________________ test_define_int ________________________________

    def test_define_int():
        ffi = FFI()
        ffi.cdef("#define FOO ...\n"
                 "\t#\tdefine\tBAR\t...\t\n"
                 "#define BAZ ...\n")
>       lib = ffi.verify("#define FOO 42\n"
                         "#define BAR (-44)\n"
                         "#define BAZ 0xffffffffffffffffULL\n")

testing/cffi0/test_verify.py:811: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_____________________________ test_access_variable _____________________________

    def test_access_variable():
        ffi = FFI()
        ffi.cdef("static int foo(void);\n"
                 "static int somenumber;")
        lib = ffi.verify("""
            static int somenumber = 2;
            static int foo(void) {
                return somenumber * 7;
            }
>       """)

testing/cffi0/test_verify.py:827: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_______________________ test_access_address_of_variable ________________________

    def test_access_address_of_variable():
        # access the address of 'somenumber': need a trick
        ffi = FFI()
        ffi.cdef("static int somenumber; static int *const somenumberptr;")
        lib = ffi.verify("""
            static int somenumber = 2;
            #define somenumberptr (&somenumber)
>       """)

testing/cffi0/test_verify.py:842: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
__________________________ test_access_array_variable __________________________

length = 5

    def test_access_array_variable(length=5):
        ffi = FFI()
        ffi.cdef("int foo(int);\n"
                 "static int somenumber[%s];" % (length,))
        lib = ffi.verify("""
            static int somenumber[] = {2, 2, 3, 4, 5};
            static int foo(int i) {
                return somenumber[i] * 7;
            }
>       """)

testing/cffi0/test_verify.py:857: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
___________________ test_access_array_variable_length_hidden ___________________

    def test_access_array_variable_length_hidden():
>       test_access_array_variable(length='')

testing/cffi0/test_verify.py:877: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:857: in test_access_array_variable
    """)
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_________________________ test_access_struct_variable __________________________

    def test_access_struct_variable():
        ffi = FFI()
        ffi.cdef("struct foo { int x; ...; };\n"
                 "int foo(int);\n"
                 "static struct foo stuff;")
        lib = ffi.verify("""
            struct foo { int x, y, z; };
            static struct foo stuff = {2, 5, 8};
            static int foo(int i) {
                switch (i) {
                case 0: return stuff.x * 7;
                case 1: return stuff.y * 7;
                case 2: return stuff.z * 7;
                }
                return -1;
            }
>       """)

testing/cffi0/test_verify.py:895: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_____________________________ test_access_callback _____________________________

    def test_access_callback():
        ffi = FFI()
        ffi.cdef("static int (*cb)(int);\n"
                 "static int foo(int);\n"
                 "static void reset_cb(void);")
        lib = ffi.verify("""
            static int g(int x) { return x * 7; }
            static int (*cb)(int);
            static int foo(int i) { return cb(i) - 1; }
            static void reset_cb(void) { cb = g; }
>       """)

testing/cffi0/test_verify.py:915: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
____________________ test_access_callback_function_typedef _____________________

    def test_access_callback_function_typedef():
        ffi = FFI()
        ffi.cdef("typedef int mycallback_t(int);\n"
                 "static mycallback_t *cb;\n"
                 "static int foo(int);\n"
                 "static void reset_cb(void);")
        lib = ffi.verify("""
            static int g(int x) { return x * 7; }
            static int (*cb)(int);
            static int foo(int i) { return cb(i) - 1; }
            static void reset_cb(void) { cb = g; }
>       """)

testing/cffi0/test_verify.py:933: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
__________________ test_ctypes_backend_forces_generic_engine ___________________

    def test_ctypes_backend_forces_generic_engine():
        from cffi.backend_ctypes import CTypesBackend
        ffi = FFI(backend=CTypesBackend())
        ffi.cdef("int func(int a);")
>       lib = ffi.verify("int func(int a) { return a * 42; }")

testing/cffi0/test_verify.py:944: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
__________________________ test_call_with_struct_ptr ___________________________

    def test_call_with_struct_ptr():
        ffi = FFI()
        ffi.cdef("typedef struct { int x; ...; } foo_t; int foo(foo_t *);")
        lib = ffi.verify("""
            typedef struct { int y, x; } foo_t;
            static int foo(foo_t *f) { return f->x * 7; }
>       """)

testing/cffi0/test_verify.py:955: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
______________________________ test_unknown_type _______________________________

    def test_unknown_type():
        ffi = FFI()
        ffi.cdef("""
            typedef ... token_t;
            int foo(token_t *);
            #define TOKEN_SIZE ...
        """)
        lib = ffi.verify("""
            typedef float token_t;
            static int foo(token_t *tk) {
                if (!tk)
                    return -42;
                *tk += 1.601f;
                return (int)*tk;
            }
            #define TOKEN_SIZE sizeof(token_t)
>       """)

testing/cffi0/test_verify.py:976: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_____________________________ test_unknown_type_2 ______________________________

    def test_unknown_type_2():
        ffi = FFI()
        ffi.cdef("typedef ... token_t;")
>       lib = ffi.verify("typedef struct token_s token_t;")

testing/cffi0/test_verify.py:989: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_____________________________ test_unknown_type_3 ______________________________

    def test_unknown_type_3():
        ffi = FFI()
        ffi.cdef("""
            typedef ... *token_p;
            token_p foo(token_p);
        """)
        lib = ffi.verify("""
            typedef struct _token_s *token_p;
            token_p foo(token_p arg) {
                if (arg)
                    return (token_p)0x12347;
                else
                    return (token_p)0x12345;
            }
>       """)

testing/cffi0/test_verify.py:1006: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_________________________________ test_varargs _________________________________

    def test_varargs():
        ffi = FFI()
        ffi.cdef("int foo(int x, ...);")
        lib = ffi.verify("""
            int foo(int x, ...) {
                va_list vargs;
                va_start(vargs, x);
                x -= va_arg(vargs, int);
                x -= va_arg(vargs, int);
                va_end(vargs);
                return x;
            }
>       """)

testing/cffi0/test_verify.py:1024: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_____________________________ test_varargs_struct ______________________________

    def test_varargs_struct():
        ffi = FFI()
        ffi.cdef("struct foo_s { char a; int b; }; int foo(int x, ...);")
        lib = ffi.verify("""
            struct foo_s {
                char a; int b;
            };
            int foo(int x, ...) {
                va_list vargs;
                struct foo_s s;
                va_start(vargs, x);
                s = va_arg(vargs, struct foo_s);
                va_end(vargs);
                return s.a - s.b;
            }
>       """)

testing/cffi0/test_verify.py:1053: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
______________________ test_autofilled_struct_as_argument ______________________

    def test_autofilled_struct_as_argument():
        ffi = FFI()
        ffi.cdef("struct foo_s { long a; double b; ...; };\n"
                 "int foo(struct foo_s);")
        lib = ffi.verify("""
            struct foo_s {
                double b;
                long a;
            };
            int foo(struct foo_s s) {
                return (int)s.a - (int)s.b;
            }
>       """)

testing/cffi0/test_verify.py:1069: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
__________________ test_autofilled_struct_as_argument_dynamic __________________

    def test_autofilled_struct_as_argument_dynamic():
        ffi = FFI()
        ffi.cdef("struct foo_s { long a; ...; };\n"
                 "static int (*foo)(struct foo_s);")
        lib = ffi.verify("""
            struct foo_s {
                double b;
                long a;
            };
            int foo1(struct foo_s s) {
                return (int)s.a - (int)s.b;
            }
            static int (*foo)(struct foo_s s) = &foo1;
>       """)

testing/cffi0/test_verify.py:1087: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
___________________________ test_func_returns_struct ___________________________

    def test_func_returns_struct():
        ffi = FFI()
        ffi.cdef("""
            struct foo_s { int aa, bb; };
            struct foo_s foo(int a, int b);
        """)
        lib = ffi.verify("""
            struct foo_s { int aa, bb; };
            struct foo_s foo(int a, int b) {
                struct foo_s r;
                r.aa = a*a;
                r.bb = b*b;
                return r;
            }
>       """)

testing/cffi0/test_verify.py:1112: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_____________________________ test_func_as_funcptr _____________________________

    def test_func_as_funcptr():
        ffi = FFI()
        ffi.cdef("int *(*const fooptr)(void);")
        lib = ffi.verify("""
            int *foo(void) {
                return (int*)"foobar";
            }
            int *(*fooptr)(void) = foo;
>       """)

testing/cffi0/test_verify.py:1126: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
___________________________ test_funcptr_as_argument ___________________________

    def test_funcptr_as_argument():
        ffi = FFI()
        ffi.cdef("""
            void qsort(void *base, size_t nel, size_t width,
                int (*compar)(const void *, const void *));
        """)
>       ffi.verify("#include ")

testing/cffi0/test_verify.py:1137: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
____________________________ test_func_as_argument _____________________________

    def test_func_as_argument():
        ffi = FFI()
        ffi.cdef("""
            void qsort(void *base, size_t nel, size_t width,
                int compar(const void *, const void *));
        """)
>       ffi.verify("#include ")

testing/cffi0/test_verify.py:1145: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
____________________________ test_array_as_argument ____________________________

    def test_array_as_argument():
        ffi = FFI()
        ffi.cdef("""
            size_t strlen(char string[]);
        """)
>       ffi.verify("#include ")

testing/cffi0/test_verify.py:1152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
____________________________ test_enum_as_argument _____________________________

    def test_enum_as_argument():
        ffi = FFI()
        ffi.cdef("""
            enum foo_e { AA, BB, ... };
            int foo_func(enum foo_e);
        """)
        lib = ffi.verify("""
            enum foo_e { AA, CC, BB };
            int foo_func(enum foo_e e) { return (int)e; }
>       """)

testing/cffi0/test_verify.py:1163: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_________________________ test_enum_as_function_result _________________________

    def test_enum_as_function_result():
        ffi = FFI()
        ffi.cdef("""
            enum foo_e { AA, BB, ... };
            enum foo_e foo_func(int x);
        """)
        lib = ffi.verify("""
            enum foo_e { AA, CC, BB };
            enum foo_e foo_func(int x) { return (enum foo_e)x; }
>       """)

testing/cffi0/test_verify.py:1176: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_______________________________ test_enum_values _______________________________

    def test_enum_values():
        ffi = FFI()
        ffi.cdef("enum enum1_e { AA, BB };")
>       lib = ffi.verify("enum enum1_e { AA, BB };")

testing/cffi0/test_verify.py:1182: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
__________________________ test_typedef_complete_enum __________________________

    def test_typedef_complete_enum():
        ffi = FFI()
        ffi.cdef("typedef enum { AA, BB } enum1_t;")
>       lib = ffi.verify("typedef enum { AA, BB } enum1_t;")

testing/cffi0/test_verify.py:1190: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_________________________ test_typedef_incomplete_enum _________________________

    def test_typedef_incomplete_enum():
        ffi = FFI()
        ffi.cdef("typedef enum { AA, BB, ... } enum1_t;")
>       lib = ffi.verify("typedef enum { AA, CC, BB } enum1_t;")

testing/cffi0/test_verify.py:1204: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
________________________ test_typedef_enum_as_argument _________________________

    def test_typedef_enum_as_argument():
        ffi = FFI()
        ffi.cdef("""
            typedef enum { AA, BB, ... } foo_t;
            int foo_func(foo_t);
        """)
        lib = ffi.verify("""
            typedef enum { AA, CC, BB } foo_t;
            int foo_func(foo_t e) { return (int)e; }
>       """)

testing/cffi0/test_verify.py:1219: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_____________________ test_typedef_enum_as_function_result _____________________

    def test_typedef_enum_as_function_result():
        ffi = FFI()
        ffi.cdef("""
            typedef enum { AA, BB, ... } foo_t;
            foo_t foo_func(int x);
        """)
        lib = ffi.verify("""
            typedef enum { AA, CC, BB } foo_t;
            foo_t foo_func(int x) { return (foo_t)x; }
>       """)

testing/cffi0/test_verify.py:1232: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
____________________________ test_function_typedef _____________________________

    def test_function_typedef():
        ffi = FFI()
        ffi.cdef("""
            typedef double func_t(double);
            func_t sin;
        """)
>       lib = ffi.verify('#include ', libraries=lib_m)

testing/cffi0/test_verify.py:1241: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
____________________ test_opaque_integer_as_function_result ____________________

    def test_opaque_integer_as_function_result():
        #import platform
        #if platform.machine().startswith('sparc'):
        #    py.test.skip('Breaks horribly on sparc (SIGILL + corrupted stack)')
        #elif platform.machine() == 'mips64' and sys.maxsize > 2**32:
        #    py.test.skip('Segfaults on mips64el')
        # XXX bad abuse of "struct { ...; }".  It only works a bit by chance
        # anyway.  XXX think about something better :-(
        ffi = FFI()
        ffi.cdef("""
            typedef struct { ...; } myhandle_t;
            myhandle_t foo(void);
        """)
        lib = ffi.verify("""
            typedef short myhandle_t;
            myhandle_t foo(void) { return 42; }
>       """)

testing/cffi0/test_verify.py:1260: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
__________________________ test_return_partial_struct __________________________

    def test_return_partial_struct():
        ffi = FFI()
        ffi.cdef("""
            typedef struct { int x; ...; } foo_t;
            foo_t foo(void);
        """)
        lib = ffi.verify("""
            typedef struct { int y, x; } foo_t;
            foo_t foo(void) { foo_t r = { 45, 81 }; return r; }
>       """)

testing/cffi0/test_verify.py:1273: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_____________________ test_take_and_return_partial_structs _____________________

    def test_take_and_return_partial_structs():
        ffi = FFI()
        ffi.cdef("""
            typedef struct { int x; ...; } foo_t;
            foo_t foo(foo_t, foo_t);
        """)
        lib = ffi.verify("""
            typedef struct { int y, x; } foo_t;
            foo_t foo(foo_t a, foo_t b) {
                foo_t r = { 100, a.x * 5 + b.x * 7 };
                return r;
            }
>       """)

testing/cffi0/test_verify.py:1290: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_______________________ test_dont_check_unnamable_fields _______________________

    def test_dont_check_unnamable_fields():
        ffi = FFI()
        ffi.cdef("struct foo_s { struct { int x; } someone; };")
>       ffi.verify("struct foo_s { struct { int x; } someone; };")

testing/cffi0/test_verify.py:1308: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
______________________ test_nested_anonymous_struct_exact ______________________

    def test_nested_anonymous_struct_exact():
        if sys.platform == 'win32':
            py.test.skip("nested anonymous struct/union")
        ffi = FFI()
        ffi.cdef("""
            struct foo_s { struct { int a; char b; }; union { char c, d; }; };
        """)
        ffi.verify("""
            struct foo_s { struct { int a; char b; }; union { char c, d; }; };
>       """)

testing/cffi0/test_verify.py:1320: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
____________________ test_nested_anonymous_struct_inexact_1 ____________________

    def test_nested_anonymous_struct_inexact_1():
        ffi = FFI()
        ffi.cdef("""
            struct foo_s { struct { char b; ...; }; union { char c, d; }; };
        """)
        ffi.verify("""
            struct foo_s { int a, padding; char c, d, b; };
>       """)

testing/cffi0/test_verify.py:1352: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
____________________ test_nested_anonymous_struct_inexact_2 ____________________

    def test_nested_anonymous_struct_inexact_2():
        ffi = FFI()
        ffi.cdef("""
            struct foo_s { union { char c, d; }; struct { int a; char b; }; ...; };
        """)
        ffi.verify("""
            struct foo_s { int a, padding; char c, d, b; };
>       """)

testing/cffi0/test_verify.py:1362: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
________________________________ test_ffi_union ________________________________

    def test_ffi_union():
        ffi = FFI()
        ffi.cdef("union foo_u { char x; long *z; };")
>       ffi.verify("union foo_u { char x; int y; long *z; };")

testing/cffi0/test_verify.py:1368: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
____________________________ test_ffi_union_partial ____________________________

    def test_ffi_union_partial():
        ffi = FFI()
        ffi.cdef("union foo_u { char x; ...; };")
>       ffi.verify("union foo_u { char x; int y; };")

testing/cffi0/test_verify.py:1373: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
______________________ test_ffi_union_with_partial_struct ______________________

    def test_ffi_union_with_partial_struct():
        ffi = FFI()
        ffi.cdef("struct foo_s { int x; ...; }; union foo_u { struct foo_s s; };")
>       ffi.verify("struct foo_s { int a; int x; }; "
                   "union foo_u { char b[32]; struct foo_s s; };")

testing/cffi0/test_verify.py:1379: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
___________________________ test_ffi_union_partial_2 ___________________________

    def test_ffi_union_partial_2():
        ffi = FFI()
        ffi.cdef("typedef union { char x; ...; } u1;")
>       ffi.verify("typedef union { char x; int y; } u1;")

testing/cffi0/test_verify.py:1387: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_____________________ test_ffi_union_with_partial_struct_2 _____________________

    def test_ffi_union_with_partial_struct_2():
        ffi = FFI()
        ffi.cdef("typedef struct { int x; ...; } s1;"
                 "typedef union { s1 s; } u1;")
>       ffi.verify("typedef struct { int a; int x; } s1; "
                   "typedef union { char b[32]; s1 s; } u1;")

testing/cffi0/test_verify.py:1394: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
____________________________ test_ffi_struct_packed ____________________________

    def test_ffi_struct_packed():
        if sys.platform == 'win32':
            py.test.skip("needs a GCC extension")
        ffi = FFI()
        ffi.cdef("struct foo_s { int b; ...; };")
        ffi.verify("""
            struct foo_s {
                char a;
                int b;
            } __attribute__((packed));
>       """)

testing/cffi0/test_verify.py:1410: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_________________________________ test_tmpdir __________________________________

    def test_tmpdir():
        import tempfile, os
        from testing.udir import udir
        tmpdir = tempfile.mkdtemp(dir=str(udir))
        ffi = FFI()
        ffi.cdef("int foo(int);")
>       lib = ffi.verify("int foo(int a) { return a + 42; }", tmpdir=tmpdir)

testing/cffi0/test_verify.py:1418: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/tmp/ffi-0/tmpIrfuUG'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_______________________________ test_relative_to _______________________________

    def test_relative_to():
        import tempfile, os
        from testing.udir import udir
        tmpdir = tempfile.mkdtemp(dir=str(udir))
        ffi = FFI()
        ffi.cdef("int foo(int);")
        f = open(os.path.join(tmpdir, 'foo.h'), 'w')
        f.write("int foo(int a) { return a + 42; }\n")
        f.close()
        lib = ffi.verify('#include "foo.h"',
                         include_dirs=['.'],
>                        relative_to=os.path.join(tmpdir, 'x'))

testing/cffi0/test_verify.py:1433: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
__________________________________ test_bug1 ___________________________________

    def test_bug1():
        ffi = FFI()
        ffi.cdef("""
            typedef struct tdlhandle_s { ...; } *tdl_handle_t;
            typedef struct my_error_code_ {
                tdl_handle_t *rh;
            } my_error_code_t;
        """)
        ffi.verify("""
            typedef struct tdlhandle_s { int foo; } *tdl_handle_t;
            typedef struct my_error_code_ {
                tdl_handle_t *rh;
            } my_error_code_t;
>       """)

testing/cffi0/test_verify.py:1449: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
__________________________________ test_bool ___________________________________

    def test_bool():
        if sys.platform == 'win32':
            py.test.skip("_Bool not in MSVC")
        ffi = FFI()
        ffi.cdef("struct foo_s { _Bool x; };"
                 "_Bool foo(_Bool); static _Bool (*foop)(_Bool);")
        lib = ffi.verify("""
            struct foo_s { _Bool x; };
            int foo(int arg) {
                return !arg;
            }
            _Bool _foofunc(_Bool x) {
                return !x;
            }
            static _Bool (*foop)(_Bool) = _foofunc;
>       """)

testing/cffi0/test_verify.py:1466: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
___________________________ test_bool_on_long_double ___________________________

    def test_bool_on_long_double():
        if sys.platform == 'win32':
            py.test.skip("_Bool not in MSVC")
        f = 1E-250
        if f == 0.0 or f*f != 0.0:
            py.test.skip("unexpected precision")
        ffi = FFI()
        ffi.cdef("long double square(long double f); _Bool opposite(_Bool);")
>       lib = ffi.verify("long double square(long double f) { return f*f; }\n"
                         "_Bool opposite(_Bool x) { return !x; }")

testing/cffi0/test_verify.py:1514: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
____________________________ test_cannot_pass_float ____________________________

    def test_cannot_pass_float():
        for basetype in ['char', 'short', 'int', 'long', 'long long']:
            for sign in ['signed', 'unsigned']:
                type = '%s %s' % (sign, basetype)
                ffi = FFI()
                ffi.cdef("struct foo_s { %s x; };\n"
                         "int foo(%s);" % (type, type))
                lib = ffi.verify("""
                    struct foo_s { %s x; };
                    int foo(%s arg) {
                        return !arg;
                    }
>               """ % (type, type))

testing/cffi0/test_verify.py:1539: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
________________________________ test_addressof ________________________________

    def test_addressof():
        ffi = FFI()
        ffi.cdef("""
            struct point_s { int x, y; };
            struct foo_s { int z; struct point_s point; };
            struct point_s sum_coord(struct point_s *);
        """)
        lib = ffi.verify("""
            struct point_s { int x, y; };
            struct foo_s { int z; struct point_s point; };
            struct point_s sum_coord(struct point_s *point) {
                struct point_s r;
                r.x = point->x + point->y;
                r.y = point->x - point->y;
                return r;
            }
>       """)

testing/cffi0/test_verify.py:1572: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
______________________________ test_keepalive_lib ______________________________

    def test_keepalive_lib():
        ffi = FFI()
        ffi.cdef("int foobar(void);")
>       lib = ffi.verify("int foobar(void) { return 42; }")

testing/cffi0/test_verify.py:1598: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
______________________________ test_keepalive_ffi ______________________________

    def test_keepalive_ffi():
        ffi = FFI()
        ffi.cdef("int foobar(void);")
>       lib = ffi.verify("int foobar(void) { return 42; }")

testing/cffi0/test_verify.py:1611: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_________________________ test_FILE_stored_explicitly __________________________

    def test_FILE_stored_explicitly():
        ffi = FFI()
        ffi.cdef("int myprintf11(const char *, int); extern FILE *myfile;")
        lib = ffi.verify("""
            #include 
            FILE *myfile;
            int myprintf11(const char *out, int value) {
                return fprintf(myfile, out, value);
            }
>       """)

testing/cffi0/test_verify.py:1663: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
____________________ test_global_array_with_missing_length _____________________

    def test_global_array_with_missing_length():
        ffi = FFI()
        ffi.cdef("extern int fooarray[];")
>       lib = ffi.verify("int fooarray[50];")

testing/cffi0/test_verify.py:1683: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
___________________ test_global_array_with_dotdotdot_length ____________________

    def test_global_array_with_dotdotdot_length():
        ffi = FFI()
        ffi.cdef("extern int fooarray[...];")
>       lib = ffi.verify("int fooarray[50];")

testing/cffi0/test_verify.py:1689: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
________________________ test_struct_containing_struct _________________________

    def test_struct_containing_struct():
        ffi = FFI()
        ffi.cdef("struct foo_s { ...; }; struct bar_s { struct foo_s f; ...; };")
>       ffi.verify("struct foo_s { int x; }; struct bar_s { struct foo_s f; };")

testing/cffi0/test_verify.py:1700: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_________________________________ test_include _________________________________

    def test_include():
        ffi1 = FFI()
        ffi1.cdef("typedef struct { int x; ...; } foo_t;")
>       ffi1.verify("typedef struct { int y, x; } foo_t;")

testing/cffi0/test_verify.py:1718: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
______________________________ test_include_enum _______________________________

    def test_include_enum():
        ffi1 = FFI()
        ffi1.cdef("enum foo_e { AA, ... };")
>       lib1 = ffi1.verify("enum foo_e { CC, BB, AA };")

testing/cffi0/test_verify.py:1732: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
________________________ test_named_pointer_as_argument ________________________

    def test_named_pointer_as_argument():
        ffi = FFI()
        ffi.cdef("typedef struct { int x; } *mystruct_p;\n"
                 "mystruct_p ff5a(mystruct_p);")
>       lib = ffi.verify("typedef struct { int x; } *mystruct_p;\n"
                         "mystruct_p ff5a(mystruct_p p) { p->x += 40; return p; }")

testing/cffi0/test_verify.py:1745: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
________________________________ test_enum_size ________________________________

    def test_enum_size():
        cases = [('123',           4, 4294967295),
                 ('4294967295U',   4, 4294967295),
                 ('-123',          4, -1),
                 ('-2147483647-1', 4, -1),
                 ]
        if FFI().sizeof("long") == 8:
            cases += [('4294967296L',        8, 2**64-1),
                      ('%dUL' % (2**64-1),   8, 2**64-1),
                      ('-2147483649L',       8, -1),
                      ('%dL-1L' % (1-2**63), 8, -1)]
        for hidden_value, expected_size, expected_minus1 in cases:
            if sys.platform == 'win32' and 'U' in hidden_value:
                continue   # skipped on Windows
            ffi = FFI()
            ffi.cdef("enum foo_e { AA, BB, ... };")
>           lib = ffi.verify("enum foo_e { AA, BB=%s };" % hidden_value)

testing/cffi0/test_verify.py:1768: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_______________________________ test_enum_bug118 _______________________________

    def test_enum_bug118():
        maxulong = 256 ** FFI().sizeof("unsigned long") - 1
        for c1, c2, c2c in [(0xffffffff, -1, ''),
                            (maxulong, -1, ''),
                            (-1, 0xffffffff, 'U'),
                            (-1, maxulong, 'UL')]:
            if c2c and sys.platform == 'win32':
                continue     # enums may always be signed with MSVC
            ffi = FFI()
            ffi.cdef("enum foo_e { AA=%s };" % c1)
            e = py.test.raises(VerificationError, ffi.verify,
                               "enum foo_e { AA=%s%s };" % (c2, c2c))
>           assert str(e.value) == ('enum foo_e: AA has the real value %d, not %d'
                                    % (c2, c1))
E           AssertionError: assert 'CompileError...exit status 1' == 'enum foo_e: A...ot 4294967295'
E             - CompileError: command 'cc' failed with exit status 1
E             + enum foo_e: AA has the real value -1, not 4294967295

testing/cffi0/test_verify.py:1795: AssertionError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
___________________________ test_string_to_voidp_arg ___________________________

    def test_string_to_voidp_arg():
        ffi = FFI()
        ffi.cdef("int myfunc(void *);")
>       lib = ffi.verify("int myfunc(void *p) { return ((signed char *)p)[0]; }")

testing/cffi0/test_verify.py:1801: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
__________________________ test_callback_indirection ___________________________

    def test_callback_indirection():
        ffi = FFI()
        ffi.cdef("""
            static int (*python_callback)(int how_many, int *values);
            int (*const c_callback)(int,...);   /* pass this ptr to C routines */
            int some_c_function(int(*cb)(int,...));
        """)
        lib = ffi.verify("""
            #include 
            #ifdef _WIN32
            #include 
            #define alloca _alloca
            #else
            # ifdef __FreeBSD__
            #  include 
            # else
            #  include 
            # endif
            #endif
            static int (*python_callback)(int how_many, int *values);
            static int c_callback(int how_many, ...) {
                va_list ap;
                /* collect the "..." arguments into the values[] array */
                int i, *values = alloca((size_t)how_many * sizeof(int));
                va_start(ap, how_many);
                for (i=0; i       """)

testing/cffi0/test_verify.py:1847: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
___________________________ test_floatstar_argument ____________________________

    def test_floatstar_argument():
        ffi = FFI()
        ffi.cdef("float sum3floats(float *);")
        lib = ffi.verify("""
            float sum3floats(float *f) {
                return f[0] + f[1] + f[2];
            }
>       """)

testing/cffi0/test_verify.py:1866: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
____________________________ test_charstar_argument ____________________________

    def test_charstar_argument():
        ffi = FFI()
        ffi.cdef("char sum3chars(char *);")
        lib = ffi.verify("""
            char sum3chars(char *f) {
                return (char)(f[0] + f[1] + f[2]);
            }
>       """)

testing/cffi0/test_verify.py:1878: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_________________________ test_passing_string_or_NULL __________________________

    def test_passing_string_or_NULL():
        ffi = FFI()
        ffi.cdef("int seeme1(char *); int seeme2(int *);")
        lib = ffi.verify("""
            int seeme1(char *x) {
                return (x == NULL);
            }
            int seeme2(int *x) {
                return (x == NULL);
            }
>       """)

testing/cffi0/test_verify.py:1893: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_____________________________ test_typeof_function _____________________________

    def test_typeof_function():
        ffi = FFI()
        ffi.cdef("int foo(int, char);")
>       lib = ffi.verify("int foo(int x, char y) { (void)x; (void)y; return 42; }")

testing/cffi0/test_verify.py:1911: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_________________________ test_call_with_voidstar_arg __________________________

    def test_call_with_voidstar_arg():
        ffi = FFI()
        ffi.cdef("int f(void *);")
>       lib = ffi.verify("int f(void *x) { return ((char*)x)[0]; }")

testing/cffi0/test_verify.py:1919: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
___________________________________ test_dir ___________________________________

>   ???

testing/cffi0/test_verify.py:1933: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
____________________ test_typeof_func_with_struct_argument _____________________

    def test_typeof_func_with_struct_argument():
        ffi = FFI()
        ffi.cdef("""struct s { int a; }; int foo(struct s);""")
        lib = ffi.verify("""struct s { int a; };
>                           int foo(struct s x) { return x.a; }""")

testing/cffi0/test_verify.py:1941: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_______________________ test_bug_const_char_ptr_array_1 ________________________

    def test_bug_const_char_ptr_array_1():
        ffi = FFI()
        ffi.cdef("""extern const char *a[...];""")
>       lib = ffi.verify("""const char *a[5];""")

testing/cffi0/test_verify.py:1950: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
__________________________ test_various_calls_direct ___________________________

    def test_various_calls_direct():
>       _test_various_calls(force_libffi=False)

testing/cffi0/test_verify.py:2056: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:2023: in _test_various_calls
    """)
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
__________________________ test_various_calls_libffi ___________________________

    def test_various_calls_libffi():
>       _test_various_calls(force_libffi=True)

testing/cffi0/test_verify.py:2059: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:2023: in _test_various_calls
    """)
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
______________________________ test_ptr_to_opaque ______________________________

    def test_ptr_to_opaque():
        ffi = FFI()
        ffi.cdef("typedef ... foo_t; int f1(foo_t*); foo_t *f2(int);")
        lib = ffi.verify("""
            #include 
            typedef struct { int x; } foo_t;
            int f1(foo_t* p) {
                int x = p->x;
                free(p);
                return x;
            }
            foo_t *f2(int x) {
                foo_t *p = malloc(sizeof(foo_t));
                p->x = x;
                return p;
            }
>       """)

testing/cffi0/test_verify.py:2077: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
____________________ test_errno_working_even_with_pypys_jit ____________________

    def test_errno_working_even_with_pypys_jit():
        # NOTE: on some platforms, to work correctly, this test needs to be
        # compiled with -pthread.  Otherwise, the accesses to errno done from f()
        # are compiled by assuming this small library won't be used from multiple
        # threads, which is wrong.  If you see failures _and_ if you pass your
        # own CFLAGS environment variable, please make sure "-pthread" is in it.
        ffi = FFI()
        ffi.cdef("int f(int);")
        lib = ffi.verify("""
            #include 
            int f(int x) { return (errno = errno + x); }
>       """)

testing/cffi0/test_verify.py:2118: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
___________________________ test_verify_dlopen_flags ___________________________

    def test_verify_dlopen_flags():
        # Careful with RTLD_GLOBAL.  If by chance the FFI is not deleted
        # promptly, like on PyPy, then other tests may see the same
        # exported symbols as well.  So we must not export a simple name
        # like 'foo'!
        ffi1 = FFI()
        ffi1.cdef("extern int foo_verify_dlopen_flags;")
    
        lib1 = ffi1.verify("int foo_verify_dlopen_flags;",
>                          flags=ffi1.RTLD_GLOBAL | ffi1.RTLD_LAZY)

testing/cffi0/test_verify.py:2153: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_________________________ test_verify_extra_arguments __________________________

    def test_verify_extra_arguments():
        ffi = FFI()
        ffi.cdef("#define ABA ...")
>       lib = ffi.verify("", define_macros=[('ABA', '42')])

testing/cffi0/test_verify.py:2203: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
______________________________ test_use_local_dir ______________________________

    def test_use_local_dir():
        ffi = FFI()
>       lib = ffi.verify("", modulename="test_use_local_dir")

testing/cffi0/test_verify.py:2234: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
___________________________ test_define_known_value ____________________________

    def test_define_known_value():
        ffi = FFI()
        ffi.cdef("#define FOO 0x123")
>       lib = ffi.verify("#define FOO 0x123")

testing/cffi0/test_verify.py:2242: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
___________________________ test_define_wrong_value ____________________________

    def test_define_wrong_value():
        ffi = FFI()
        ffi.cdef("#define FOO 123")
        e = py.test.raises(VerificationError, ffi.verify, "#define FOO 124")
>       assert str(e.value).endswith("FOO has the real value 124, not 123")
E       assert False
E        +  where False = ('FOO has the real value 124, not 123')
E        +    where  = "CompileError: command 'cc' failed with exit status 1".endswith
E        +      where "CompileError: command 'cc' failed with exit status 1" = str(VerificationError("CompileError: command 'cc' failed with exit status 1",))
E        +        where VerificationError("CompileError: command 'cc' failed with exit status 1",) = .value

testing/cffi0/test_verify.py:2249: AssertionError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
______________________ test_static_const_int_known_value _______________________

    def test_static_const_int_known_value():
        ffi = FFI()
        ffi.cdef("static const int FOO = 0x123;")
>       lib = ffi.verify("#define FOO 0x123")

testing/cffi0/test_verify.py:2254: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
______________________ test_static_const_int_wrong_value _______________________

    def test_static_const_int_wrong_value():
        ffi = FFI()
        ffi.cdef("static const int FOO = 123;")
        e = py.test.raises(VerificationError, ffi.verify, "#define FOO 124")
>       assert str(e.value).endswith("FOO has the real value 124, not 123")
E       assert False
E        +  where False = ('FOO has the real value 124, not 123')
E        +    where  = "CompileError: command 'cc' failed with exit status 1".endswith
E        +      where "CompileError: command 'cc' failed with exit status 1" = str(VerificationError("CompileError: command 'cc' failed with exit status 1",))
E        +        where VerificationError("CompileError: command 'cc' failed with exit status 1",) = .value

testing/cffi0/test_verify.py:2261: AssertionError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
___________________________ test_const_struct_global ___________________________

    def test_const_struct_global():
        ffi = FFI()
        ffi.cdef("typedef struct { int x; ...; } T; const T myglob;")
>       lib = ffi.verify("typedef struct { double y; int x; } T;"
                         "const T myglob = { 0.1, 42 };")

testing/cffi0/test_verify.py:2266: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
______________________________ test_const_fields _______________________________

    def test_const_fields():
        ffi = FFI()
        ffi.cdef("""struct foo_s { const int a; void *const b; };""")
>       ffi.verify("""struct foo_s { const int a; void *const b; };""")

testing/cffi0/test_verify.py:2286: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_______________________ test_win32_calling_convention_0 ________________________

    def test_win32_calling_convention_0():
        ffi = FFI()
        ffi.cdef("""
            int call1(int(__cdecl   *cb)(int));
            int (*const call2)(int(__stdcall *cb)(int));
        """)
        lib = ffi.verify(r"""
            #ifndef _MSC_VER
            #  define __stdcall  /* nothing */
            #endif
            int call1(int(*cb)(int)) {
                int i, result = 0;
                //printf("call1: cb = %p\n", cb);
                for (i = 0; i < 1000; i++)
                    result += cb(i);
                //printf("result = %d\n", result);
                return result;
            }
            int call2(int(__stdcall *cb)(int)) {
                int i, result = 0;
                //printf("call2: cb = %p\n", cb);
                for (i = 0; i < 1000; i++)
                    result += cb(-i);
                //printf("result = %d\n", result);
                return result;
            }
>       """)

testing/cffi0/test_verify.py:2319: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_______________________ test_win32_calling_convention_1 ________________________

    def test_win32_calling_convention_1():
        ffi = FFI()
        ffi.cdef("""
            int __cdecl   call1(int(__cdecl   *cb)(int));
            int __stdcall call2(int(__stdcall *cb)(int));
            int (__cdecl   *const cb1)(int);
            int (__stdcall *const cb2)(int);
        """)
        lib = ffi.verify(r"""
            #ifndef _MSC_VER
            #  define __cdecl
            #  define __stdcall
            #endif
            int __cdecl   cb1(int x) { return x * 2; }
            int __stdcall cb2(int x) { return x * 3; }
    
            int __cdecl call1(int(__cdecl *cb)(int)) {
                int i, result = 0;
                //printf("here1\n");
                //printf("cb = %p, cb1 = %p\n", cb, (void *)cb1);
                for (i = 0; i < 1000; i++)
                    result += cb(i);
                //printf("result = %d\n", result);
                return result;
            }
            int __stdcall call2(int(__stdcall *cb)(int)) {
                int i, result = 0;
                //printf("here1\n");
                //printf("cb = %p, cb2 = %p\n", cb, (void *)cb2);
                for (i = 0; i < 1000; i++)
                    result += cb(-i);
                //printf("result = %d\n", result);
                return result;
            }
>       """)

testing/cffi0/test_verify.py:2379: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_______________________ test_win32_calling_convention_2 ________________________

    def test_win32_calling_convention_2():
        # any mistake in the declaration of plain function (including the
        # precise argument types and, here, the calling convention) are
        # automatically corrected.  But this does not apply to the 'cb'
        # function pointer argument.
        ffi = FFI()
        ffi.cdef("""
            int __stdcall call1(int(__cdecl   *cb)(int));
            int __cdecl   call2(int(__stdcall *cb)(int));
            int (__cdecl   *const cb1)(int);
            int (__stdcall *const cb2)(int);
        """)
        lib = ffi.verify(r"""
            #ifndef _MSC_VER
            #  define __cdecl
            #  define __stdcall
            #endif
            int __cdecl call1(int(__cdecl *cb)(int)) {
                int i, result = 0;
                for (i = 0; i < 1000; i++)
                    result += cb(i);
                return result;
            }
            int __stdcall call2(int(__stdcall *cb)(int)) {
                int i, result = 0;
                for (i = 0; i < 1000; i++)
                    result += cb(-i);
                return result;
            }
            int __cdecl   cb1(int x) { return x * 2; }
            int __stdcall cb2(int x) { return x * 3; }
>       """)

testing/cffi0/test_verify.py:2414: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_______________________ test_win32_calling_convention_3 ________________________

    def test_win32_calling_convention_3():
        ffi = FFI()
        ffi.cdef("""
            struct point { int x, y; };
    
            int (*const cb1)(struct point);
            int (__stdcall *const cb2)(struct point);
    
            struct point __stdcall call1(int(*cb)(struct point));
            struct point call2(int(__stdcall *cb)(struct point));
        """)
        lib = ffi.verify(r"""
            #ifndef _MSC_VER
            #  define __cdecl
            #  define __stdcall
            #endif
            struct point { int x, y; };
            int           cb1(struct point pt) { return pt.x + 10 * pt.y; }
            int __stdcall cb2(struct point pt) { return pt.x + 100 * pt.y; }
            struct point __stdcall call1(int(__cdecl *cb)(struct point)) {
                int i;
                struct point result = { 0, 0 };
                //printf("here1\n");
                //printf("cb = %p, cb1 = %p\n", cb, (void *)cb1);
                for (i = 0; i < 1000; i++) {
                    struct point p = { i, -i };
                    int r = cb(p);
                    result.x += r;
                    result.y -= r;
                }
                return result;
            }
            struct point __cdecl call2(int(__stdcall *cb)(struct point)) {
                int i;
                struct point result = { 0, 0 };
                for (i = 0; i < 1000; i++) {
                    struct point p = { -i, i };
                    int r = cb(p);
                    result.x += r;
                    result.y -= r;
                }
                return result;
            }
>       """)

testing/cffi0/test_verify.py:2461: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
___________________________ test_arithmetic_in_cdef ____________________________

    def test_arithmetic_in_cdef():
        for a in [0, 11, 15]:
            ffi = FFI()
            ffi.cdef("""
                enum FOO {
                    DIVNN = ((-?) / (-3)),
                    DIVNP = ((-?) / (+3)),
                    DIVPN = ((+?) / (-3)),
                    MODNN = ((-?) % (-3)),
                    MODNP = ((-?) % (+3)),
                    MODPN = ((+?) % (-3)),
                    };
            """.replace('?', str(a)))
            lib = ffi.verify("""
                enum FOO {
                    DIVNN = ((-?) / (-3)),
                    DIVNP = ((-?) / (+3)),
                    DIVPN = ((+?) / (-3)),
                    MODNN = ((-?) % (-3)),
                    MODNP = ((-?) % (+3)),
                    MODPN = ((+?) % (-3)),
                    };
>           """.replace('?', str(a)))

testing/cffi0/test_verify.py:2560: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_______________________________ test_module_type _______________________________

    def test_module_type():
        import cffi.verifier
        ffi = FFI()
>       lib = ffi.verify()

testing/cffi0/test_verify.py:58: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_______________________________ test_simple_case _______________________________

    def test_simple_case():
        ffi = FFI()
        ffi.cdef("double sin(double x);")
>       lib = ffi.verify('#include ', libraries=lib_m)

testing/cffi0/test_verify.py:92: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
__________________________ test_Wconversion_unsigned ___________________________

    def test_Wconversion_unsigned():
        _Wconversion("unsigned foo(void);",
>                    "int foo(void) { return -1;}")

testing/cffi0/test_verify.py:111: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:104: in _Wconversion
    lib = ffi.verify(source, **kargs)
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
___________________________ test_Wconversion_integer ___________________________

    def test_Wconversion_integer():
        _Wconversion("short foo(void);",
>                    "long long foo(void) { return 1<
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
__________________________ test_Wconversion_floating ___________________________

    def test_Wconversion_floating():
        lib = _Wconversion("float sin(double);",
>                          "#include ", libraries=lib_m)

testing/cffi0/test_verify.py:119: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:104: in _Wconversion
    lib = ffi.verify(source, **kargs)
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
__________________________ test_Wconversion_float2int __________________________

    def test_Wconversion_float2int():
        _Wconversion("int sinf(float);",
>                    "#include ", libraries=lib_m)

testing/cffi0/test_verify.py:126: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:104: in _Wconversion
    lib = ffi.verify(source, **kargs)
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_________________________ test_Wconversion_double2int __________________________

    def test_Wconversion_double2int():
        _Wconversion("int sin(double);",
>                    "#include ", libraries=lib_m)

testing/cffi0/test_verify.py:130: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:104: in _Wconversion
    lib = ffi.verify(source, **kargs)
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_______________________________ test_rounding_1 ________________________________

    def test_rounding_1():
        ffi = FFI()
        ffi.cdef("double sinf(float x);")
>       lib = ffi.verify('#include ', libraries=lib_m)

testing/cffi0/test_verify.py:135: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_______________________________ test_rounding_2 ________________________________

    def test_rounding_2():
        ffi = FFI()
        ffi.cdef("double sin(float x);")
>       lib = ffi.verify('#include ', libraries=lib_m)

testing/cffi0/test_verify.py:143: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
______________________________ test_strlen_exact _______________________________

    def test_strlen_exact():
        ffi = FFI()
        ffi.cdef("size_t strlen(const char *s);")
>       lib = ffi.verify("#include ")

testing/cffi0/test_verify.py:151: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
___________________________ test_strlen_approximate ____________________________

    def test_strlen_approximate():
        lib = _Wconversion("int strlen(char *s);",
>                          "#include ")

testing/cffi0/test_verify.py:156: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:104: in _Wconversion
    lib = ffi.verify(source, **kargs)
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
___________________________ test_return_approximate ____________________________

    def test_return_approximate():
        for typename in ['short', 'int', 'long', 'long long']:
            ffi = FFI()
            ffi.cdef("%s foo(signed char x);" % typename)
>           lib = ffi.verify("signed char foo(signed char x) { return x;}")

testing/cffi0/test_verify.py:163: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
__________________________ test_strlen_array_of_char ___________________________

    def test_strlen_array_of_char():
        ffi = FFI()
        ffi.cdef("size_t strlen(char[]);")
>       lib = ffi.verify("#include ")

testing/cffi0/test_verify.py:170: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_______________________________ test_longdouble ________________________________

    def test_longdouble():
        ffi = FFI()
        ffi.cdef("long double sinl(long double x);")
>       lib = ffi.verify('#include ', libraries=lib_m)

testing/cffi0/test_verify.py:176: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
__________________________ test_longdouble_precision ___________________________

    def test_longdouble_precision():
        # Test that we don't loose any precision of 'long double' when
        # passing through Python and CFFI.
        ffi = FFI()
        ffi.cdef("long double step1(long double x);")
        SAME_SIZE = ffi.sizeof("long double") == ffi.sizeof("double")
        lib = ffi.verify("""
            long double step1(long double x)
            {
                return 4*x-x*x;
            }
>       """)

testing/cffi0/test_verify.py:195: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_______________________ test_all_integer_and_float_types _______________________

    def test_all_integer_and_float_types():
        typenames = []
        for typename in all_primitive_types:
            if (all_primitive_types[typename] == 'c' or
                all_primitive_types[typename] == 'j' or    # complex
                typename == '_Bool' or typename == 'long double'):
                pass
            else:
                typenames.append(typename)
        #
        ffi = FFI()
        ffi.cdef('\n'.join(["%s foo_%s(%s);" % (tp, tp.replace(' ', '_'), tp)
                           for tp in typenames]))
        lib = ffi.verify('\n'.join(["%s foo_%s(%s x) { return (%s)(x+1); }" %
                                    (tp, tp.replace(' ', '_'), tp, tp)
>                                   for tp in typenames]))

testing/cffi0/test_verify.py:266: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
________________________ test_var_signed_integer_types _________________________

    def test_var_signed_integer_types():
        ffi = FFI()
        lst = all_signed_integer_types(ffi)
        csource = "\n".join(["static %s somevar_%s;" % (tp, tp.replace(' ', '_'))
                             for tp in lst])
        ffi.cdef(csource)
>       lib = ffi.verify(csource)

testing/cffi0/test_verify.py:292: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_______________________ test_var_unsigned_integer_types ________________________

    def test_var_unsigned_integer_types():
        ffi = FFI()
        lst = all_unsigned_integer_types(ffi)
        csource = "\n".join(["static %s somevar_%s;" % (tp, tp.replace(' ', '_'))
                             for tp in lst])
        ffi.cdef(csource)
>       lib = ffi.verify(csource)

testing/cffi0/test_verify.py:311: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_________________________ test_fn_signed_integer_types _________________________

    def test_fn_signed_integer_types():
        ffi = FFI()
        lst = all_signed_integer_types(ffi)
        cdefsrc = "\n".join(["%s somefn_%s(%s);" % (tp, tp.replace(' ', '_'), tp)
                             for tp in lst])
        ffi.cdef(cdefsrc)
        verifysrc = "\n".join(["%s somefn_%s(%s x) { return x; }" %
                               (tp, tp.replace(' ', '_'), tp) for tp in lst])
>       lib = ffi.verify(verifysrc)

testing/cffi0/test_verify.py:334: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
________________________ test_fn_unsigned_integer_types ________________________

    def test_fn_unsigned_integer_types():
        ffi = FFI()
        lst = all_unsigned_integer_types(ffi)
        cdefsrc = "\n".join(["%s somefn_%s(%s);" % (tp, tp.replace(' ', '_'), tp)
                             for tp in lst])
        ffi.cdef(cdefsrc)
        verifysrc = "\n".join(["%s somefn_%s(%s x) { return x; }" %
                               (tp, tp.replace(' ', '_'), tp) for tp in lst])
>       lib = ffi.verify(verifysrc)

testing/cffi0/test_verify.py:354: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
________________________________ test_char_type ________________________________

    def test_char_type():
        ffi = FFI()
        ffi.cdef("char foo(char);")
>       lib = ffi.verify("char foo(char x) { return ++x; }")

testing/cffi0/test_verify.py:371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_______________________________ test_wchar_type ________________________________

    def test_wchar_type():
        ffi = FFI()
        if ffi.sizeof('wchar_t') == 2:
            uniexample1 = u+'\u1234'
            uniexample2 = u+'\u1235'
        else:
            uniexample1 = u+'\U00012345'
            uniexample2 = u+'\U00012346'
        #
        ffi.cdef("wchar_t foo(wchar_t);")
>       lib = ffi.verify("wchar_t foo(wchar_t x) { return x+1; }")

testing/cffi0/test_verify.py:386: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_______________________________ test_no_argument _______________________________

    def test_no_argument():
        ffi = FFI()
        ffi.cdef("int foo(void);")
>       lib = ffi.verify("int foo(void) { return 42; }")

testing/cffi0/test_verify.py:396: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
______________________________ test_two_arguments ______________________________

    def test_two_arguments():
        ffi = FFI()
        ffi.cdef("int foo(int, int);")
>       lib = ffi.verify("int foo(int a, int b) { return a - b; }")

testing/cffi0/test_verify.py:402: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
__________________________________ test_macro __________________________________

    def test_macro():
        ffi = FFI()
        ffi.cdef("int foo(int, int);")
>       lib = ffi.verify("#define foo(a, b) ((a) * (b))")

testing/cffi0/test_verify.py:408: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
___________________________________ test_ptr ___________________________________

    def test_ptr():
        ffi = FFI()
        ffi.cdef("int *foo(int *);")
>       lib = ffi.verify("int *foo(int *a) { return a; }")

testing/cffi0/test_verify.py:414: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
________________________________ test_bogus_ptr ________________________________

    def test_bogus_ptr():
        ffi = FFI()
        ffi.cdef("int *foo(int *);")
>       lib = ffi.verify("int *foo(int *a) { return a; }")

testing/cffi0/test_verify.py:424: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_____________________________ test_nondecl_struct ______________________________

    def test_nondecl_struct():
        ffi = FFI()
        ffi.cdef("typedef struct foo_s foo_t; int bar(foo_t *);")
>       lib = ffi.verify("typedef struct foo_s foo_t;\n"
                         "int bar(foo_t *f) { (void)f; return 42; }\n")

testing/cffi0/test_verify.py:444: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_____________________________ test_ffi_full_struct _____________________________

    def test_ffi_full_struct():
        ffi = FFI()
        ffi.cdef("struct foo_s { char x; int y; long *z; };")
>       ffi.verify("struct foo_s { char x; int y; long *z; };")

testing/cffi0/test_verify.py:451: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
___________________________ test_ffi_nonfull_struct ____________________________

    def test_ffi_nonfull_struct():
        ffi = FFI()
        ffi.cdef("""
        struct foo_s {
           int x;
           ...;
        };
        """)
        py.test.raises(VerificationMissing, ffi.sizeof, 'struct foo_s')
        py.test.raises(VerificationMissing, ffi.offsetof, 'struct foo_s', 'x')
        py.test.raises(VerificationMissing, ffi.new, 'struct foo_s *')
        ffi.verify("""
        struct foo_s {
           int a, b, x, c, d, e;
        };
>       """)

testing/cffi0/test_verify.py:500: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
__________________________ test_ffi_nonfull_alignment __________________________

    def test_ffi_nonfull_alignment():
        ffi = FFI()
        ffi.cdef("struct foo_s { char x; ...; };")
>       ffi.verify("struct foo_s { int a, b; char x; };")

testing/cffi0/test_verify.py:507: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
________________________ test_struct_bad_sized_integer _________________________

    def test_struct_bad_sized_integer():
        for typename in ['int8_t', 'int16_t', 'int32_t', 'int64_t']:
            for real in ['int8_t', 'int16_t', 'int32_t', 'int64_t']:
>               _check_field_match(typename, real, "by_size")

testing/cffi0/test_verify.py:535: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

typename = 'int8_t', real = 'int8_t', expect_mismatch = False

    def _check_field_match(typename, real, expect_mismatch):
        ffi = FFI()
        testing_by_size = (expect_mismatch == 'by_size')
        if testing_by_size:
            expect_mismatch = ffi.sizeof(typename) != ffi.sizeof(real)
        ffi.cdef("struct foo_s { %s x; ...; };" % typename)
        try:
            ffi.verify("struct foo_s { %s x; };" % real)
        except VerificationError:
            if not expect_mismatch:
                if testing_by_size and typename != real:
                    print("ignoring mismatch between %s* and %s* even though "
                          "they have the same size" % (typename, real))
                    return
                raise AssertionError("unexpected mismatch: %s should be accepted "
>                                    "as equal to %s" % (typename, real))
E               AssertionError: unexpected mismatch: int8_t should be accepted as equal to int8_t

testing/cffi0/test_verify.py:526: AssertionError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_________________________ test_struct_bad_sized_float __________________________

    def test_struct_bad_sized_float():
        for typename in all_float_types:
            for real in all_float_types:
>               _check_field_match(typename, real, "by_size")

testing/cffi0/test_verify.py:540: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

typename = 'double', real = 'double', expect_mismatch = False

    def _check_field_match(typename, real, expect_mismatch):
        ffi = FFI()
        testing_by_size = (expect_mismatch == 'by_size')
        if testing_by_size:
            expect_mismatch = ffi.sizeof(typename) != ffi.sizeof(real)
        ffi.cdef("struct foo_s { %s x; ...; };" % typename)
        try:
            ffi.verify("struct foo_s { %s x; };" % real)
        except VerificationError:
            if not expect_mismatch:
                if testing_by_size and typename != real:
                    print("ignoring mismatch between %s* and %s* even though "
                          "they have the same size" % (typename, real))
                    return
                raise AssertionError("unexpected mismatch: %s should be accepted "
>                                    "as equal to %s" % (typename, real))
E               AssertionError: unexpected mismatch: double should be accepted as equal to double

testing/cffi0/test_verify.py:526: AssertionError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
________________________ test_struct_signedness_ignored ________________________

    def test_struct_signedness_ignored():
>       _check_field_match("int", "unsigned int", expect_mismatch=False)

testing/cffi0/test_verify.py:543: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

typename = 'int', real = 'unsigned int', expect_mismatch = False

    def _check_field_match(typename, real, expect_mismatch):
        ffi = FFI()
        testing_by_size = (expect_mismatch == 'by_size')
        if testing_by_size:
            expect_mismatch = ffi.sizeof(typename) != ffi.sizeof(real)
        ffi.cdef("struct foo_s { %s x; ...; };" % typename)
        try:
            ffi.verify("struct foo_s { %s x; };" % real)
        except VerificationError:
            if not expect_mismatch:
                if testing_by_size and typename != real:
                    print("ignoring mismatch between %s* and %s* even though "
                          "they have the same size" % (typename, real))
                    return
                raise AssertionError("unexpected mismatch: %s should be accepted "
>                                    "as equal to %s" % (typename, real))
E               AssertionError: unexpected mismatch: int should be accepted as equal to unsigned int

testing/cffi0/test_verify.py:526: AssertionError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
___________________________ test_struct_array_field ____________________________

    def test_struct_array_field():
        ffi = FFI()
        ffi.cdef("struct foo_s { int a[17]; ...; };")
>       ffi.verify("struct foo_s { int x; int a[17]; int y; };")

testing/cffi0/test_verify.py:560: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_________________________ test_struct_array_no_length __________________________

    def test_struct_array_no_length():
        ffi = FFI()
        ffi.cdef("struct foo_s { int a[]; int y; ...; };\n"
                 "int bar(struct foo_s *);\n")
>       lib = ffi.verify("struct foo_s { int x; int a[17]; int y; };\n"
                         "int bar(struct foo_s *f) { return f->a[14]; }\n")

testing/cffi0/test_verify.py:569: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
________________________ test_struct_array_guess_length ________________________

    def test_struct_array_guess_length():
        ffi = FFI()
        ffi.cdef("struct foo_s { int a[...]; };")
>       ffi.verify("struct foo_s { int x; int a[17]; int y; };")

testing/cffi0/test_verify.py:590: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
___________________________ test_struct_array_c99_1 ____________________________

    def test_struct_array_c99_1():
        if sys.platform == 'win32':
            py.test.skip("requires C99")
        ffi = FFI()
        ffi.cdef("struct foo_s { int x; int a[]; };")
>       ffi.verify("struct foo_s { int x; int a[]; };")

testing/cffi0/test_verify.py:602: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
___________________________ test_struct_array_c99_2 ____________________________

    def test_struct_array_c99_2():
        if sys.platform == 'win32':
            py.test.skip("requires C99")
        ffi = FFI()
        ffi.cdef("struct foo_s { int x; int a[]; ...; };")
>       ffi.verify("struct foo_s { int x, y; int a[]; };")

testing/cffi0/test_verify.py:625: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
________________________ test_struct_ptr_to_array_field ________________________

    def test_struct_ptr_to_array_field():
        ffi = FFI()
        ffi.cdef("struct foo_s { int (*a)[17]; ...; }; struct bar_s { ...; };")
>       ffi.verify("struct foo_s { int x; int (*a)[17]; int y; };\n"
                   "struct bar_s { int x; int *a; int y; };")

testing/cffi0/test_verify.py:641: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_______________________ test_struct_with_bitfield_exact ________________________

    def test_struct_with_bitfield_exact():
        ffi = FFI()
        ffi.cdef("struct foo_s { int a:2, b:3; };")
>       ffi.verify("struct foo_s { int a:2, b:3; };")

testing/cffi0/test_verify.py:650: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
________________________ test_struct_with_bitfield_enum ________________________

    def test_struct_with_bitfield_enum():
        ffi = FFI()
        code = """
            typedef enum { AA, BB, CC } foo_e;
            typedef struct { foo_e f:2; } foo_s;
        """
        ffi.cdef(code)
>       ffi.verify(code)

testing/cffi0/test_verify.py:664: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
____________________________ test_global_constants _____________________________

    def test_global_constants():
        ffi = FFI()
        # use 'static const int', as generally documented, although in this
        # case the 'static' is completely ignored.
        ffi.cdef("static const int AA, BB, CC, DD;")
>       lib = ffi.verify("#define AA 42\n"
                         "#define BB (-43)   // blah\n"
                         "#define CC (22*2)  /* foobar */\n"
                         "#define DD ((unsigned int)142)  /* foo\nbar */\n")

testing/cffi0/test_verify.py:679: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
__________________________ test_global_const_int_size __________________________

    def test_global_const_int_size():
        # integer constants: ignore the declared type, always just use the value
        for value in [-2**63, -2**31, -2**15,
                      2**15-1, 2**15, 2**31-1, 2**31, 2**32-1, 2**32,
                      2**63-1, 2**63, 2**64-1]:
            ffi = FFI()
            if value == int(ffi.cast("long long", value)):
                if value < 0:
                    vstr = '(-%dLL-1)' % (~value,)
                else:
                    vstr = '%dLL' % value
            elif value == int(ffi.cast("unsigned long long", value)):
                vstr = '%dULL' % value
            else:
                raise AssertionError(value)
            ffi.cdef("static const unsigned short AA;")
>           lib = ffi.verify("#define AA %s\n" % vstr)

testing/cffi0/test_verify.py:704: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
________________________ test_global_constants_non_int _________________________

    def test_global_constants_non_int():
        ffi = FFI()
        ffi.cdef("static char *const PP;")
>       lib = ffi.verify('static char *const PP = "testing!";\n')

testing/cffi0/test_verify.py:711: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
______________________________ test_nonfull_enum _______________________________

    def test_nonfull_enum():
        ffi = FFI()
        ffi.cdef("enum ee { EE1, EE2, EE3, ... \n \t };")
        py.test.raises(VerificationMissing, ffi.cast, 'enum ee', 'EE2')
>       ffi.verify("enum ee { EE1=10, EE2, EE3=-10, EE4 };")

testing/cffi0/test_verify.py:719: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
________________________________ test_full_enum ________________________________

    def test_full_enum():
        ffi = FFI()
        ffi.cdef("enum ee { EE1, EE2, EE3 };")
>       ffi.verify("enum ee { EE1, EE2, EE3 };")

testing/cffi0/test_verify.py:733: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_______________________________ test_enum_usage ________________________________

    def test_enum_usage():
        ffi = FFI()
        ffi.cdef("enum ee { EE1,EE2 }; typedef struct { enum ee x; } *sp;")
>       lib = ffi.verify("enum ee { EE1,EE2 }; typedef struct { enum ee x; } *sp;")

testing/cffi0/test_verify.py:745: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_____________________________ test_anonymous_enum ______________________________

    def test_anonymous_enum():
        ffi = FFI()
        ffi.cdef("enum { EE1 }; enum { EE2, EE3 };")
>       lib = ffi.verify("enum { EE1 }; enum { EE2, EE3 };")

testing/cffi0/test_verify.py:755: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_________________________ test_nonfull_anonymous_enum __________________________

    def test_nonfull_anonymous_enum():
        ffi = FFI()
        ffi.cdef("enum { EE1, ... }; enum { EE3, ... };")
>       lib = ffi.verify("enum { EE2, EE1 }; enum { EE3 };")

testing/cffi0/test_verify.py:763: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
__________________________ test_nonfull_enum_syntax2 ___________________________

    def test_nonfull_enum_syntax2():
        ffi = FFI()
        ffi.cdef("enum ee { EE1, EE2=\t..., EE3 };")
        py.test.raises(VerificationMissing, ffi.cast, 'enum ee', 'EE1')
>       ffi.verify("enum ee { EE1=10, EE2, EE3=-10, EE4 };")

testing/cffi0/test_verify.py:771: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
______________________________ test_get_set_errno ______________________________

    def test_get_set_errno():
        ffi = FFI()
        ffi.cdef("int foo(int);")
        lib = ffi.verify("""
            static int foo(int x)
            {
                errno += 1;
                return x * 7;
            }
>       """)

testing/cffi0/test_verify.py:801: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_______________________________ test_define_int ________________________________

    def test_define_int():
        ffi = FFI()
        ffi.cdef("#define FOO ...\n"
                 "\t#\tdefine\tBAR\t...\t\n"
                 "#define BAZ ...\n")
>       lib = ffi.verify("#define FOO 42\n"
                         "#define BAR (-44)\n"
                         "#define BAZ 0xffffffffffffffffULL\n")

testing/cffi0/test_verify.py:811: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_____________________________ test_access_variable _____________________________

    def test_access_variable():
        ffi = FFI()
        ffi.cdef("static int foo(void);\n"
                 "static int somenumber;")
        lib = ffi.verify("""
            static int somenumber = 2;
            static int foo(void) {
                return somenumber * 7;
            }
>       """)

testing/cffi0/test_verify.py:827: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_______________________ test_access_address_of_variable ________________________

    def test_access_address_of_variable():
        # access the address of 'somenumber': need a trick
        ffi = FFI()
        ffi.cdef("static int somenumber; static int *const somenumberptr;")
        lib = ffi.verify("""
            static int somenumber = 2;
            #define somenumberptr (&somenumber)
>       """)

testing/cffi0/test_verify.py:842: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
__________________________ test_access_array_variable __________________________

length = 5

    def test_access_array_variable(length=5):
        ffi = FFI()
        ffi.cdef("int foo(int);\n"
                 "static int somenumber[%s];" % (length,))
        lib = ffi.verify("""
            static int somenumber[] = {2, 2, 3, 4, 5};
            static int foo(int i) {
                return somenumber[i] * 7;
            }
>       """)

testing/cffi0/test_verify.py:857: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
___________________ test_access_array_variable_length_hidden ___________________

    def test_access_array_variable_length_hidden():
>       test_access_array_variable(length='')

testing/cffi0/test_verify.py:877: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:857: in test_access_array_variable
    """)
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_________________________ test_access_struct_variable __________________________

    def test_access_struct_variable():
        ffi = FFI()
        ffi.cdef("struct foo { int x; ...; };\n"
                 "int foo(int);\n"
                 "static struct foo stuff;")
        lib = ffi.verify("""
            struct foo { int x, y, z; };
            static struct foo stuff = {2, 5, 8};
            static int foo(int i) {
                switch (i) {
                case 0: return stuff.x * 7;
                case 1: return stuff.y * 7;
                case 2: return stuff.z * 7;
                }
                return -1;
            }
>       """)

testing/cffi0/test_verify.py:895: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_____________________________ test_access_callback _____________________________

    def test_access_callback():
        ffi = FFI()
        ffi.cdef("static int (*cb)(int);\n"
                 "static int foo(int);\n"
                 "static void reset_cb(void);")
        lib = ffi.verify("""
            static int g(int x) { return x * 7; }
            static int (*cb)(int);
            static int foo(int i) { return cb(i) - 1; }
            static void reset_cb(void) { cb = g; }
>       """)

testing/cffi0/test_verify.py:915: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
____________________ test_access_callback_function_typedef _____________________

    def test_access_callback_function_typedef():
        ffi = FFI()
        ffi.cdef("typedef int mycallback_t(int);\n"
                 "static mycallback_t *cb;\n"
                 "static int foo(int);\n"
                 "static void reset_cb(void);")
        lib = ffi.verify("""
            static int g(int x) { return x * 7; }
            static int (*cb)(int);
            static int foo(int i) { return cb(i) - 1; }
            static void reset_cb(void) { cb = g; }
>       """)

testing/cffi0/test_verify.py:933: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
__________________ test_ctypes_backend_forces_generic_engine ___________________

    def test_ctypes_backend_forces_generic_engine():
        from cffi.backend_ctypes import CTypesBackend
        ffi = FFI(backend=CTypesBackend())
        ffi.cdef("int func(int a);")
>       lib = ffi.verify("int func(int a) { return a * 42; }")

testing/cffi0/test_verify.py:944: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
__________________________ test_call_with_struct_ptr ___________________________

    def test_call_with_struct_ptr():
        ffi = FFI()
        ffi.cdef("typedef struct { int x; ...; } foo_t; int foo(foo_t *);")
        lib = ffi.verify("""
            typedef struct { int y, x; } foo_t;
            static int foo(foo_t *f) { return f->x * 7; }
>       """)

testing/cffi0/test_verify.py:955: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
______________________________ test_unknown_type _______________________________

    def test_unknown_type():
        ffi = FFI()
        ffi.cdef("""
            typedef ... token_t;
            int foo(token_t *);
            #define TOKEN_SIZE ...
        """)
        lib = ffi.verify("""
            typedef float token_t;
            static int foo(token_t *tk) {
                if (!tk)
                    return -42;
                *tk += 1.601f;
                return (int)*tk;
            }
            #define TOKEN_SIZE sizeof(token_t)
>       """)

testing/cffi0/test_verify.py:976: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_____________________________ test_unknown_type_2 ______________________________

    def test_unknown_type_2():
        ffi = FFI()
        ffi.cdef("typedef ... token_t;")
>       lib = ffi.verify("typedef struct token_s token_t;")

testing/cffi0/test_verify.py:989: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_____________________________ test_unknown_type_3 ______________________________

    def test_unknown_type_3():
        ffi = FFI()
        ffi.cdef("""
            typedef ... *token_p;
            token_p foo(token_p);
        """)
        lib = ffi.verify("""
            typedef struct _token_s *token_p;
            token_p foo(token_p arg) {
                if (arg)
                    return (token_p)0x12347;
                else
                    return (token_p)0x12345;
            }
>       """)

testing/cffi0/test_verify.py:1006: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_________________________________ test_varargs _________________________________

    def test_varargs():
        ffi = FFI()
        ffi.cdef("int foo(int x, ...);")
        lib = ffi.verify("""
            int foo(int x, ...) {
                va_list vargs;
                va_start(vargs, x);
                x -= va_arg(vargs, int);
                x -= va_arg(vargs, int);
                va_end(vargs);
                return x;
            }
>       """)

testing/cffi0/test_verify.py:1024: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_____________________________ test_varargs_struct ______________________________

    def test_varargs_struct():
        ffi = FFI()
        ffi.cdef("struct foo_s { char a; int b; }; int foo(int x, ...);")
        lib = ffi.verify("""
            struct foo_s {
                char a; int b;
            };
            int foo(int x, ...) {
                va_list vargs;
                struct foo_s s;
                va_start(vargs, x);
                s = va_arg(vargs, struct foo_s);
                va_end(vargs);
                return s.a - s.b;
            }
>       """)

testing/cffi0/test_verify.py:1053: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
______________________ test_autofilled_struct_as_argument ______________________

    def test_autofilled_struct_as_argument():
        ffi = FFI()
        ffi.cdef("struct foo_s { long a; double b; ...; };\n"
                 "int foo(struct foo_s);")
        lib = ffi.verify("""
            struct foo_s {
                double b;
                long a;
            };
            int foo(struct foo_s s) {
                return (int)s.a - (int)s.b;
            }
>       """)

testing/cffi0/test_verify.py:1069: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
__________________ test_autofilled_struct_as_argument_dynamic __________________

    def test_autofilled_struct_as_argument_dynamic():
        ffi = FFI()
        ffi.cdef("struct foo_s { long a; ...; };\n"
                 "static int (*foo)(struct foo_s);")
        lib = ffi.verify("""
            struct foo_s {
                double b;
                long a;
            };
            int foo1(struct foo_s s) {
                return (int)s.a - (int)s.b;
            }
            static int (*foo)(struct foo_s s) = &foo1;
>       """)

testing/cffi0/test_verify.py:1087: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
___________________________ test_func_returns_struct ___________________________

    def test_func_returns_struct():
        ffi = FFI()
        ffi.cdef("""
            struct foo_s { int aa, bb; };
            struct foo_s foo(int a, int b);
        """)
        lib = ffi.verify("""
            struct foo_s { int aa, bb; };
            struct foo_s foo(int a, int b) {
                struct foo_s r;
                r.aa = a*a;
                r.bb = b*b;
                return r;
            }
>       """)

testing/cffi0/test_verify.py:1112: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_____________________________ test_func_as_funcptr _____________________________

    def test_func_as_funcptr():
        ffi = FFI()
        ffi.cdef("int *(*const fooptr)(void);")
        lib = ffi.verify("""
            int *foo(void) {
                return (int*)"foobar";
            }
            int *(*fooptr)(void) = foo;
>       """)

testing/cffi0/test_verify.py:1126: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
___________________________ test_funcptr_as_argument ___________________________

    def test_funcptr_as_argument():
        ffi = FFI()
        ffi.cdef("""
            void qsort(void *base, size_t nel, size_t width,
                int (*compar)(const void *, const void *));
        """)
>       ffi.verify("#include ")

testing/cffi0/test_verify.py:1137: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
____________________________ test_func_as_argument _____________________________

    def test_func_as_argument():
        ffi = FFI()
        ffi.cdef("""
            void qsort(void *base, size_t nel, size_t width,
                int compar(const void *, const void *));
        """)
>       ffi.verify("#include ")

testing/cffi0/test_verify.py:1145: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
____________________________ test_array_as_argument ____________________________

    def test_array_as_argument():
        ffi = FFI()
        ffi.cdef("""
            size_t strlen(char string[]);
        """)
>       ffi.verify("#include ")

testing/cffi0/test_verify.py:1152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
____________________________ test_enum_as_argument _____________________________

    def test_enum_as_argument():
        ffi = FFI()
        ffi.cdef("""
            enum foo_e { AA, BB, ... };
            int foo_func(enum foo_e);
        """)
        lib = ffi.verify("""
            enum foo_e { AA, CC, BB };
            int foo_func(enum foo_e e) { return (int)e; }
>       """)

testing/cffi0/test_verify.py:1163: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_________________________ test_enum_as_function_result _________________________

    def test_enum_as_function_result():
        ffi = FFI()
        ffi.cdef("""
            enum foo_e { AA, BB, ... };
            enum foo_e foo_func(int x);
        """)
        lib = ffi.verify("""
            enum foo_e { AA, CC, BB };
            enum foo_e foo_func(int x) { return (enum foo_e)x; }
>       """)

testing/cffi0/test_verify.py:1176: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_______________________________ test_enum_values _______________________________

    def test_enum_values():
        ffi = FFI()
        ffi.cdef("enum enum1_e { AA, BB };")
>       lib = ffi.verify("enum enum1_e { AA, BB };")

testing/cffi0/test_verify.py:1182: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
__________________________ test_typedef_complete_enum __________________________

    def test_typedef_complete_enum():
        ffi = FFI()
        ffi.cdef("typedef enum { AA, BB } enum1_t;")
>       lib = ffi.verify("typedef enum { AA, BB } enum1_t;")

testing/cffi0/test_verify.py:1190: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_________________________ test_typedef_incomplete_enum _________________________

    def test_typedef_incomplete_enum():
        ffi = FFI()
        ffi.cdef("typedef enum { AA, BB, ... } enum1_t;")
>       lib = ffi.verify("typedef enum { AA, CC, BB } enum1_t;")

testing/cffi0/test_verify.py:1204: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
________________________ test_typedef_enum_as_argument _________________________

    def test_typedef_enum_as_argument():
        ffi = FFI()
        ffi.cdef("""
            typedef enum { AA, BB, ... } foo_t;
            int foo_func(foo_t);
        """)
        lib = ffi.verify("""
            typedef enum { AA, CC, BB } foo_t;
            int foo_func(foo_t e) { return (int)e; }
>       """)

testing/cffi0/test_verify.py:1219: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_____________________ test_typedef_enum_as_function_result _____________________

    def test_typedef_enum_as_function_result():
        ffi = FFI()
        ffi.cdef("""
            typedef enum { AA, BB, ... } foo_t;
            foo_t foo_func(int x);
        """)
        lib = ffi.verify("""
            typedef enum { AA, CC, BB } foo_t;
            foo_t foo_func(int x) { return (foo_t)x; }
>       """)

testing/cffi0/test_verify.py:1232: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
____________________________ test_function_typedef _____________________________

    def test_function_typedef():
        ffi = FFI()
        ffi.cdef("""
            typedef double func_t(double);
            func_t sin;
        """)
>       lib = ffi.verify('#include ', libraries=lib_m)

testing/cffi0/test_verify.py:1241: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
____________________ test_opaque_integer_as_function_result ____________________

    def test_opaque_integer_as_function_result():
        #import platform
        #if platform.machine().startswith('sparc'):
        #    py.test.skip('Breaks horribly on sparc (SIGILL + corrupted stack)')
        #elif platform.machine() == 'mips64' and sys.maxsize > 2**32:
        #    py.test.skip('Segfaults on mips64el')
        # XXX bad abuse of "struct { ...; }".  It only works a bit by chance
        # anyway.  XXX think about something better :-(
        ffi = FFI()
        ffi.cdef("""
            typedef struct { ...; } myhandle_t;
            myhandle_t foo(void);
        """)
        lib = ffi.verify("""
            typedef short myhandle_t;
            myhandle_t foo(void) { return 42; }
>       """)

testing/cffi0/test_verify.py:1260: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
__________________________ test_return_partial_struct __________________________

    def test_return_partial_struct():
        ffi = FFI()
        ffi.cdef("""
            typedef struct { int x; ...; } foo_t;
            foo_t foo(void);
        """)
        lib = ffi.verify("""
            typedef struct { int y, x; } foo_t;
            foo_t foo(void) { foo_t r = { 45, 81 }; return r; }
>       """)

testing/cffi0/test_verify.py:1273: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_____________________ test_take_and_return_partial_structs _____________________

    def test_take_and_return_partial_structs():
        ffi = FFI()
        ffi.cdef("""
            typedef struct { int x; ...; } foo_t;
            foo_t foo(foo_t, foo_t);
        """)
        lib = ffi.verify("""
            typedef struct { int y, x; } foo_t;
            foo_t foo(foo_t a, foo_t b) {
                foo_t r = { 100, a.x * 5 + b.x * 7 };
                return r;
            }
>       """)

testing/cffi0/test_verify.py:1290: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_______________________ test_dont_check_unnamable_fields _______________________

    def test_dont_check_unnamable_fields():
        ffi = FFI()
        ffi.cdef("struct foo_s { struct { int x; } someone; };")
>       ffi.verify("struct foo_s { struct { int x; } someone; };")

testing/cffi0/test_verify.py:1308: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
______________________ test_nested_anonymous_struct_exact ______________________

    def test_nested_anonymous_struct_exact():
        if sys.platform == 'win32':
            py.test.skip("nested anonymous struct/union")
        ffi = FFI()
        ffi.cdef("""
            struct foo_s { struct { int a; char b; }; union { char c, d; }; };
        """)
        ffi.verify("""
            struct foo_s { struct { int a; char b; }; union { char c, d; }; };
>       """)

testing/cffi0/test_verify.py:1320: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
____________________ test_nested_anonymous_struct_inexact_1 ____________________

    def test_nested_anonymous_struct_inexact_1():
        ffi = FFI()
        ffi.cdef("""
            struct foo_s { struct { char b; ...; }; union { char c, d; }; };
        """)
        ffi.verify("""
            struct foo_s { int a, padding; char c, d, b; };
>       """)

testing/cffi0/test_verify.py:1352: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
____________________ test_nested_anonymous_struct_inexact_2 ____________________

    def test_nested_anonymous_struct_inexact_2():
        ffi = FFI()
        ffi.cdef("""
            struct foo_s { union { char c, d; }; struct { int a; char b; }; ...; };
        """)
        ffi.verify("""
            struct foo_s { int a, padding; char c, d, b; };
>       """)

testing/cffi0/test_verify.py:1362: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
________________________________ test_ffi_union ________________________________

    def test_ffi_union():
        ffi = FFI()
        ffi.cdef("union foo_u { char x; long *z; };")
>       ffi.verify("union foo_u { char x; int y; long *z; };")

testing/cffi0/test_verify.py:1368: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
____________________________ test_ffi_union_partial ____________________________

    def test_ffi_union_partial():
        ffi = FFI()
        ffi.cdef("union foo_u { char x; ...; };")
>       ffi.verify("union foo_u { char x; int y; };")

testing/cffi0/test_verify.py:1373: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
______________________ test_ffi_union_with_partial_struct ______________________

    def test_ffi_union_with_partial_struct():
        ffi = FFI()
        ffi.cdef("struct foo_s { int x; ...; }; union foo_u { struct foo_s s; };")
>       ffi.verify("struct foo_s { int a; int x; }; "
                   "union foo_u { char b[32]; struct foo_s s; };")

testing/cffi0/test_verify.py:1379: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
___________________________ test_ffi_union_partial_2 ___________________________

    def test_ffi_union_partial_2():
        ffi = FFI()
        ffi.cdef("typedef union { char x; ...; } u1;")
>       ffi.verify("typedef union { char x; int y; } u1;")

testing/cffi0/test_verify.py:1387: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_____________________ test_ffi_union_with_partial_struct_2 _____________________

    def test_ffi_union_with_partial_struct_2():
        ffi = FFI()
        ffi.cdef("typedef struct { int x; ...; } s1;"
                 "typedef union { s1 s; } u1;")
>       ffi.verify("typedef struct { int a; int x; } s1; "
                   "typedef union { char b[32]; s1 s; } u1;")

testing/cffi0/test_verify.py:1394: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
____________________________ test_ffi_struct_packed ____________________________

    def test_ffi_struct_packed():
        if sys.platform == 'win32':
            py.test.skip("needs a GCC extension")
        ffi = FFI()
        ffi.cdef("struct foo_s { int b; ...; };")
        ffi.verify("""
            struct foo_s {
                char a;
                int b;
            } __attribute__((packed));
>       """)

testing/cffi0/test_verify.py:1410: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_________________________________ test_tmpdir __________________________________

    def test_tmpdir():
        import tempfile, os
        from testing.udir import udir
        tmpdir = tempfile.mkdtemp(dir=str(udir))
        ffi = FFI()
        ffi.cdef("int foo(int);")
>       lib = ffi.verify("int foo(int a) { return a + 42; }", tmpdir=tmpdir)

testing/cffi0/test_verify.py:1418: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/tmp/ffi-0/tmp6Sor9R'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_______________________________ test_relative_to _______________________________

    def test_relative_to():
        import tempfile, os
        from testing.udir import udir
        tmpdir = tempfile.mkdtemp(dir=str(udir))
        ffi = FFI()
        ffi.cdef("int foo(int);")
        f = open(os.path.join(tmpdir, 'foo.h'), 'w')
        f.write("int foo(int a) { return a + 42; }\n")
        f.close()
        lib = ffi.verify('#include "foo.h"',
                         include_dirs=['.'],
>                        relative_to=os.path.join(tmpdir, 'x'))

testing/cffi0/test_verify.py:1433: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
__________________________________ test_bug1 ___________________________________

    def test_bug1():
        ffi = FFI()
        ffi.cdef("""
            typedef struct tdlhandle_s { ...; } *tdl_handle_t;
            typedef struct my_error_code_ {
                tdl_handle_t *rh;
            } my_error_code_t;
        """)
        ffi.verify("""
            typedef struct tdlhandle_s { int foo; } *tdl_handle_t;
            typedef struct my_error_code_ {
                tdl_handle_t *rh;
            } my_error_code_t;
>       """)

testing/cffi0/test_verify.py:1449: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
__________________________________ test_bool ___________________________________

    def test_bool():
        if sys.platform == 'win32':
            py.test.skip("_Bool not in MSVC")
        ffi = FFI()
        ffi.cdef("struct foo_s { _Bool x; };"
                 "_Bool foo(_Bool); static _Bool (*foop)(_Bool);")
        lib = ffi.verify("""
            struct foo_s { _Bool x; };
            int foo(int arg) {
                return !arg;
            }
            _Bool _foofunc(_Bool x) {
                return !x;
            }
            static _Bool (*foop)(_Bool) = _foofunc;
>       """)

testing/cffi0/test_verify.py:1466: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
___________________________ test_bool_on_long_double ___________________________

    def test_bool_on_long_double():
        if sys.platform == 'win32':
            py.test.skip("_Bool not in MSVC")
        f = 1E-250
        if f == 0.0 or f*f != 0.0:
            py.test.skip("unexpected precision")
        ffi = FFI()
        ffi.cdef("long double square(long double f); _Bool opposite(_Bool);")
>       lib = ffi.verify("long double square(long double f) { return f*f; }\n"
                         "_Bool opposite(_Bool x) { return !x; }")

testing/cffi0/test_verify.py:1514: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
____________________________ test_cannot_pass_float ____________________________

    def test_cannot_pass_float():
        for basetype in ['char', 'short', 'int', 'long', 'long long']:
            for sign in ['signed', 'unsigned']:
                type = '%s %s' % (sign, basetype)
                ffi = FFI()
                ffi.cdef("struct foo_s { %s x; };\n"
                         "int foo(%s);" % (type, type))
                lib = ffi.verify("""
                    struct foo_s { %s x; };
                    int foo(%s arg) {
                        return !arg;
                    }
>               """ % (type, type))

testing/cffi0/test_verify.py:1539: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
________________________________ test_addressof ________________________________

    def test_addressof():
        ffi = FFI()
        ffi.cdef("""
            struct point_s { int x, y; };
            struct foo_s { int z; struct point_s point; };
            struct point_s sum_coord(struct point_s *);
        """)
        lib = ffi.verify("""
            struct point_s { int x, y; };
            struct foo_s { int z; struct point_s point; };
            struct point_s sum_coord(struct point_s *point) {
                struct point_s r;
                r.x = point->x + point->y;
                r.y = point->x - point->y;
                return r;
            }
>       """)

testing/cffi0/test_verify.py:1572: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
______________________________ test_keepalive_lib ______________________________

    def test_keepalive_lib():
        ffi = FFI()
        ffi.cdef("int foobar(void);")
>       lib = ffi.verify("int foobar(void) { return 42; }")

testing/cffi0/test_verify.py:1598: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
______________________________ test_keepalive_ffi ______________________________

    def test_keepalive_ffi():
        ffi = FFI()
        ffi.cdef("int foobar(void);")
>       lib = ffi.verify("int foobar(void) { return 42; }")

testing/cffi0/test_verify.py:1611: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_________________________ test_FILE_stored_explicitly __________________________

    def test_FILE_stored_explicitly():
        ffi = FFI()
        ffi.cdef("int myprintf11(const char *, int); extern FILE *myfile;")
        lib = ffi.verify("""
            #include 
            FILE *myfile;
            int myprintf11(const char *out, int value) {
                return fprintf(myfile, out, value);
            }
>       """)

testing/cffi0/test_verify.py:1663: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
____________________ test_global_array_with_missing_length _____________________

    def test_global_array_with_missing_length():
        ffi = FFI()
        ffi.cdef("extern int fooarray[];")
>       lib = ffi.verify("int fooarray[50];")

testing/cffi0/test_verify.py:1683: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
___________________ test_global_array_with_dotdotdot_length ____________________

    def test_global_array_with_dotdotdot_length():
        ffi = FFI()
        ffi.cdef("extern int fooarray[...];")
>       lib = ffi.verify("int fooarray[50];")

testing/cffi0/test_verify.py:1689: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
________________________ test_struct_containing_struct _________________________

    def test_struct_containing_struct():
        ffi = FFI()
        ffi.cdef("struct foo_s { ...; }; struct bar_s { struct foo_s f; ...; };")
>       ffi.verify("struct foo_s { int x; }; struct bar_s { struct foo_s f; };")

testing/cffi0/test_verify.py:1700: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_________________________________ test_include _________________________________

    def test_include():
        ffi1 = FFI()
        ffi1.cdef("typedef struct { int x; ...; } foo_t;")
>       ffi1.verify("typedef struct { int y, x; } foo_t;")

testing/cffi0/test_verify.py:1718: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
______________________________ test_include_enum _______________________________

    def test_include_enum():
        ffi1 = FFI()
        ffi1.cdef("enum foo_e { AA, ... };")
>       lib1 = ffi1.verify("enum foo_e { CC, BB, AA };")

testing/cffi0/test_verify.py:1732: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
________________________ test_named_pointer_as_argument ________________________

    def test_named_pointer_as_argument():
        ffi = FFI()
        ffi.cdef("typedef struct { int x; } *mystruct_p;\n"
                 "mystruct_p ff5a(mystruct_p);")
>       lib = ffi.verify("typedef struct { int x; } *mystruct_p;\n"
                         "mystruct_p ff5a(mystruct_p p) { p->x += 40; return p; }")

testing/cffi0/test_verify.py:1745: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
________________________________ test_enum_size ________________________________

    def test_enum_size():
        cases = [('123',           4, 4294967295),
                 ('4294967295U',   4, 4294967295),
                 ('-123',          4, -1),
                 ('-2147483647-1', 4, -1),
                 ]
        if FFI().sizeof("long") == 8:
            cases += [('4294967296L',        8, 2**64-1),
                      ('%dUL' % (2**64-1),   8, 2**64-1),
                      ('-2147483649L',       8, -1),
                      ('%dL-1L' % (1-2**63), 8, -1)]
        for hidden_value, expected_size, expected_minus1 in cases:
            if sys.platform == 'win32' and 'U' in hidden_value:
                continue   # skipped on Windows
            ffi = FFI()
            ffi.cdef("enum foo_e { AA, BB, ... };")
>           lib = ffi.verify("enum foo_e { AA, BB=%s };" % hidden_value)

testing/cffi0/test_verify.py:1768: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_______________________________ test_enum_bug118 _______________________________

    def test_enum_bug118():
        maxulong = 256 ** FFI().sizeof("unsigned long") - 1
        for c1, c2, c2c in [(0xffffffff, -1, ''),
                            (maxulong, -1, ''),
                            (-1, 0xffffffff, 'U'),
                            (-1, maxulong, 'UL')]:
            if c2c and sys.platform == 'win32':
                continue     # enums may always be signed with MSVC
            ffi = FFI()
            ffi.cdef("enum foo_e { AA=%s };" % c1)
            e = py.test.raises(VerificationError, ffi.verify,
                               "enum foo_e { AA=%s%s };" % (c2, c2c))
>           assert str(e.value) == ('enum foo_e: AA has the real value %d, not %d'
                                    % (c2, c1))
E           AssertionError: assert 'CompileError...exit status 1' == 'enum foo_e: A...ot 4294967295'
E             - CompileError: command 'cc' failed with exit status 1
E             + enum foo_e: AA has the real value -1, not 4294967295

testing/cffi0/test_verify.py:1795: AssertionError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
___________________________ test_string_to_voidp_arg ___________________________

    def test_string_to_voidp_arg():
        ffi = FFI()
        ffi.cdef("int myfunc(void *);")
>       lib = ffi.verify("int myfunc(void *p) { return ((signed char *)p)[0]; }")

testing/cffi0/test_verify.py:1801: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
__________________________ test_callback_indirection ___________________________

    def test_callback_indirection():
        ffi = FFI()
        ffi.cdef("""
            static int (*python_callback)(int how_many, int *values);
            int (*const c_callback)(int,...);   /* pass this ptr to C routines */
            int some_c_function(int(*cb)(int,...));
        """)
        lib = ffi.verify("""
            #include 
            #ifdef _WIN32
            #include 
            #define alloca _alloca
            #else
            # ifdef __FreeBSD__
            #  include 
            # else
            #  include 
            # endif
            #endif
            static int (*python_callback)(int how_many, int *values);
            static int c_callback(int how_many, ...) {
                va_list ap;
                /* collect the "..." arguments into the values[] array */
                int i, *values = alloca((size_t)how_many * sizeof(int));
                va_start(ap, how_many);
                for (i=0; i       """)

testing/cffi0/test_verify.py:1847: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
___________________________ test_floatstar_argument ____________________________

    def test_floatstar_argument():
        ffi = FFI()
        ffi.cdef("float sum3floats(float *);")
        lib = ffi.verify("""
            float sum3floats(float *f) {
                return f[0] + f[1] + f[2];
            }
>       """)

testing/cffi0/test_verify.py:1866: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
____________________________ test_charstar_argument ____________________________

    def test_charstar_argument():
        ffi = FFI()
        ffi.cdef("char sum3chars(char *);")
        lib = ffi.verify("""
            char sum3chars(char *f) {
                return (char)(f[0] + f[1] + f[2]);
            }
>       """)

testing/cffi0/test_verify.py:1878: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_________________________ test_passing_string_or_NULL __________________________

    def test_passing_string_or_NULL():
        ffi = FFI()
        ffi.cdef("int seeme1(char *); int seeme2(int *);")
        lib = ffi.verify("""
            int seeme1(char *x) {
                return (x == NULL);
            }
            int seeme2(int *x) {
                return (x == NULL);
            }
>       """)

testing/cffi0/test_verify.py:1893: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_____________________________ test_typeof_function _____________________________

    def test_typeof_function():
        ffi = FFI()
        ffi.cdef("int foo(int, char);")
>       lib = ffi.verify("int foo(int x, char y) { (void)x; (void)y; return 42; }")

testing/cffi0/test_verify.py:1911: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_________________________ test_call_with_voidstar_arg __________________________

    def test_call_with_voidstar_arg():
        ffi = FFI()
        ffi.cdef("int f(void *);")
>       lib = ffi.verify("int f(void *x) { return ((char*)x)[0]; }")

testing/cffi0/test_verify.py:1919: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
___________________________________ test_dir ___________________________________

>   ???

testing/cffi0/test_verify.py:1933: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
____________________ test_typeof_func_with_struct_argument _____________________

    def test_typeof_func_with_struct_argument():
        ffi = FFI()
        ffi.cdef("""struct s { int a; }; int foo(struct s);""")
        lib = ffi.verify("""struct s { int a; };
>                           int foo(struct s x) { return x.a; }""")

testing/cffi0/test_verify.py:1941: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_______________________ test_bug_const_char_ptr_array_1 ________________________

    def test_bug_const_char_ptr_array_1():
        ffi = FFI()
        ffi.cdef("""extern const char *a[...];""")
>       lib = ffi.verify("""const char *a[5];""")

testing/cffi0/test_verify.py:1950: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
__________________________ test_various_calls_direct ___________________________

    def test_various_calls_direct():
>       _test_various_calls(force_libffi=False)

testing/cffi0/test_verify.py:2056: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:2023: in _test_various_calls
    """)
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
__________________________ test_various_calls_libffi ___________________________

    def test_various_calls_libffi():
>       _test_various_calls(force_libffi=True)

testing/cffi0/test_verify.py:2059: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:2023: in _test_various_calls
    """)
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
______________________________ test_ptr_to_opaque ______________________________

    def test_ptr_to_opaque():
        ffi = FFI()
        ffi.cdef("typedef ... foo_t; int f1(foo_t*); foo_t *f2(int);")
        lib = ffi.verify("""
            #include 
            typedef struct { int x; } foo_t;
            int f1(foo_t* p) {
                int x = p->x;
                free(p);
                return x;
            }
            foo_t *f2(int x) {
                foo_t *p = malloc(sizeof(foo_t));
                p->x = x;
                return p;
            }
>       """)

testing/cffi0/test_verify.py:2077: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
____________________ test_errno_working_even_with_pypys_jit ____________________

    def test_errno_working_even_with_pypys_jit():
        # NOTE: on some platforms, to work correctly, this test needs to be
        # compiled with -pthread.  Otherwise, the accesses to errno done from f()
        # are compiled by assuming this small library won't be used from multiple
        # threads, which is wrong.  If you see failures _and_ if you pass your
        # own CFLAGS environment variable, please make sure "-pthread" is in it.
        ffi = FFI()
        ffi.cdef("int f(int);")
        lib = ffi.verify("""
            #include 
            int f(int x) { return (errno = errno + x); }
>       """)

testing/cffi0/test_verify.py:2118: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
___________________________ test_verify_dlopen_flags ___________________________

    def test_verify_dlopen_flags():
        # Careful with RTLD_GLOBAL.  If by chance the FFI is not deleted
        # promptly, like on PyPy, then other tests may see the same
        # exported symbols as well.  So we must not export a simple name
        # like 'foo'!
        ffi1 = FFI()
        ffi1.cdef("extern int foo_verify_dlopen_flags;")
    
        lib1 = ffi1.verify("int foo_verify_dlopen_flags;",
>                          flags=ffi1.RTLD_GLOBAL | ffi1.RTLD_LAZY)

testing/cffi0/test_verify.py:2153: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_________________________ test_verify_extra_arguments __________________________

    def test_verify_extra_arguments():
        ffi = FFI()
        ffi.cdef("#define ABA ...")
>       lib = ffi.verify("", define_macros=[('ABA', '42')])

testing/cffi0/test_verify.py:2203: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
______________________________ test_use_local_dir ______________________________

    def test_use_local_dir():
        ffi = FFI()
>       lib = ffi.verify("", modulename="test_use_local_dir")

testing/cffi0/test_verify.py:2234: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
___________________________ test_define_known_value ____________________________

    def test_define_known_value():
        ffi = FFI()
        ffi.cdef("#define FOO 0x123")
>       lib = ffi.verify("#define FOO 0x123")

testing/cffi0/test_verify.py:2242: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
___________________________ test_define_wrong_value ____________________________

    def test_define_wrong_value():
        ffi = FFI()
        ffi.cdef("#define FOO 123")
        e = py.test.raises(VerificationError, ffi.verify, "#define FOO 124")
>       assert str(e.value).endswith("FOO has the real value 124, not 123")
E       assert False
E        +  where False = ('FOO has the real value 124, not 123')
E        +    where  = "CompileError: command 'cc' failed with exit status 1".endswith
E        +      where "CompileError: command 'cc' failed with exit status 1" = str(VerificationError("CompileError: command 'cc' failed with exit status 1",))
E        +        where VerificationError("CompileError: command 'cc' failed with exit status 1",) = .value

testing/cffi0/test_verify.py:2249: AssertionError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
______________________ test_static_const_int_known_value _______________________

    def test_static_const_int_known_value():
        ffi = FFI()
        ffi.cdef("static const int FOO = 0x123;")
>       lib = ffi.verify("#define FOO 0x123")

testing/cffi0/test_verify.py:2254: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
______________________ test_static_const_int_wrong_value _______________________

    def test_static_const_int_wrong_value():
        ffi = FFI()
        ffi.cdef("static const int FOO = 123;")
        e = py.test.raises(VerificationError, ffi.verify, "#define FOO 124")
>       assert str(e.value).endswith("FOO has the real value 124, not 123")
E       assert False
E        +  where False = ('FOO has the real value 124, not 123')
E        +    where  = "CompileError: command 'cc' failed with exit status 1".endswith
E        +      where "CompileError: command 'cc' failed with exit status 1" = str(VerificationError("CompileError: command 'cc' failed with exit status 1",))
E        +        where VerificationError("CompileError: command 'cc' failed with exit status 1",) = .value

testing/cffi0/test_verify.py:2261: AssertionError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
___________________________ test_const_struct_global ___________________________

    def test_const_struct_global():
        ffi = FFI()
        ffi.cdef("typedef struct { int x; ...; } T; const T myglob;")
>       lib = ffi.verify("typedef struct { double y; int x; } T;"
                         "const T myglob = { 0.1, 42 };")

testing/cffi0/test_verify.py:2266: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
______________________________ test_const_fields _______________________________

    def test_const_fields():
        ffi = FFI()
        ffi.cdef("""struct foo_s { const int a; void *const b; };""")
>       ffi.verify("""struct foo_s { const int a; void *const b; };""")

testing/cffi0/test_verify.py:2286: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_______________________ test_win32_calling_convention_0 ________________________

    def test_win32_calling_convention_0():
        ffi = FFI()
        ffi.cdef("""
            int call1(int(__cdecl   *cb)(int));
            int (*const call2)(int(__stdcall *cb)(int));
        """)
        lib = ffi.verify(r"""
            #ifndef _MSC_VER
            #  define __stdcall  /* nothing */
            #endif
            int call1(int(*cb)(int)) {
                int i, result = 0;
                //printf("call1: cb = %p\n", cb);
                for (i = 0; i < 1000; i++)
                    result += cb(i);
                //printf("result = %d\n", result);
                return result;
            }
            int call2(int(__stdcall *cb)(int)) {
                int i, result = 0;
                //printf("call2: cb = %p\n", cb);
                for (i = 0; i < 1000; i++)
                    result += cb(-i);
                //printf("result = %d\n", result);
                return result;
            }
>       """)

testing/cffi0/test_verify.py:2319: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_______________________ test_win32_calling_convention_1 ________________________

    def test_win32_calling_convention_1():
        ffi = FFI()
        ffi.cdef("""
            int __cdecl   call1(int(__cdecl   *cb)(int));
            int __stdcall call2(int(__stdcall *cb)(int));
            int (__cdecl   *const cb1)(int);
            int (__stdcall *const cb2)(int);
        """)
        lib = ffi.verify(r"""
            #ifndef _MSC_VER
            #  define __cdecl
            #  define __stdcall
            #endif
            int __cdecl   cb1(int x) { return x * 2; }
            int __stdcall cb2(int x) { return x * 3; }
    
            int __cdecl call1(int(__cdecl *cb)(int)) {
                int i, result = 0;
                //printf("here1\n");
                //printf("cb = %p, cb1 = %p\n", cb, (void *)cb1);
                for (i = 0; i < 1000; i++)
                    result += cb(i);
                //printf("result = %d\n", result);
                return result;
            }
            int __stdcall call2(int(__stdcall *cb)(int)) {
                int i, result = 0;
                //printf("here1\n");
                //printf("cb = %p, cb2 = %p\n", cb, (void *)cb2);
                for (i = 0; i < 1000; i++)
                    result += cb(-i);
                //printf("result = %d\n", result);
                return result;
            }
>       """)

testing/cffi0/test_verify.py:2379: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_______________________ test_win32_calling_convention_2 ________________________

    def test_win32_calling_convention_2():
        # any mistake in the declaration of plain function (including the
        # precise argument types and, here, the calling convention) are
        # automatically corrected.  But this does not apply to the 'cb'
        # function pointer argument.
        ffi = FFI()
        ffi.cdef("""
            int __stdcall call1(int(__cdecl   *cb)(int));
            int __cdecl   call2(int(__stdcall *cb)(int));
            int (__cdecl   *const cb1)(int);
            int (__stdcall *const cb2)(int);
        """)
        lib = ffi.verify(r"""
            #ifndef _MSC_VER
            #  define __cdecl
            #  define __stdcall
            #endif
            int __cdecl call1(int(__cdecl *cb)(int)) {
                int i, result = 0;
                for (i = 0; i < 1000; i++)
                    result += cb(i);
                return result;
            }
            int __stdcall call2(int(__stdcall *cb)(int)) {
                int i, result = 0;
                for (i = 0; i < 1000; i++)
                    result += cb(-i);
                return result;
            }
            int __cdecl   cb1(int x) { return x * 2; }
            int __stdcall cb2(int x) { return x * 3; }
>       """)

testing/cffi0/test_verify.py:2414: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_______________________ test_win32_calling_convention_3 ________________________

    def test_win32_calling_convention_3():
        ffi = FFI()
        ffi.cdef("""
            struct point { int x, y; };
    
            int (*const cb1)(struct point);
            int (__stdcall *const cb2)(struct point);
    
            struct point __stdcall call1(int(*cb)(struct point));
            struct point call2(int(__stdcall *cb)(struct point));
        """)
        lib = ffi.verify(r"""
            #ifndef _MSC_VER
            #  define __cdecl
            #  define __stdcall
            #endif
            struct point { int x, y; };
            int           cb1(struct point pt) { return pt.x + 10 * pt.y; }
            int __stdcall cb2(struct point pt) { return pt.x + 100 * pt.y; }
            struct point __stdcall call1(int(__cdecl *cb)(struct point)) {
                int i;
                struct point result = { 0, 0 };
                //printf("here1\n");
                //printf("cb = %p, cb1 = %p\n", cb, (void *)cb1);
                for (i = 0; i < 1000; i++) {
                    struct point p = { i, -i };
                    int r = cb(p);
                    result.x += r;
                    result.y -= r;
                }
                return result;
            }
            struct point __cdecl call2(int(__stdcall *cb)(struct point)) {
                int i;
                struct point result = { 0, 0 };
                for (i = 0; i < 1000; i++) {
                    struct point p = { -i, i };
                    int r = cb(p);
                    result.x += r;
                    result.y -= r;
                }
                return result;
            }
>       """)

testing/cffi0/test_verify.py:2461: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
___________________________ test_arithmetic_in_cdef ____________________________

    def test_arithmetic_in_cdef():
        for a in [0, 11, 15]:
            ffi = FFI()
            ffi.cdef("""
                enum FOO {
                    DIVNN = ((-?) / (-3)),
                    DIVNP = ((-?) / (+3)),
                    DIVPN = ((+?) / (-3)),
                    MODNN = ((-?) % (-3)),
                    MODNP = ((-?) % (+3)),
                    MODPN = ((+?) % (-3)),
                    };
            """.replace('?', str(a)))
            lib = ffi.verify("""
                enum FOO {
                    DIVNN = ((-?) / (-3)),
                    DIVNP = ((-?) / (+3)),
                    DIVPN = ((+?) / (-3)),
                    MODNN = ((-?) % (-3)),
                    MODNP = ((-?) % (+3)),
                    MODPN = ((+?) % (-3)),
                    };
>           """.replace('?', str(a)))

testing/cffi0/test_verify.py:2560: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_______________________________ test_module_type _______________________________

    def test_module_type():
        import cffi.verifier
        ffi = FFI()
>       lib = ffi.verify()

testing/cffi0/test_verify.py:58: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_______________________________ test_simple_case _______________________________

    def test_simple_case():
        ffi = FFI()
        ffi.cdef("double sin(double x);")
>       lib = ffi.verify('#include ', libraries=lib_m)

testing/cffi0/test_verify.py:92: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
__________________________ test_Wconversion_unsigned ___________________________

    def test_Wconversion_unsigned():
        _Wconversion("unsigned foo(void);",
>                    "int foo(void) { return -1;}")

testing/cffi0/test_verify.py:111: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:104: in _Wconversion
    lib = ffi.verify(source, **kargs)
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
___________________________ test_Wconversion_integer ___________________________

    def test_Wconversion_integer():
        _Wconversion("short foo(void);",
>                    "long long foo(void) { return 1<
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
__________________________ test_Wconversion_floating ___________________________

    def test_Wconversion_floating():
        lib = _Wconversion("float sin(double);",
>                          "#include ", libraries=lib_m)

testing/cffi0/test_verify.py:119: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:104: in _Wconversion
    lib = ffi.verify(source, **kargs)
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
__________________________ test_Wconversion_float2int __________________________

    def test_Wconversion_float2int():
        _Wconversion("int sinf(float);",
>                    "#include ", libraries=lib_m)

testing/cffi0/test_verify.py:126: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:104: in _Wconversion
    lib = ffi.verify(source, **kargs)
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_________________________ test_Wconversion_double2int __________________________

    def test_Wconversion_double2int():
        _Wconversion("int sin(double);",
>                    "#include ", libraries=lib_m)

testing/cffi0/test_verify.py:130: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:104: in _Wconversion
    lib = ffi.verify(source, **kargs)
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_______________________________ test_rounding_1 ________________________________

    def test_rounding_1():
        ffi = FFI()
        ffi.cdef("double sinf(float x);")
>       lib = ffi.verify('#include ', libraries=lib_m)

testing/cffi0/test_verify.py:135: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_______________________________ test_rounding_2 ________________________________

    def test_rounding_2():
        ffi = FFI()
        ffi.cdef("double sin(float x);")
>       lib = ffi.verify('#include ', libraries=lib_m)

testing/cffi0/test_verify.py:143: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
______________________________ test_strlen_exact _______________________________

    def test_strlen_exact():
        ffi = FFI()
        ffi.cdef("size_t strlen(const char *s);")
>       lib = ffi.verify("#include ")

testing/cffi0/test_verify.py:151: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
___________________________ test_strlen_approximate ____________________________

    def test_strlen_approximate():
        lib = _Wconversion("int strlen(char *s);",
>                          "#include ")

testing/cffi0/test_verify.py:156: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:104: in _Wconversion
    lib = ffi.verify(source, **kargs)
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
___________________________ test_return_approximate ____________________________

    def test_return_approximate():
        for typename in ['short', 'int', 'long', 'long long']:
            ffi = FFI()
            ffi.cdef("%s foo(signed char x);" % typename)
>           lib = ffi.verify("signed char foo(signed char x) { return x;}")

testing/cffi0/test_verify.py:163: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
__________________________ test_strlen_array_of_char ___________________________

    def test_strlen_array_of_char():
        ffi = FFI()
        ffi.cdef("size_t strlen(char[]);")
>       lib = ffi.verify("#include ")

testing/cffi0/test_verify.py:170: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_______________________________ test_longdouble ________________________________

    def test_longdouble():
        ffi = FFI()
        ffi.cdef("long double sinl(long double x);")
>       lib = ffi.verify('#include ', libraries=lib_m)

testing/cffi0/test_verify.py:176: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
__________________________ test_longdouble_precision ___________________________

    def test_longdouble_precision():
        # Test that we don't loose any precision of 'long double' when
        # passing through Python and CFFI.
        ffi = FFI()
        ffi.cdef("long double step1(long double x);")
        SAME_SIZE = ffi.sizeof("long double") == ffi.sizeof("double")
        lib = ffi.verify("""
            long double step1(long double x)
            {
                return 4*x-x*x;
            }
>       """)

testing/cffi0/test_verify.py:195: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_______________________ test_all_integer_and_float_types _______________________

    def test_all_integer_and_float_types():
        typenames = []
        for typename in all_primitive_types:
            if (all_primitive_types[typename] == 'c' or
                all_primitive_types[typename] == 'j' or    # complex
                typename == '_Bool' or typename == 'long double'):
                pass
            else:
                typenames.append(typename)
        #
        ffi = FFI()
        ffi.cdef('\n'.join(["%s foo_%s(%s);" % (tp, tp.replace(' ', '_'), tp)
                           for tp in typenames]))
        lib = ffi.verify('\n'.join(["%s foo_%s(%s x) { return (%s)(x+1); }" %
                                    (tp, tp.replace(' ', '_'), tp, tp)
>                                   for tp in typenames]))

testing/cffi0/test_verify.py:266: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
________________________ test_var_signed_integer_types _________________________

    def test_var_signed_integer_types():
        ffi = FFI()
        lst = all_signed_integer_types(ffi)
        csource = "\n".join(["static %s somevar_%s;" % (tp, tp.replace(' ', '_'))
                             for tp in lst])
        ffi.cdef(csource)
>       lib = ffi.verify(csource)

testing/cffi0/test_verify.py:292: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_______________________ test_var_unsigned_integer_types ________________________

    def test_var_unsigned_integer_types():
        ffi = FFI()
        lst = all_unsigned_integer_types(ffi)
        csource = "\n".join(["static %s somevar_%s;" % (tp, tp.replace(' ', '_'))
                             for tp in lst])
        ffi.cdef(csource)
>       lib = ffi.verify(csource)

testing/cffi0/test_verify.py:311: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_________________________ test_fn_signed_integer_types _________________________

    def test_fn_signed_integer_types():
        ffi = FFI()
        lst = all_signed_integer_types(ffi)
        cdefsrc = "\n".join(["%s somefn_%s(%s);" % (tp, tp.replace(' ', '_'), tp)
                             for tp in lst])
        ffi.cdef(cdefsrc)
        verifysrc = "\n".join(["%s somefn_%s(%s x) { return x; }" %
                               (tp, tp.replace(' ', '_'), tp) for tp in lst])
>       lib = ffi.verify(verifysrc)

testing/cffi0/test_verify.py:334: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
________________________ test_fn_unsigned_integer_types ________________________

    def test_fn_unsigned_integer_types():
        ffi = FFI()
        lst = all_unsigned_integer_types(ffi)
        cdefsrc = "\n".join(["%s somefn_%s(%s);" % (tp, tp.replace(' ', '_'), tp)
                             for tp in lst])
        ffi.cdef(cdefsrc)
        verifysrc = "\n".join(["%s somefn_%s(%s x) { return x; }" %
                               (tp, tp.replace(' ', '_'), tp) for tp in lst])
>       lib = ffi.verify(verifysrc)

testing/cffi0/test_verify.py:354: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
________________________________ test_char_type ________________________________

    def test_char_type():
        ffi = FFI()
        ffi.cdef("char foo(char);")
>       lib = ffi.verify("char foo(char x) { return ++x; }")

testing/cffi0/test_verify.py:371: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_______________________________ test_wchar_type ________________________________

    def test_wchar_type():
        ffi = FFI()
        if ffi.sizeof('wchar_t') == 2:
            uniexample1 = u+'\u1234'
            uniexample2 = u+'\u1235'
        else:
            uniexample1 = u+'\U00012345'
            uniexample2 = u+'\U00012346'
        #
        ffi.cdef("wchar_t foo(wchar_t);")
>       lib = ffi.verify("wchar_t foo(wchar_t x) { return x+1; }")

testing/cffi0/test_verify.py:386: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_______________________________ test_no_argument _______________________________

    def test_no_argument():
        ffi = FFI()
        ffi.cdef("int foo(void);")
>       lib = ffi.verify("int foo(void) { return 42; }")

testing/cffi0/test_verify.py:396: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
______________________________ test_two_arguments ______________________________

    def test_two_arguments():
        ffi = FFI()
        ffi.cdef("int foo(int, int);")
>       lib = ffi.verify("int foo(int a, int b) { return a - b; }")

testing/cffi0/test_verify.py:402: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
__________________________________ test_macro __________________________________

    def test_macro():
        ffi = FFI()
        ffi.cdef("int foo(int, int);")
>       lib = ffi.verify("#define foo(a, b) ((a) * (b))")

testing/cffi0/test_verify.py:408: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
___________________________________ test_ptr ___________________________________

    def test_ptr():
        ffi = FFI()
        ffi.cdef("int *foo(int *);")
>       lib = ffi.verify("int *foo(int *a) { return a; }")

testing/cffi0/test_verify.py:414: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
________________________________ test_bogus_ptr ________________________________

    def test_bogus_ptr():
        ffi = FFI()
        ffi.cdef("int *foo(int *);")
>       lib = ffi.verify("int *foo(int *a) { return a; }")

testing/cffi0/test_verify.py:424: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_____________________________ test_nondecl_struct ______________________________

    def test_nondecl_struct():
        ffi = FFI()
        ffi.cdef("typedef struct foo_s foo_t; int bar(foo_t *);")
>       lib = ffi.verify("typedef struct foo_s foo_t;\n"
                         "int bar(foo_t *f) { (void)f; return 42; }\n")

testing/cffi0/test_verify.py:444: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_____________________________ test_ffi_full_struct _____________________________

    def test_ffi_full_struct():
        ffi = FFI()
        ffi.cdef("struct foo_s { char x; int y; long *z; };")
>       ffi.verify("struct foo_s { char x; int y; long *z; };")

testing/cffi0/test_verify.py:451: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
___________________________ test_ffi_nonfull_struct ____________________________

    def test_ffi_nonfull_struct():
        ffi = FFI()
        ffi.cdef("""
        struct foo_s {
           int x;
           ...;
        };
        """)
        py.test.raises(VerificationMissing, ffi.sizeof, 'struct foo_s')
        py.test.raises(VerificationMissing, ffi.offsetof, 'struct foo_s', 'x')
        py.test.raises(VerificationMissing, ffi.new, 'struct foo_s *')
        ffi.verify("""
        struct foo_s {
           int a, b, x, c, d, e;
        };
>       """)

testing/cffi0/test_verify.py:500: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
__________________________ test_ffi_nonfull_alignment __________________________

    def test_ffi_nonfull_alignment():
        ffi = FFI()
        ffi.cdef("struct foo_s { char x; ...; };")
>       ffi.verify("struct foo_s { int a, b; char x; };")

testing/cffi0/test_verify.py:507: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
________________________ test_struct_bad_sized_integer _________________________

    def test_struct_bad_sized_integer():
        for typename in ['int8_t', 'int16_t', 'int32_t', 'int64_t']:
            for real in ['int8_t', 'int16_t', 'int32_t', 'int64_t']:
>               _check_field_match(typename, real, "by_size")

testing/cffi0/test_verify.py:535: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

typename = 'int8_t', real = 'int8_t', expect_mismatch = False

    def _check_field_match(typename, real, expect_mismatch):
        ffi = FFI()
        testing_by_size = (expect_mismatch == 'by_size')
        if testing_by_size:
            expect_mismatch = ffi.sizeof(typename) != ffi.sizeof(real)
        ffi.cdef("struct foo_s { %s x; ...; };" % typename)
        try:
            ffi.verify("struct foo_s { %s x; };" % real)
        except VerificationError:
            if not expect_mismatch:
                if testing_by_size and typename != real:
                    print("ignoring mismatch between %s* and %s* even though "
                          "they have the same size" % (typename, real))
                    return
                raise AssertionError("unexpected mismatch: %s should be accepted "
>                                    "as equal to %s" % (typename, real))
E               AssertionError: unexpected mismatch: int8_t should be accepted as equal to int8_t

testing/cffi0/test_verify.py:526: AssertionError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_________________________ test_struct_bad_sized_float __________________________

    def test_struct_bad_sized_float():
        for typename in all_float_types:
            for real in all_float_types:
>               _check_field_match(typename, real, "by_size")

testing/cffi0/test_verify.py:540: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

typename = 'double', real = 'double', expect_mismatch = False

    def _check_field_match(typename, real, expect_mismatch):
        ffi = FFI()
        testing_by_size = (expect_mismatch == 'by_size')
        if testing_by_size:
            expect_mismatch = ffi.sizeof(typename) != ffi.sizeof(real)
        ffi.cdef("struct foo_s { %s x; ...; };" % typename)
        try:
            ffi.verify("struct foo_s { %s x; };" % real)
        except VerificationError:
            if not expect_mismatch:
                if testing_by_size and typename != real:
                    print("ignoring mismatch between %s* and %s* even though "
                          "they have the same size" % (typename, real))
                    return
                raise AssertionError("unexpected mismatch: %s should be accepted "
>                                    "as equal to %s" % (typename, real))
E               AssertionError: unexpected mismatch: double should be accepted as equal to double

testing/cffi0/test_verify.py:526: AssertionError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
________________________ test_struct_signedness_ignored ________________________

    def test_struct_signedness_ignored():
>       _check_field_match("int", "unsigned int", expect_mismatch=False)

testing/cffi0/test_verify.py:543: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

typename = 'int', real = 'unsigned int', expect_mismatch = False

    def _check_field_match(typename, real, expect_mismatch):
        ffi = FFI()
        testing_by_size = (expect_mismatch == 'by_size')
        if testing_by_size:
            expect_mismatch = ffi.sizeof(typename) != ffi.sizeof(real)
        ffi.cdef("struct foo_s { %s x; ...; };" % typename)
        try:
            ffi.verify("struct foo_s { %s x; };" % real)
        except VerificationError:
            if not expect_mismatch:
                if testing_by_size and typename != real:
                    print("ignoring mismatch between %s* and %s* even though "
                          "they have the same size" % (typename, real))
                    return
                raise AssertionError("unexpected mismatch: %s should be accepted "
>                                    "as equal to %s" % (typename, real))
E               AssertionError: unexpected mismatch: int should be accepted as equal to unsigned int

testing/cffi0/test_verify.py:526: AssertionError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
___________________________ test_struct_array_field ____________________________

    def test_struct_array_field():
        ffi = FFI()
        ffi.cdef("struct foo_s { int a[17]; ...; };")
>       ffi.verify("struct foo_s { int x; int a[17]; int y; };")

testing/cffi0/test_verify.py:560: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_________________________ test_struct_array_no_length __________________________

    def test_struct_array_no_length():
        ffi = FFI()
        ffi.cdef("struct foo_s { int a[]; int y; ...; };\n"
                 "int bar(struct foo_s *);\n")
>       lib = ffi.verify("struct foo_s { int x; int a[17]; int y; };\n"
                         "int bar(struct foo_s *f) { return f->a[14]; }\n")

testing/cffi0/test_verify.py:569: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
________________________ test_struct_array_guess_length ________________________

    def test_struct_array_guess_length():
        ffi = FFI()
        ffi.cdef("struct foo_s { int a[...]; };")
>       ffi.verify("struct foo_s { int x; int a[17]; int y; };")

testing/cffi0/test_verify.py:590: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
___________________________ test_struct_array_c99_1 ____________________________

    def test_struct_array_c99_1():
        if sys.platform == 'win32':
            py.test.skip("requires C99")
        ffi = FFI()
        ffi.cdef("struct foo_s { int x; int a[]; };")
>       ffi.verify("struct foo_s { int x; int a[]; };")

testing/cffi0/test_verify.py:602: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
___________________________ test_struct_array_c99_2 ____________________________

    def test_struct_array_c99_2():
        if sys.platform == 'win32':
            py.test.skip("requires C99")
        ffi = FFI()
        ffi.cdef("struct foo_s { int x; int a[]; ...; };")
>       ffi.verify("struct foo_s { int x, y; int a[]; };")

testing/cffi0/test_verify.py:625: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
________________________ test_struct_ptr_to_array_field ________________________

    def test_struct_ptr_to_array_field():
        ffi = FFI()
        ffi.cdef("struct foo_s { int (*a)[17]; ...; }; struct bar_s { ...; };")
>       ffi.verify("struct foo_s { int x; int (*a)[17]; int y; };\n"
                   "struct bar_s { int x; int *a; int y; };")

testing/cffi0/test_verify.py:641: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_______________________ test_struct_with_bitfield_exact ________________________

    def test_struct_with_bitfield_exact():
        ffi = FFI()
        ffi.cdef("struct foo_s { int a:2, b:3; };")
>       ffi.verify("struct foo_s { int a:2, b:3; };")

testing/cffi0/test_verify.py:650: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
________________________ test_struct_with_bitfield_enum ________________________

    def test_struct_with_bitfield_enum():
        ffi = FFI()
        code = """
            typedef enum { AA, BB, CC } foo_e;
            typedef struct { foo_e f:2; } foo_s;
        """
        ffi.cdef(code)
>       ffi.verify(code)

testing/cffi0/test_verify.py:664: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
____________________________ test_global_constants _____________________________

    def test_global_constants():
        ffi = FFI()
        # use 'static const int', as generally documented, although in this
        # case the 'static' is completely ignored.
        ffi.cdef("static const int AA, BB, CC, DD;")
>       lib = ffi.verify("#define AA 42\n"
                         "#define BB (-43)   // blah\n"
                         "#define CC (22*2)  /* foobar */\n"
                         "#define DD ((unsigned int)142)  /* foo\nbar */\n")

testing/cffi0/test_verify.py:679: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
__________________________ test_global_const_int_size __________________________

    def test_global_const_int_size():
        # integer constants: ignore the declared type, always just use the value
        for value in [-2**63, -2**31, -2**15,
                      2**15-1, 2**15, 2**31-1, 2**31, 2**32-1, 2**32,
                      2**63-1, 2**63, 2**64-1]:
            ffi = FFI()
            if value == int(ffi.cast("long long", value)):
                if value < 0:
                    vstr = '(-%dLL-1)' % (~value,)
                else:
                    vstr = '%dLL' % value
            elif value == int(ffi.cast("unsigned long long", value)):
                vstr = '%dULL' % value
            else:
                raise AssertionError(value)
            ffi.cdef("static const unsigned short AA;")
>           lib = ffi.verify("#define AA %s\n" % vstr)

testing/cffi0/test_verify.py:704: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
________________________ test_global_constants_non_int _________________________

    def test_global_constants_non_int():
        ffi = FFI()
        ffi.cdef("static char *const PP;")
>       lib = ffi.verify('static char *const PP = "testing!";\n')

testing/cffi0/test_verify.py:711: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
______________________________ test_nonfull_enum _______________________________

    def test_nonfull_enum():
        ffi = FFI()
        ffi.cdef("enum ee { EE1, EE2, EE3, ... \n \t };")
        py.test.raises(VerificationMissing, ffi.cast, 'enum ee', 'EE2')
>       ffi.verify("enum ee { EE1=10, EE2, EE3=-10, EE4 };")

testing/cffi0/test_verify.py:719: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
________________________________ test_full_enum ________________________________

    def test_full_enum():
        ffi = FFI()
        ffi.cdef("enum ee { EE1, EE2, EE3 };")
>       ffi.verify("enum ee { EE1, EE2, EE3 };")

testing/cffi0/test_verify.py:733: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_______________________________ test_enum_usage ________________________________

    def test_enum_usage():
        ffi = FFI()
        ffi.cdef("enum ee { EE1,EE2 }; typedef struct { enum ee x; } *sp;")
>       lib = ffi.verify("enum ee { EE1,EE2 }; typedef struct { enum ee x; } *sp;")

testing/cffi0/test_verify.py:745: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_____________________________ test_anonymous_enum ______________________________

    def test_anonymous_enum():
        ffi = FFI()
        ffi.cdef("enum { EE1 }; enum { EE2, EE3 };")
>       lib = ffi.verify("enum { EE1 }; enum { EE2, EE3 };")

testing/cffi0/test_verify.py:755: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_________________________ test_nonfull_anonymous_enum __________________________

    def test_nonfull_anonymous_enum():
        ffi = FFI()
        ffi.cdef("enum { EE1, ... }; enum { EE3, ... };")
>       lib = ffi.verify("enum { EE2, EE1 }; enum { EE3 };")

testing/cffi0/test_verify.py:763: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
__________________________ test_nonfull_enum_syntax2 ___________________________

    def test_nonfull_enum_syntax2():
        ffi = FFI()
        ffi.cdef("enum ee { EE1, EE2=\t..., EE3 };")
        py.test.raises(VerificationMissing, ffi.cast, 'enum ee', 'EE1')
>       ffi.verify("enum ee { EE1=10, EE2, EE3=-10, EE4 };")

testing/cffi0/test_verify.py:771: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
______________________________ test_get_set_errno ______________________________

    def test_get_set_errno():
        ffi = FFI()
        ffi.cdef("int foo(int);")
        lib = ffi.verify("""
            static int foo(int x)
            {
                errno += 1;
                return x * 7;
            }
>       """)

testing/cffi0/test_verify.py:801: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_______________________________ test_define_int ________________________________

    def test_define_int():
        ffi = FFI()
        ffi.cdef("#define FOO ...\n"
                 "\t#\tdefine\tBAR\t...\t\n"
                 "#define BAZ ...\n")
>       lib = ffi.verify("#define FOO 42\n"
                         "#define BAR (-44)\n"
                         "#define BAZ 0xffffffffffffffffULL\n")

testing/cffi0/test_verify.py:811: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_____________________________ test_access_variable _____________________________

    def test_access_variable():
        ffi = FFI()
        ffi.cdef("static int foo(void);\n"
                 "static int somenumber;")
        lib = ffi.verify("""
            static int somenumber = 2;
            static int foo(void) {
                return somenumber * 7;
            }
>       """)

testing/cffi0/test_verify.py:827: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_______________________ test_access_address_of_variable ________________________

    def test_access_address_of_variable():
        # access the address of 'somenumber': need a trick
        ffi = FFI()
        ffi.cdef("static int somenumber; static int *const somenumberptr;")
        lib = ffi.verify("""
            static int somenumber = 2;
            #define somenumberptr (&somenumber)
>       """)

testing/cffi0/test_verify.py:842: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
__________________________ test_access_array_variable __________________________

length = 5

    def test_access_array_variable(length=5):
        ffi = FFI()
        ffi.cdef("int foo(int);\n"
                 "static int somenumber[%s];" % (length,))
        lib = ffi.verify("""
            static int somenumber[] = {2, 2, 3, 4, 5};
            static int foo(int i) {
                return somenumber[i] * 7;
            }
>       """)

testing/cffi0/test_verify.py:857: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
___________________ test_access_array_variable_length_hidden ___________________

    def test_access_array_variable_length_hidden():
>       test_access_array_variable(length='')

testing/cffi0/test_verify.py:877: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:857: in test_access_array_variable
    """)
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_________________________ test_access_struct_variable __________________________

    def test_access_struct_variable():
        ffi = FFI()
        ffi.cdef("struct foo { int x; ...; };\n"
                 "int foo(int);\n"
                 "static struct foo stuff;")
        lib = ffi.verify("""
            struct foo { int x, y, z; };
            static struct foo stuff = {2, 5, 8};
            static int foo(int i) {
                switch (i) {
                case 0: return stuff.x * 7;
                case 1: return stuff.y * 7;
                case 2: return stuff.z * 7;
                }
                return -1;
            }
>       """)

testing/cffi0/test_verify.py:895: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_____________________________ test_access_callback _____________________________

    def test_access_callback():
        ffi = FFI()
        ffi.cdef("static int (*cb)(int);\n"
                 "static int foo(int);\n"
                 "static void reset_cb(void);")
        lib = ffi.verify("""
            static int g(int x) { return x * 7; }
            static int (*cb)(int);
            static int foo(int i) { return cb(i) - 1; }
            static void reset_cb(void) { cb = g; }
>       """)

testing/cffi0/test_verify.py:915: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
____________________ test_access_callback_function_typedef _____________________

    def test_access_callback_function_typedef():
        ffi = FFI()
        ffi.cdef("typedef int mycallback_t(int);\n"
                 "static mycallback_t *cb;\n"
                 "static int foo(int);\n"
                 "static void reset_cb(void);")
        lib = ffi.verify("""
            static int g(int x) { return x * 7; }
            static int (*cb)(int);
            static int foo(int i) { return cb(i) - 1; }
            static void reset_cb(void) { cb = g; }
>       """)

testing/cffi0/test_verify.py:933: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
__________________ test_ctypes_backend_forces_generic_engine ___________________

    def test_ctypes_backend_forces_generic_engine():
        from cffi.backend_ctypes import CTypesBackend
        ffi = FFI(backend=CTypesBackend())
        ffi.cdef("int func(int a);")
>       lib = ffi.verify("int func(int a) { return a * 42; }")

testing/cffi0/test_verify.py:944: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
__________________________ test_call_with_struct_ptr ___________________________

    def test_call_with_struct_ptr():
        ffi = FFI()
        ffi.cdef("typedef struct { int x; ...; } foo_t; int foo(foo_t *);")
        lib = ffi.verify("""
            typedef struct { int y, x; } foo_t;
            static int foo(foo_t *f) { return f->x * 7; }
>       """)

testing/cffi0/test_verify.py:955: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
______________________________ test_unknown_type _______________________________

    def test_unknown_type():
        ffi = FFI()
        ffi.cdef("""
            typedef ... token_t;
            int foo(token_t *);
            #define TOKEN_SIZE ...
        """)
        lib = ffi.verify("""
            typedef float token_t;
            static int foo(token_t *tk) {
                if (!tk)
                    return -42;
                *tk += 1.601f;
                return (int)*tk;
            }
            #define TOKEN_SIZE sizeof(token_t)
>       """)

testing/cffi0/test_verify.py:976: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_____________________________ test_unknown_type_2 ______________________________

    def test_unknown_type_2():
        ffi = FFI()
        ffi.cdef("typedef ... token_t;")
>       lib = ffi.verify("typedef struct token_s token_t;")

testing/cffi0/test_verify.py:989: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_____________________________ test_unknown_type_3 ______________________________

    def test_unknown_type_3():
        ffi = FFI()
        ffi.cdef("""
            typedef ... *token_p;
            token_p foo(token_p);
        """)
        lib = ffi.verify("""
            typedef struct _token_s *token_p;
            token_p foo(token_p arg) {
                if (arg)
                    return (token_p)0x12347;
                else
                    return (token_p)0x12345;
            }
>       """)

testing/cffi0/test_verify.py:1006: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_________________________________ test_varargs _________________________________

    def test_varargs():
        ffi = FFI()
        ffi.cdef("int foo(int x, ...);")
        lib = ffi.verify("""
            int foo(int x, ...) {
                va_list vargs;
                va_start(vargs, x);
                x -= va_arg(vargs, int);
                x -= va_arg(vargs, int);
                va_end(vargs);
                return x;
            }
>       """)

testing/cffi0/test_verify.py:1024: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_____________________________ test_varargs_struct ______________________________

    def test_varargs_struct():
        ffi = FFI()
        ffi.cdef("struct foo_s { char a; int b; }; int foo(int x, ...);")
        lib = ffi.verify("""
            struct foo_s {
                char a; int b;
            };
            int foo(int x, ...) {
                va_list vargs;
                struct foo_s s;
                va_start(vargs, x);
                s = va_arg(vargs, struct foo_s);
                va_end(vargs);
                return s.a - s.b;
            }
>       """)

testing/cffi0/test_verify.py:1053: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
______________________ test_autofilled_struct_as_argument ______________________

    def test_autofilled_struct_as_argument():
        ffi = FFI()
        ffi.cdef("struct foo_s { long a; double b; ...; };\n"
                 "int foo(struct foo_s);")
        lib = ffi.verify("""
            struct foo_s {
                double b;
                long a;
            };
            int foo(struct foo_s s) {
                return (int)s.a - (int)s.b;
            }
>       """)

testing/cffi0/test_verify.py:1069: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
__________________ test_autofilled_struct_as_argument_dynamic __________________

    def test_autofilled_struct_as_argument_dynamic():
        ffi = FFI()
        ffi.cdef("struct foo_s { long a; ...; };\n"
                 "static int (*foo)(struct foo_s);")
        lib = ffi.verify("""
            struct foo_s {
                double b;
                long a;
            };
            int foo1(struct foo_s s) {
                return (int)s.a - (int)s.b;
            }
            static int (*foo)(struct foo_s s) = &foo1;
>       """)

testing/cffi0/test_verify.py:1087: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
___________________________ test_func_returns_struct ___________________________

    def test_func_returns_struct():
        ffi = FFI()
        ffi.cdef("""
            struct foo_s { int aa, bb; };
            struct foo_s foo(int a, int b);
        """)
        lib = ffi.verify("""
            struct foo_s { int aa, bb; };
            struct foo_s foo(int a, int b) {
                struct foo_s r;
                r.aa = a*a;
                r.bb = b*b;
                return r;
            }
>       """)

testing/cffi0/test_verify.py:1112: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_____________________________ test_func_as_funcptr _____________________________

    def test_func_as_funcptr():
        ffi = FFI()
        ffi.cdef("int *(*const fooptr)(void);")
        lib = ffi.verify("""
            int *foo(void) {
                return (int*)"foobar";
            }
            int *(*fooptr)(void) = foo;
>       """)

testing/cffi0/test_verify.py:1126: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
___________________________ test_funcptr_as_argument ___________________________

    def test_funcptr_as_argument():
        ffi = FFI()
        ffi.cdef("""
            void qsort(void *base, size_t nel, size_t width,
                int (*compar)(const void *, const void *));
        """)
>       ffi.verify("#include ")

testing/cffi0/test_verify.py:1137: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
____________________________ test_func_as_argument _____________________________

    def test_func_as_argument():
        ffi = FFI()
        ffi.cdef("""
            void qsort(void *base, size_t nel, size_t width,
                int compar(const void *, const void *));
        """)
>       ffi.verify("#include ")

testing/cffi0/test_verify.py:1145: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
____________________________ test_array_as_argument ____________________________

    def test_array_as_argument():
        ffi = FFI()
        ffi.cdef("""
            size_t strlen(char string[]);
        """)
>       ffi.verify("#include ")

testing/cffi0/test_verify.py:1152: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
____________________________ test_enum_as_argument _____________________________

    def test_enum_as_argument():
        ffi = FFI()
        ffi.cdef("""
            enum foo_e { AA, BB, ... };
            int foo_func(enum foo_e);
        """)
        lib = ffi.verify("""
            enum foo_e { AA, CC, BB };
            int foo_func(enum foo_e e) { return (int)e; }
>       """)

testing/cffi0/test_verify.py:1163: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_________________________ test_enum_as_function_result _________________________

    def test_enum_as_function_result():
        ffi = FFI()
        ffi.cdef("""
            enum foo_e { AA, BB, ... };
            enum foo_e foo_func(int x);
        """)
        lib = ffi.verify("""
            enum foo_e { AA, CC, BB };
            enum foo_e foo_func(int x) { return (enum foo_e)x; }
>       """)

testing/cffi0/test_verify.py:1176: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_______________________________ test_enum_values _______________________________

    def test_enum_values():
        ffi = FFI()
        ffi.cdef("enum enum1_e { AA, BB };")
>       lib = ffi.verify("enum enum1_e { AA, BB };")

testing/cffi0/test_verify.py:1182: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
__________________________ test_typedef_complete_enum __________________________

    def test_typedef_complete_enum():
        ffi = FFI()
        ffi.cdef("typedef enum { AA, BB } enum1_t;")
>       lib = ffi.verify("typedef enum { AA, BB } enum1_t;")

testing/cffi0/test_verify.py:1190: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_________________________ test_typedef_incomplete_enum _________________________

    def test_typedef_incomplete_enum():
        ffi = FFI()
        ffi.cdef("typedef enum { AA, BB, ... } enum1_t;")
>       lib = ffi.verify("typedef enum { AA, CC, BB } enum1_t;")

testing/cffi0/test_verify.py:1204: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
________________________ test_typedef_enum_as_argument _________________________

    def test_typedef_enum_as_argument():
        ffi = FFI()
        ffi.cdef("""
            typedef enum { AA, BB, ... } foo_t;
            int foo_func(foo_t);
        """)
        lib = ffi.verify("""
            typedef enum { AA, CC, BB } foo_t;
            int foo_func(foo_t e) { return (int)e; }
>       """)

testing/cffi0/test_verify.py:1219: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_____________________ test_typedef_enum_as_function_result _____________________

    def test_typedef_enum_as_function_result():
        ffi = FFI()
        ffi.cdef("""
            typedef enum { AA, BB, ... } foo_t;
            foo_t foo_func(int x);
        """)
        lib = ffi.verify("""
            typedef enum { AA, CC, BB } foo_t;
            foo_t foo_func(int x) { return (foo_t)x; }
>       """)

testing/cffi0/test_verify.py:1232: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
____________________________ test_function_typedef _____________________________

    def test_function_typedef():
        ffi = FFI()
        ffi.cdef("""
            typedef double func_t(double);
            func_t sin;
        """)
>       lib = ffi.verify('#include ', libraries=lib_m)

testing/cffi0/test_verify.py:1241: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
____________________ test_opaque_integer_as_function_result ____________________

    def test_opaque_integer_as_function_result():
        #import platform
        #if platform.machine().startswith('sparc'):
        #    py.test.skip('Breaks horribly on sparc (SIGILL + corrupted stack)')
        #elif platform.machine() == 'mips64' and sys.maxsize > 2**32:
        #    py.test.skip('Segfaults on mips64el')
        # XXX bad abuse of "struct { ...; }".  It only works a bit by chance
        # anyway.  XXX think about something better :-(
        ffi = FFI()
        ffi.cdef("""
            typedef struct { ...; } myhandle_t;
            myhandle_t foo(void);
        """)
        lib = ffi.verify("""
            typedef short myhandle_t;
            myhandle_t foo(void) { return 42; }
>       """)

testing/cffi0/test_verify.py:1260: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
__________________________ test_return_partial_struct __________________________

    def test_return_partial_struct():
        ffi = FFI()
        ffi.cdef("""
            typedef struct { int x; ...; } foo_t;
            foo_t foo(void);
        """)
        lib = ffi.verify("""
            typedef struct { int y, x; } foo_t;
            foo_t foo(void) { foo_t r = { 45, 81 }; return r; }
>       """)

testing/cffi0/test_verify.py:1273: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_____________________ test_take_and_return_partial_structs _____________________

    def test_take_and_return_partial_structs():
        ffi = FFI()
        ffi.cdef("""
            typedef struct { int x; ...; } foo_t;
            foo_t foo(foo_t, foo_t);
        """)
        lib = ffi.verify("""
            typedef struct { int y, x; } foo_t;
            foo_t foo(foo_t a, foo_t b) {
                foo_t r = { 100, a.x * 5 + b.x * 7 };
                return r;
            }
>       """)

testing/cffi0/test_verify.py:1290: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
_______________________ test_dont_check_unnamable_fields _______________________

    def test_dont_check_unnamable_fields():
        ffi = FFI()
        ffi.cdef("struct foo_s { struct { int x; } someone; };")
>       ffi.verify("struct foo_s { struct { int x; } someone; };")

testing/cffi0/test_verify.py:1308: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
______________________ test_nested_anonymous_struct_exact ______________________

    def test_nested_anonymous_struct_exact():
        if sys.platform == 'win32':
            py.test.skip("nested anonymous struct/union")
        ffi = FFI()
        ffi.cdef("""
            struct foo_s { struct { int a; char b; }; union { char c, d; }; };
        """)
        ffi.verify("""
            struct foo_s { struct { int a; char b; }; union { char c, d; }; };
>       """)

testing/cffi0/test_verify.py:1320: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
____________________ test_nested_anonymous_struct_inexact_1 ____________________

    def test_nested_anonymous_struct_inexact_1():
        ffi = FFI()
        ffi.cdef("""
            struct foo_s { struct { char b; ...; }; union { char c, d; }; };
        """)
        ffi.verify("""
            struct foo_s { int a, padding; char c, d, b; };
>       """)

testing/cffi0/test_verify.py:1352: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
____________________ test_nested_anonymous_struct_inexact_2 ____________________

    def test_nested_anonymous_struct_inexact_2():
        ffi = FFI()
        ffi.cdef("""
            struct foo_s { union { char c, d; }; struct { int a; char b; }; ...; };
        """)
        ffi.verify("""
            struct foo_s { int a, padding; char c, d, b; };
>       """)

testing/cffi0/test_verify.py:1362: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
________________________________ test_ffi_union ________________________________

    def test_ffi_union():
        ffi = FFI()
        ffi.cdef("union foo_u { char x; long *z; };")
>       ffi.verify("union foo_u { char x; int y; long *z; };")

testing/cffi0/test_verify.py:1368: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
____________________________ test_ffi_union_partial ____________________________

    def test_ffi_union_partial():
        ffi = FFI()
        ffi.cdef("union foo_u { char x; ...; };")
>       ffi.verify("union foo_u { char x; int y; };")

testing/cffi0/test_verify.py:1373: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, extra_compile_args=extra_compile_args, **kwds)
cffi/api.py:464: in verify
    lib = self.verifier.load_library()
cffi/verifier.py:104: in load_library
    self._compile_module()
cffi/verifier.py:201: in _compile_module
    outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
cffi/ffiplatform.py:22: in compile
    outputfilename = _build(tmpdir, ext, compiler_verbose, debug)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

tmpdir = '/magus/work/usr/mports/devel/py-cffi/work-py27/cffi-1.13.2/testing/cffi0/__pycache__'
ext = 
compiler_verbose = 0, debug = 0

    def _build(tmpdir, ext, compiler_verbose=0, debug=None):
        # XXX compact but horrible :-(
        from distutils.core import Distribution
        import distutils.errors, distutils.log
        #
        dist = Distribution({'ext_modules': [ext]})
        dist.parse_config_files()
        options = dist.get_option_dict('build_ext')
        if debug is None:
            debug = sys.flags.debug
        options['debug'] = ('ffiplatform', debug)
        options['force'] = ('ffiplatform', True)
        options['build_lib'] = ('ffiplatform', tmpdir)
        options['build_temp'] = ('ffiplatform', tmpdir)
        #
        try:
            old_level = distutils.log.set_threshold(0) or 0
            try:
                distutils.log.set_verbosity(compiler_verbose)
                dist.run_command('build_ext')
                cmd_obj = dist.get_command_obj('build_ext')
                [soname] = cmd_obj.get_outputs()
            finally:
                distutils.log.set_threshold(old_level)
        except (distutils.errors.CompileError,
                distutils.errors.LinkError) as e:
>           raise VerificationError('%s: %s' % (e.__class__.__name__, e))
E           VerificationError: CompileError: command 'cc' failed with exit status 1

cffi/ffiplatform.py:58: VerificationError
----------------------------- Captured stderr call -----------------------------
error: unknown warning option '-Wno-shift-negative-value'; did you mean '-Wno-shift-sign-overflow'? [-Werror,-Wunknown-warning-option]
______________________ test_ffi_union_with_partial_struct ______________________

    def test_ffi_union_with_partial_struct():
        ffi = FFI()
        ffi.cdef("struct foo_s { int x; ...; }; union foo_u { struct foo_s s; };")
>       ffi.verify("struct foo_s { int a; int x; }; "
                   "union foo_u { char b[32]; struct foo_s s; };")

testing/cffi0/test_verify.py:1379: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
testing/cffi0/test_verify.py:30: in verify
    *args, ext