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

3.14 build error after recent commit: pylifecycle.c:50:12: fatal error: os/log.h: No such file or directory #128146

Open
barracuda156 opened this issue Dec 21, 2024 · 4 comments
Labels
3.13 bugs and security fixes 3.14 new features, bugs and security fixes build The build process and cross-build OS-mac type-bug An unexpected behavior, bug, or error

Comments

@barracuda156
Copy link

barracuda156 commented Dec 21, 2024

Bug report

Bug description:

The recent commit 2041a95 has broken the build of Python for a number of macOS versions, since <os/log.h> is not guaranteed to exist, but has been included unconditionally.

Python/pylifecycle.c:50:12: fatal error: os/log.h: No such file or directory
   50 | #  include <os/log.h>
      |            ^~~~~~~~~~
compilation terminated.
make: *** [Python/pylifecycle.o] Error 1
make: *** Waiting for unfinished jobs....

@freakboy3742 Could you please take a look at this?

CPython versions tested on:

3.14

Operating systems tested on:

macOS

Linked PRs

@barracuda156 barracuda156 added the type-bug An unexpected behavior, bug, or error label Dec 21, 2024
barracuda156 referenced this issue Dec 21, 2024
Adds a `use_system_log` config item to enable stdout/stderr redirection for
Apple platforms. This log streaming is then used by a new iOS test runner
script, allowing the display of test suite output at runtime. The iOS test
runner script can be used by any Python project, not just the CPython test
suite.
@freakboy3742
Copy link
Contributor

@barracuda156 When you say "A number of macOS versions" - can you clarify which ones you mean? I'm guessing the availability issue is the one referred to by this comment; in which case, the fix is likely using the same #ifdef gate on the os/log.h import.

@barracuda156
Copy link
Author

@picnixz picnixz added OS-mac build The build process and cross-build 3.13 bugs and security fixes 3.14 new features, bugs and security fixes labels Dec 21, 2024
@freakboy3742
Copy link
Contributor

@barracuda156 Presumptive fix in #128165; it's currently failing CI for reasons that I can't explain, and I can't reproduce locally.

@barracuda156
Copy link
Author

@freakboy3742 Thank you, I will run the build and let you know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.13 bugs and security fixes 3.14 new features, bugs and security fixes build The build process and cross-build OS-mac type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

3 participants