New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 709260 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Last visit > 30 days ago
Closed: Apr 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug

Blocking:
issue 699120



Sign in to add a comment

recipe bootstrap fails (fatal error: ffi.h: No such file or directory)

Project Member Reported by dgarr...@chromium.org, Apr 6 2017

Issue description

build/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.


 
test.log
18.3 KB View Download
Cc: phajdan@google.com
Summary: 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.
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.
Yes, this is my Goobuntu workstation.
I can show you in person, if that's helpful.
Do you have libffi-dev dev installed? Does "sudo apt-get install libffi-dev" fix the issue?

Comment 6 by d...@chromium.org, 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.
The main fix was to stop using "build/scripts/tools/runit.py".

After that, everything was okay.
Status: WontFix (was: Untriaged)
User error.

Sign in to add a comment