recipe bootstrap fails (fatal error: ffi.h: No such file or directory) |
||
Issue descriptionbuild/scripts/tools/runit.py build/scripts/slave/recipes.py --use-bootstrap test train This fails to run tests for me, I'm attaching the full output seen with a fresh checkout (fetch infra_internal). I was seeing issues with Coverage before, but ignoring them.
,
Apr 7 2017
What platform is this running on? Looks like linux? It looks like it's trying to set up the cryptography package and failing. I think this works ok in the infra.git repo, so not sure what's happening.
,
Apr 7 2017
Yes, this is my Goobuntu workstation.
,
Apr 7 2017
I can show you in person, if that's helpful.
,
Apr 12 2017
Do you have libffi-dev dev installed? Does "sudo apt-get install libffi-dev" fix the issue?
,
Apr 12 2017
I worked with dgarrett@ yesterday in person and got his recipes training. I don't think we changed any system packages to make it work, though.
,
Apr 12 2017
The main fix was to stop using "build/scripts/tools/runit.py". After that, everything was okay.
,
Apr 12 2017
User error. |
||
►
Sign in to add a comment |
||
Comment 1 by phajdan.jr@chromium.org
, Apr 7 2017Summary: recipe bootstrap fails (fatal error: ffi.h: No such file or directory) (was: New `test` subcommand fails with: AttributeError: 'CoverageData' object has no attribute 'update')
The real failure seems to be this: Building wheels for collected packages: ndg-httpsclient, pyOpenSSL, cryptography, pycparser Running setup.py bdist_wheel for ndg-httpsclient: started Running setup.py bdist_wheel for ndg-httpsclient: finished with status 'done' Stored in directory: /usr/local/google/home/dgarrett/sand/crops/build/scripts/slave/.recipe_deps/recipe_engine/.bootstrap_cache/download_cache/wheels/b3/7f/2c/f167f769b93957ab784eba09ab089bf37195b955e52c1e574a Running setup.py bdist_wheel for pyOpenSSL: started Running setup.py bdist_wheel for pyOpenSSL: finished with status 'done' Stored in directory: /usr/local/google/home/dgarrett/sand/crops/build/scripts/slave/.recipe_deps/recipe_engine/.bootstrap_cache/download_cache/wheels/85/29/e2/e8bfda343f38e339b01c31422dc4e6e288bb1b1428b86fa22e Running setup.py bdist_wheel for cryptography: started Running setup.py bdist_wheel for cryptography: finished with status 'error' Complete output from command /usr/local/google/home/dgarrett/sand/crops/build/scripts/slave/.recipe_deps/recipe_engine/ENV/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-iacMlj/cryptography/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/tmp2Rl90apip-wheel- --python-tag cp27: Package libffi was not found in the pkg-config search path. Perhaps you should add the directory containing `libffi.pc' to the PKG_CONFIG_PATH environment variable No package 'libffi' found Package libffi was not found in the pkg-config search path. Perhaps you should add the directory containing `libffi.pc' to the PKG_CONFIG_PATH environment variable No package 'libffi' found Package libffi was not found in the pkg-config search path. Perhaps you should add the directory containing `libffi.pc' to the PKG_CONFIG_PATH environment variable No package 'libffi' found Package libffi was not found in the pkg-config search path. Perhaps you should add the directory containing `libffi.pc' to the PKG_CONFIG_PATH environment variable No package 'libffi' found Package libffi was not found in the pkg-config search path. Perhaps you should add the directory containing `libffi.pc' to the PKG_CONFIG_PATH environment variable No package 'libffi' found c/_cffi_backend.c:15:17: fatal error: ffi.h: No such file or directory #include <ffi.h> ^ compilation terminated. Posted https://groups.google.com/a/chromium.org/d/msg/infra-dev/JTsoi-1OQyY/s-Hr66iyAQAJ as part of attempt to resolve it.