Closed ardabbour closed 1 month ago
An even easier repro with llvm-18-dev
alone, no other LLVM-18-related packages involved:
sp@homer:~$ sudo apt install llvm-18-dev
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
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:
libllvm18 : Breaks: llvm-18-dev (< 1:18.1.8-4) but 1:18.1.8~++20240717045004+3b5b5c1ec4a3-1~exp1~20240717165111.153 is to be installed
E: Unable to correct problems, you have held broken packages.
System information:
sp@homer:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 23.10
Release: 23.10
Codename: mantic
sp@homer:~$ cat /etc/apt/sources.list.d/apt-llvm-org.list
deb [arch=amd64] http://apt.llvm.org/mantic/ llvm-toolchain-mantic main
deb-src http://apt.llvm.org/mantic/ llvm-toolchain-mantic main
# 17
# deb [arch=amd64] http://apt.llvm.org/mantic/ llvm-toolchain-mantic-17 main
# deb-src http://apt.llvm.org/mantic/ llvm-toolchain-mantic-17 main
# 18
deb [arch=amd64] http://apt.llvm.org/mantic/ llvm-toolchain-mantic-18 main
deb-src http://apt.llvm.org/mantic/ llvm-toolchain-mantic-18 main
I also met the same issue with Ubuntu 22 on the x86_64 architecture.
I see the same thing for noble Ubuntu 24.04
libllvm18 : Breaks: llvm-18-dev (< 1:18.1.8-4) but 1:18.1.8~++20240717045016+3b5b5c1ec4a3-1~exp1~20240717165119.89 is to be installed
24h later still getting:
$ sudo apt-get update
Hit:1 https://apt.llvm.org/jammy llvm-toolchain-jammy-18 InRelease
[...]
Fetched 2,235 kB in 1s (1,574 kB/s)
Reading package lists... Done
$ sudo apt-get install clang-18 libclang-18-dev lld-18 llvm-18-dev
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
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:
libllvm18 : Breaks: llvm-18-dev (< 1:18.1.8-4) but 1:18.1.8~++20240717051017+3b5b5c1ec4a3-1~exp1~20240717171122.141 is to be installed
E: Unable to correct problems, you have held broken packages.
halp?
Working now! thanks!
There is likely a dependency version mismatch on the packages installed via the
llvm.sh
script:To reproduce, here is a simple Dockerfile:
Building with
docker build --no-cache --progress=plain --file issue.dockerfile -t ubuntu20_llvm18 . 2>&1 | tee build.log
produces a long log, but here's the jist:uname -a
output:./llvm.sh ${LLVM_VERSION} all
relevant output:Note that when LLVM_VERSION is 17, there are no issues.