[llvm-dev] LLVM apt repository seems to be broken (no clang-11)
Hans Wennborg via llvm-dev
llvm-dev at lists.llvm.org
Mon Aug 3 07:24:28 PDT 2020
+Sylvestre?
On Thu, Jul 30, 2020 at 6:50 PM Marcin SÅ‚owik via llvm-dev
<llvm-dev at lists.llvm.org> wrote:
>
> Hi,
>
> It appears that ever since LLVM 11 has been tagged for release, the ubuntu 20.04 apt repository seems to be broken.
>
> It seems the non-version packages target version 11, but it's missing. Version 12 packages are present, but are not the defaults.
>
> Simple repro using Docker image for Ubuntu 20.04:
>
> ```
> FROM ubuntu:20.04 AS build-env
> RUN apt-get update \
> && apt-get install -y apt-transport-https ca-certificates gnupg software-properties-common wget
> RUN wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add - \
> && apt-add-repository "deb http://apt.llvm.org/focal/ llvm-toolchain-focal main" -s \
> && apt-get update \
> && apt-get install -y \
> clang \
> llvm-dev \
> llvm
> ```
>
> Relevant output:
>
> ```
> Hit:2 http://archive.ubuntu.com/ubuntu focal InRelease
> Hit:1 https://apt.llvm.org/focal llvm-toolchain-focal InRelease
> Hit:3 http://archive.ubuntu.com/ubuntu focal-updates InRelease
> Hit:4 http://archive.ubuntu.com/ubuntu focal-backports InRelease
> Hit:5 http://security.ubuntu.com/ubuntu focal-security InRelease
> Reading package lists...
> Reading package lists...
> Building dependency tree...
> Reading state information...
> Some packages could not be installed. This may mean that you have
> requested an impossible situation or if you are using the unstable
> distribution that some required packages have not yet been created
> or been moved out of Incoming.
> The following information may help to resolve the situation:
>
> The following packages have unmet dependencies:
> clang : Depends: clang-11 (>= 11~) but it is not installable
> llvm : Depends: llvm-runtime (= 1:11.0-51+0~20200404161639.1~1.gbp214056) but it is not going to be installed
> Depends: llvm-11 (>= 11~) but it is not installable
> llvm-dev : Depends: llvm-runtime (= 1:11.0-51+0~20200404161639.1~1.gbp214056) but it is not going to be installed
> Depends: llvm-11-dev (>= 11~) but it is not installable
> E: Unable to correct problems, you have held broken packages.
> ```
>
> The 18.04 image (and llvm-toolchain-bionic) seem to work just fine, but debian:buster (and llvm-toolchain-buster) return the same errors.
>
> When targeting repo llvm-toolchain-focal-10, the packages install correctly (w/ version 10). Interestingly, using llvm-toolchain-focal-11 gives the same results as llvm-toolchain-focal-10 (it installs LLVM & Clang version 10).
>
> Is this a known issue?
>
> BR,
> Marcin
>
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
More information about the llvm-dev
mailing list