Skip to content

x86 backend on FreeBSD fails to link #25075

@jailbird777

Description

@jailbird777

Zig Version

0.15.1

Steps to Reproduce and Observed Behavior

On FreeBSD/amd64 -CURRENT,

$ zig build-exe index.zig -fllvm -flld

Works fine, however a simple:

$ zig build-exe index.zig

Errors out with:

error: not an ELF file
note: while parsing /usr/lib/libc_nonshared.a

I've tried both a self-compiled Zig and the precompiled Zig from the downloads page.

Expected Behavior

The executable get linked without the error message

Metadata

Metadata

Assignees

No one assigned

    Labels

    arch-x86_6464-bit x86bugObserved behavior contradicts documented or intended behaviorlinkingos-freebsdFreeBSD

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions