Skip to content

Building wheel fails on aarch64-linux #1124

@giordano

Description

@giordano

https://github.com/EnzymeAD/Enzyme-JAX/actions/runs/15960137557/job/45011484959#step:7:4193

ERROR: /home/runner/work/Enzyme-JAX/Enzyme-JAX/src/enzyme_ad/jax/BUILD:844:17: Linking src/enzyme_ad/jax/enzyme_call.so failed: (Exit 1): gcc failed: error executing CppLink command (from target //src/enzyme_ad/jax:enzyme_call.so) /usr/bin/gcc @bazel-out/aarch64-opt/bin/src/enzyme_ad/jax/enzyme_call.so-2.params

Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
/usr/bin/ld.gold: error: Stub is too far away, try a smaller value for '--stub-group-size'. The current value is 0x7ffbffc.
/usr/bin/ld.gold: error: Stub is too far away, try a smaller value for '--stub-group-size'. The current value is 0x7ffbffc.
collect2: error: ld returned 1 exit status

There are very few occurrences of similar errors on the internet, one thing I'd try when I have time (which is, not now) is to link with lld. I'm even surprised (but maybe I shouldn't?) gold is used in the first place, since it's not maintained by anyone anymore.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions