Skip to content

Zig is failing to build for m68k-freestanding-eabi #19510

Open
@TeamPuzel

Description

@TeamPuzel

Zig Version

0.12.0-dev.3498+aff71c613

Steps to Reproduce and Observed Behavior

I built Zig and LLVM with the m68k target enabled, however Zig fails to build or even emit assembly for m68k-freestanding-eabi.

error: error(llvm): LLVM failed to parse 'm68k-unknown-unknown-eabi': Unable to find target for this triple (no targets are registered)
error: InvalidLlvmTriple

That's still confusing as the built clang can definitely emit assembly for the target zig is passing to llvm.

The command I used:

zig build-obj -fno-emit-bin -femit-asm=add.s -target m68k-freestanding-eabi ./src/main.zig

Expected Behavior

LLVM has support for this and the llvm/clang I built with m68k support when building Zig does accept this target, so I would expect Zig to also accept it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    arch-m68kMotorola 68000 seriesbackend-llvmThe LLVM backend outputs an LLVM IR Module.bugObserved behavior contradicts documented or intended behaviorupstreamAn issue with a third party project that Zig uses.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions