Package: llvm-defaults
Version: 0.47

Zig fails to build from source on Debian with the llvm package:

[ 11%] Building CXX object CMakeFiles/zig_cpp.dir/src/zig_llvm.cpp.o
/home/vsts/work/1/s/src/zig_llvm.cpp:1037:59: error: ‘KFreeBSD’ is not a
member of ‘llvm::Triple’
 static_assert((Triple::OSType)ZigLLVM_KFreeBSD == Triple::KFreeBSD, "");
                                                           ^~~~~~~~

It works with LLVM built from source, because Triple::KFreeBSD is a
valid enum declaration (include/llvm/ADT/Triple.h):

  enum OSType {
    UnknownOS,

    Ananas,
...
    IOS,
    KFreeBSD,
    Linux,
    Lv2,        // PS3
    MacOSX,
...

I do not know why Debian has changed this line in its package. This
breaks API compatibility of downstream projects.

Downstream issue: https://github.com/ziglang/zig/issues/2076

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to