Skip to content

error.UnexpectedRemainder on aarch64 MacOS release targets #17424

Open

Description

@Beyley

Zig Version

0.12.0-dev.1396+f6de3ec96

Steps to Reproduce and Observed Behavior

Clone this repo with submodules at commit f4a7cb7e529a1a482f4c56c6a8252a747a69e52d, build for aarch64 macos target in ReleaseSafe
zig build -Dtarget=aarch64-macos -Doptimize=ReleaseSafe

See this CI run for an example failure

Expected Behavior

Compilation passes

Activity

  1. added
    bug
    on Oct 7, 2023
  2. changed the title [-]error.UnexpectedRemainder on aarch64 MacOS targets[/-] [+]error.UnexpectedRemainder on aarch64 MacOS release targets[/+] on Oct 7, 2023
  3. archbirdplus commented on Apr 17, 2024

    @archbirdplus
    Contributor

    Not the best example here, but I still see this issue in 0.12.0-dev.3518+d2be725e4 in my repo. I can give steps to reproduce if necessary.
    What I found was that running zig build with --verbose-link prints out a zig ld command. Copying that command and pasting without the zig to use the LLVM ld actually links successfully.

  4. added this to the unplanned milestone on Aug 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions