Skip to content

load_dynamic_library test failure on x86_64-macos with self-hosted backend (error.SymbolNotFound) #24080

Open
@andrewrk

Description

@andrewrk

Zig Version

0.15.0-dev.723+3b2bef8a9

Steps to Reproduce and Observed Behavior

On an x86_64-macos computer, when self-hosted x86 backend is selected by default:

$ zig build test-standalone
...
test
+- test-standalone
   +- standalone_test_cases
      +- standalone_test_cases.load_dynamic_library
         +- run main failure
error: SymbolNotFound
/Users/runner/work/zig/zig/test/standalone/load_dynamic_library/main.zig:15:49: 0x108ace22a in main (main)
    const addFn = lib.lookup(Add, "add") orelse return error.SymbolNotFound;
                                                ^
...

Expected Behavior

Passing test.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions