Bug#924953: llvm::Triple::KFreeBSD enum item is missing, causing FTBFS downstream
Andrew Kelley
andrew at ziglang.org
Tue Mar 19 00:53:44 GMT 2019
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-llvm-team/attachments/20190318/0545d93e/attachment.sig>
More information about the Pkg-llvm-team
mailing list