Skip to content

std.debug.StackIterator in embedded throws compile error for ucontext_t being missing in std.posix.system #20710

Description

@sfiedler0

Zig Version

0.14.0-dev.468+aa73bb6bc

Steps to Reproduce and Observed Behavior

  1. Write a kernel (or something else embedded)
  2. Implement a custom panic handler which uses std.debug.StackIterator
  3. Get a compile error (std/posix.zig:153:30: error: struct 'posix.system__struct_2080' has no member named 'ucontext_t')

Expected Behavior

I expected this compilation to work, as it did some days ago.

As far as I know, this behavior regressed in e8c4e79.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugObserved behavior contradicts documented or intended behavioros-freestanding

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions