Skip to content

[BUG] Missing Header file ffi.h #152

@hydernaqvi

Description

@hydernaqvi

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions