Skip to content

From CI, Tools/c-analyzer/check-c-globals.py failed #150948

@YvesDup

Description

@YvesDup

Bug report

Bug description:

Working from this #130913 PR, I recently needed to add this line #include <sys/sysctl.h> // sysctlbyname in a header file.

From CI, the check-c-globals.py tools failed with this message:

..... ..... /home/runner/work/cpython/cpython/Modules/_multiprocessing/semaphore_macosx.h:5:10: fatal error: sys/sysctl.h: No such file or directory
    5 | #include <sys/sysctl.h>  // sysctlbyname
      |          ^~~~~~~~~~~~~~
compilation terminated.
# requested file: </home/runner/work/cpython/cpython/Modules/_multiprocessing/semaphore_macosx.h>

See https://github.com/python/cpython/actions/runs/26958247530/job/79541476456?pr=130913#step:11:39 for complete logs

cc @ericsnowcurrently (As suggested in the documentation:)

CPython versions tested on:

3.16

Operating systems tested on:

macOS

Metadata

Metadata

Assignees

No one assigned

    Labels

    infraCI, GitHub Actions, buildbots, Dependabot, etc.type-bugAn unexpected behavior, bug, or error
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions