Skip to content

error: unsupported linker arg: --exclude-libs #15113

@recht

Description

@recht

Zig Version

0.11.0-dev.1796+c9e02d3e6

Steps to Reproduce and Observed Behavior

Trying to build python libs using zig c++:

/tmp/zig/zig-linux-x86_64-0.11.0-dev.1796+c9e02d3e6/zig` c++ -shared -L/tools/deps/lib -Wl,--exclude-libs,ALL -L/tools/deps/libedit/lib -g0 -isystem /home/joakim/.cache/bazel/_bazel_joakim/1eaa5bd43262acc0a542befd7785511c/external/python39_x86_64-unknown-linux-gnu/include/python3.9 build/temp.linux-x86_64-cpython-39/./python_bindings/bindings.o -L/install/lib -o build/lib.linux-x86_64-cpython-39/hnswlib.cpython-39-x86_64-linux-gnu.so -fopenmp -pthread
error: unsupported linker arg: --exclude-libs
error: command '/tmp/zig/zig-linux-x86_64-0.11.0-dev.1796+c9e02d3e6/zig' failed with exit code 1

Expected Behavior

No error

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugObserved behavior contradicts documented or intended behaviorcontributor friendlyThis issue is limited in scope and/or knowledge of Zig internals.enhancementSolving this issue will likely involve adding new logic or components to the codebase.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions