[llvm-dev] LLVM apt repository seems to be broken (no clang-11)

378 views
Skip to first unread message

Marcin Słowik via llvm-dev

unread,
Jul 30, 2020, 12:50:29 PM7/30/20
to llvm-dev
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

Hans Wennborg via llvm-dev

unread,
Aug 3, 2020, 10:24:44 AM8/3/20
to Marcin Słowik, Sylvestre Ledru, llvm-dev
+Sylvestre?

> _______________________________________________
> LLVM Developers mailing list
> llvm...@lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
_______________________________________________
LLVM Developers mailing list
llvm...@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev

Reply all
Reply to author
Forward
0 new messages