Skip to content

Self hosted linker fails to parse intel oneapi shared library #24165

Open
@WiserOrb

Description

@WiserOrb

Zig Version

0.15.0-dev.784+4a02e080d

Steps to Reproduce and Observed Behavior

I'm linking a zig program to a fortran library that needs some runtime. Specifically intel's libifcore.so

However I get this error:

error: failed to parse shared library: UnexpectedEndOfFile
    note: while parsing /opt/intel/oneapi/compiler/latest/lib/libifcore.so

If I add -Doptimize=ReleaseFast it compiles successfully, because it uses the llvm linker.

Expected Behavior

Link successfully like LLD.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugObserved behavior contradicts documented or intended behaviorlinking

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions