Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Missing Header file ffi.h #152

Open
hydernaqvi opened this issue May 29, 2024 · 0 comments
Open

[BUG] Missing Header file ffi.h #152

hydernaqvi opened this issue May 29, 2024 · 0 comments

Comments

@hydernaqvi
Copy link

Describe the bug
I tried to create a virtual environment to share, but I could not get it to compile.

To Reproduce
Steps to reproduce the behavior:

  1. Go on z/OS
  2. python -m venv ds
  3. cd ds
  4. . bin/activate
  5. alias pip="pip3"
  6. pip install --upgrade "git+https://github.com/ibm/detect-secrets.git@master#egg=detect-secrets"

Expected behavior
Installation finished with no issues

Screenshots
If applicable, add screenshots to help explain your problem.
error-detect-secret

Impact

Yes

Trying to set this up for all users on our system using a virtual environment.

include ffi.h

Additional context:

  • Operating environment,

  • z/OS 3.1

  • Host or local,

  • Operating System,

  • z/OS

  • Languages scanned etc;

  • Repo & build context links.

  • Log output
    /local/bin/clang -DNDEBUG -O3 -D_XOPEN_SOURCE_EXTENDED -D_UNIX03_THREADS -D_POSIX_THREADS -D_OPEN_SYS_FILE_EXT -m64 -fvisibility=default -fzos-le-char-mode=ascii -fno-short-enums -DFFI_BUILDING=1 -DHAVE_SYNC_SYNCHRONIZE -I/usr/include/ffi -I/usr/include/libffi -I/home/hyder/ds/include -I/home/hyder/usr/lpp/IBM/cyp/v3r12/pyz/include/python3.12 -c src/c/_cffi_backend.c -o build/temp.os390-28.00-8561-cpython-312/src/c/_cffi_backend.o
    src/c/_cffi_backend.c:15:10: fatal error: 'ffi.h' file not found
    #include <ffi.h>
    ^~~~~~~
    1 error generated.
    error: command '/home/opnzos/local/bin/clang' failed with exit code 1
    [end of output]

      note: This error originates from a subprocess, and is likely not a problem with pip.
      ERROR: Failed building wheel for cffi
    Failed to build cffi
    ERROR: Could not build wheels for cffi, which is required to install pyproject.toml-based projects
    [end of output]
    

    note: This error originates from a subprocess, and is likely not a problem with pip.
    error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant