Skip to content

Running without a proc mount fails with FileNotFound #21745

@arthurmelton

Description

@arthurmelton

Zig Version

0.14.0-dev.1951+857383689

Steps to Reproduce and Observed Behavior

The easiest way is to to chroot into an environment without any /proc mount. Fails trying to read /proc/self/exe, when trying to get the exe folder for finding the lib folder.

Expected Behavior

I don't actually know if this should continue working this way and require the /proc mount, and give a better error message than just error: FileNotFound, or if this should try to do some funkiness if the /proc mount does not exist. gcc does not require the /proc mount, and its pretty nice for testing building in limited environments.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugObserved behavior contradicts documented or intended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions