Skip to content

LDC 1.40.1 cannot target s390x-linux with warnings enabled #4897

@jacob-carlborg

Description

@jacob-carlborg

When targeting s390x-linux and enabling warnings, LDC fails with an error.

Running the following command:

echo '' | ldc2 -mtriple s390x-linux - -c -w

Results in the following error:

Warning: unknown target ABI, falling back to generic implementation. C/C++ interop will almost certainly NOT work.
Error: warnings are treated as errors
       Use -wi if you wish to treat warnings only as informational.

This worked fine with LDC 1.40.0. s390x-linux seems to be the only target which has this problem [1].

$ ldc2 --version
LDC - the LLVM D compiler (1.40.1-git-880d514):
  based on DMD v2.110.0 and LLVM 19.1.7
  built with LDC - the LLVM D compiler (1.40.1-git-880d514)
  Default target: aarch64-unknown-linux-gnu
  Host CPU: (unknown)
  http://dlang.org - http://wiki.dlang.org/LDC

[1] https://github.com/jacob-carlborg/lime/actions/runs/14140513059

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