apt.llvm.org has the wrong binaries/headers for llvm-toolchain-xenial-7

This build worked on Nov 24 and stopped working Nov 25.

2018-11-25T16:48:47.6020966Z + sudo sh -c echo "deb
http://apt.llvm.org/xenial/ llvm-toolchain-xenial-7 main" >>
/etc/apt/sources.list
...
2018-11-25T16:53:30.7836235Z
/home/vsts/work/1/s/src/zig_llvm.cpp:686:1: error: static assertion
failed
2018-11-25T16:53:30.7837134Z
static_assert((Triple::OSType)ZigLLVM_LastOSType ==
Triple::LastOSType, "");
2018-11-25T16:53:30.7837409Z ^~~~~~~~~~~~~
full logs https://dev.azure.com/ziglang/zig/_build/results?buildId=229&view=logs

The version on apt.llvm.org has
    HermitCore, // HermitCore Unikernel/Multikernel
    LastOSType = HermitCore

But llvm 7.0.0 and 7.0.1 have
    AMDPAL, // AMD PAL Runtime
    LastOSType = AMDPAL

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

Is anyone working on this?

Regards,
Andrew

Who maintains apt.llvm.org?

Is that done by Sylvestre, maybe?

Hello

This is indeed me.

Could you please report a bug ? I will have a look asap

Sylvestre

Here's further proof:

wget
http://apt.llvm.org/xenial/pool/main/l/llvm-toolchain-7/llvm-7-dev_7.0.1~svn347285-1~exp1~20181124105320.40_amd64.deb

ar vx llvm-7-dev_7.0.1~svn347285-1~exp1~20181124105320.40_amd64.deb

tar xvf data.tar.xz

grep Hurd usr/include/llvm-7/llvm/ADT/Triple.h

Hurd,       // GNU/Hurd
LastOSType = Hurd

/// Tests whether the OS is Hurd.
bool isOSHurd() const {
return getOS() == Triple::Hurd;
getOS() == Triple::Hurd) &&

grep Hurd ~/downloads/llvm_release_70/include/llvm/ADT/Triple.h
(nothing)