Skip to content

Ubuntu 20.04 llvm.sh 18 all Fails Due To Unresolvable Interdependencies #99502

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
biserdan opened this issue Jul 18, 2024 · 8 comments
Closed

Comments

@biserdan
Copy link

biserdan commented Jul 18, 2024

Error when install llvm-18 over script:

apt-get install -y clang-18 lldb-18 lld-18 clangd-18 clang-tidy-18 clang-format-18 clang-tools-18 llvm-18-dev lld-18 lldb-18 llvm-18-tools libomp-18-dev libc++-18-dev libc++abi-18-dev libclang-common-18-dev libclang-18-dev libclang-cpp18-dev libunwind-18-dev libclang-rt-18-dev libpolly-18-dev
Reading package lists... Done
Building dependency tree       
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:
 clang-18 : Depends: libclang-cpp18 (>= 1:18.1.8~++20240717045021+3b5b5c1ec4a3) but it is not going to be installed
            Depends: libllvm18 (= 1:18.1.8~++20240717045021+3b5b5c1ec4a3-1~exp1~20240717165111.140) but it is not going to be installed
            Depends: llvm-18-linker-tools (= 1:18.1.8~++20240717045021+3b5b5c1ec4a3-1~exp1~20240717165111.140) but it is not going to be installed
            Depends: libclang1-18 (= 1:18.1.8~++20240717045021+3b5b5c1ec4a3-1~exp1~20240717165111.140) but it is not going to be installed
 clang-format-18 : Depends: libclang-cpp18 (>= 1:18.1.8~++20240717045021+3b5b5c1ec4a3) but it is not going to be installed
                   Depends: libllvm18 (= 1:18.1.8~++20240717045021+3b5b5c1ec4a3-1~exp1~20240717165111.140) but it is not going to be installed
 clang-tidy-18 : Depends: libclang-cpp18 (>= 1:18.1.8~++20240717045021+3b5b5c1ec4a3) but it is not going to be installed
                 Depends: libllvm18 (= 1:18.1.8~++20240717045021+3b5b5c1ec4a3-1~exp1~20240717165111.140) but it is not going to be installed
 clang-tools-18 : Depends: libclang-cpp18 (>= 1:18.1.8~++20240717045021+3b5b5c1ec4a3) but it is not going to be installed
                  Depends: libclang1-18 (>= 1:17) but it is not going to be installed
                  Depends: libllvm18 but it is not going to be installed
 clangd-18 : Depends: libclang-cpp18 (>= 1:18.1.8~++20240717045021+3b5b5c1ec4a3) but it is not going to be installed
             Depends: libllvm18 (= 1:18.1.8~++20240717045021+3b5b5c1ec4a3-1~exp1~20240717165111.140) but it is not going to be installed
 libclang-18-dev : Depends: libclang1-18 (= 1:18.1.8~++20240717045021+3b5b5c1ec4a3-1~exp1~20240717165111.140) but it is not going to be installed
 libclang-cpp18-dev : Depends: libclang-cpp18 (= 1:18.1.8~++20240717045021+3b5b5c1ec4a3-1~exp1~20240717165111.140) but it is not going to be installed
 libomp-18-dev : Depends: libomp5-18 (= 1:18.1.8~++20240717045021+3b5b5c1ec4a3-1~exp1~20240717165111.140) but it is not going to be installed
 lld-18 : Depends: libllvm18 (= 1:18.1.8~++20240717045021+3b5b5c1ec4a3-1~exp1~20240717165111.140) but it is not going to be installed
 lldb-18 : Depends: libclang-cpp18 (>= 1:18.1.8~++20240717045021+3b5b5c1ec4a3) but it is not going to be installed
           Depends: liblldb-18 but it is not going to be installed
           Depends: libllvm18 (= 1:18.1.8~++20240717045021+3b5b5c1ec4a3-1~exp1~20240717165111.140) but it is not going to be installed
           Depends: python3-lldb-18 but it is not going to be installed
 llvm-18-dev : Depends: llvm-18 (= 1:18.1.8~++20240717045021+3b5b5c1ec4a3-1~exp1~20240717165111.140) but it is not going to be installed
               Depends: libllvm18 (= 1:18.1.8~++20240717045021+3b5b5c1ec4a3-1~exp1~20240717165111.140) but it is not going to be installed
               Depends: libclang-cpp18 (= 1:18.1.8~++20240717045021+3b5b5c1ec4a3-1~exp1~20240717165111.140) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.```

To reproduce:

$ wget https://apt.llvm.org/llvm.sh
$ chmod +x ./llvm.sh
$ sudo ./llvm.sh 18 all

Looks like a recent update was made:
https://apt.llvm.org/focal/pool/main/l/llvm-toolchain-18/

@dtcxzyw
Copy link
Member

dtcxzyw commented Jul 18, 2024

Duplicate of #99453

@sylvestre
Copy link
Collaborator

oh crap, i know what is going on, working on it

@sylvestre
Copy link
Collaborator

started the builds, should be available in a few hours.sorry about that

@phelter
Copy link

phelter commented Jul 18, 2024

@sylvestre - are you fixing the noble 24.04 builds as well? - Much appreciated.

Same reproduce sequence - different distro.

The following packages have unmet dependencies:
libllvm18 : Breaks: llvm-18-dev (< 1:18.1.8-4) but 1:18.1.8~++20240717045016+3b5b5c1ec4a3-1exp120240717165119.89 is to be installed

@biserdan
Copy link
Author

biserdan commented Jul 19, 2024

started the builds, should be available in a few hours.sorry about that

Works for me again on Ubuntu 20.04 with LLVM-18, thanks

masnagam added a commit to bee-browser/bee that referenced this issue Jul 19, 2024
dankegel added a commit to dankegel/tinygo that referenced this issue Jul 20, 2024
Attempt to sidestep packaging skew for the moment.

See tinygo-org#4347
and llvm/llvm-project#99502
dankegel added a commit to dankegel/tinygo that referenced this issue Jul 20, 2024
Attempt to sidestep packaging skew for the moment.

See tinygo-org#4347
and llvm/llvm-project#99502

This PR will probably be moot by the time it's reviewed :-)
@colesbury
Copy link

This looks like it's broken again. Python's CI installs LLVM on Ubuntu Jammy (for ThreadSanitizer) via:

wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh 18

A few hours ago this installed the llvm-18-dev package. Now it no longer installs it.

Before/After Before:
+ apt-get install -y clang-18 lldb-18 lld-18 clangd-18
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
  libabsl20210324 libclang-common-18-dev libclang-cpp18 libclang-rt-18-dev
  libclang1-18 libgrpc++1 libgrpc10 liblldb-18 libllvm18 libprotobuf23 llvm-18
  llvm-18-dev llvm-18-linker-tools llvm-18-runtime llvm-18-tools
  python3-lldb-18
Suggested packages:
  clang-18-doc wasi-libc llvm-18-doc

After:

+ apt-get install -y clang-18 lldb-18 lld-18 clangd-18
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
  libabsl20210324 libclang-common-18-dev libclang-cpp18 libclang-rt-18-dev
  libclang1-18 libgrpc++1 libgrpc10 liblldb-18 libllvm18 libprotobuf23
  llvm-18-linker-tools python3-lldb-18
Suggested packages:
  clang-18-doc wasi-libc
Recommended packages:
  llvm-18-dev

@sylvestre
Copy link
Collaborator

@colesbury this is probably a different bug, please open a new issue

@colesbury
Copy link

@sylvestre, thanks I filed #101201

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants