Skip to content
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

[CI][C++] test-ubuntu-24.04-cpp-gcc-14 fails to install clang-14 #41147

Closed
raulcd opened this issue Apr 11, 2024 · 9 comments
Closed

[CI][C++] test-ubuntu-24.04-cpp-gcc-14 fails to install clang-14 #41147

raulcd opened this issue Apr 11, 2024 · 9 comments

Comments

@raulcd
Copy link
Member

raulcd commented Apr 11, 2024

Describe the bug, including details regarding any error messages, version, and platform.

The test-ubuntu-24.04-cpp-gcc-14 job has started failing to install clang-14 and llvm14, see:

#9 2.637 Package llvm-14-dev is not available, but is referred to by another package.
#9 2.637 This may mean that the package is missing, has been obsoleted, or
#9 2.637 is only available from another source
#9 2.637 
#9 2.637 Package clang-14 is not available, but is referred to by another package.
#9 2.637 This may mean that the package is missing, has been obsoleted, or
#9 2.637 is only available from another source
#9 2.637 
#9 2.640 E: Package 'clang-14' has no installation candidate
#9 2.640 E: Package 'clang-14' has no installation candidate
#9 2.640 E: Unable to locate package clang-format-14
#9 2.640 E: Unable to locate package clang-tidy-14
#9 2.640 E: Package 'llvm-14-dev' has no installation candidate

This is also failing on the maintenance branch for 16.0.0.

Component(s)

C++, Continuous Integration

@raulcd
Copy link
Member Author

raulcd commented Apr 11, 2024

As far as I can see nothing has changed here and the ppa repo is supposed to have gcc-14: https://launchpad.net/~ubuntu-toolchain-r/+archive/ubuntu/ppa

@raulcd
Copy link
Member Author

raulcd commented Apr 11, 2024

The error I get locally is slightly different that's why I was investigating gcc-14. When I run $ GCC_VERSION=14 UBUNTU=22.04 archery docker run -e SETUPTOOLS_SCM_PRETEND_VERSION="16.0.0.dev496" -e CC=gcc-14 -e CXX=g++-14 -e RapidJSON_SOURCE=BUNDLED ubuntu-cpp I get:

#0 27.07 Hit:1 http://security.ubuntu.com/ubuntu jammy-security InRelease
#0 27.19 Hit:2 http://archive.ubuntu.com/ubuntu jammy InRelease
#0 27.21 Hit:3 https://ppa.launchpadcontent.net/ubuntu-toolchain-r/volatile/ubuntu jammy InRelease
#0 27.30 Hit:4 http://archive.ubuntu.com/ubuntu jammy-updates InRelease
#0 27.49 Hit:5 http://archive.ubuntu.com/ubuntu jammy-backports InRelease
#0 27.78 Reading package lists...
#0 28.33 Reading package lists...
#0 28.83 Building dependency tree...
#0 28.94 Reading state information...
#0 28.97 E: Unable to locate package gcc-14

@pitrou
Copy link
Member

pitrou commented Apr 11, 2024

@raulcd You need UBUNTU=24.04 not 22.04

@pitrou
Copy link
Member

pitrou commented Apr 11, 2024

I cannot reproduce here. The image builds successfully. I used:

$ ARCHERY_USE_DOCKER_CLI=1 ARCHERY_DEBUG=1 GCC_VERSION=14 UBUNTU=24.04 archery docker run -e SETUPTOOLS_SCM_PRETEND_VERSION="16.0.0.dev496" -e CC=gcc-14 -e CXX=g++-14 -e RapidJSON_SOURCE=BUNDLED ubuntu-cpp bash

@pitrou
Copy link
Member

pitrou commented Apr 11, 2024

Edit: sorry, I was mistaken. This was because the corresponding steps were cached. If I disable caching (by adding --no-leaf-cache --force-build to the Archery command line), then I can reproduce the issue.

@pitrou
Copy link
Member

pitrou commented Apr 11, 2024

Ok, it seems that for some reason LLVM 14 has disappeared from the Ubuntu 24.04 packages. Later versions are available, I'm going to give it a try.

@kou
Copy link
Member

kou commented Apr 11, 2024

Hmm. It seems that llvm-14 doesn't exist only for amd64: https://packages.ubuntu.com/noble/llvm-14

Based on https://launchpad.net/ubuntu/+source/llvm-toolchain-14/+publishinghistory , the latest version is 1:14.0.6-19build4 but https://packages.ubuntu.com/noble/llvm-14 is ...build2.

pitrou added a commit to pitrou/arrow that referenced this issue Apr 11, 2024
@kou
Copy link
Member

kou commented Apr 11, 2024

http://archive.ubuntu.com/ubuntu/pool/universe/l/llvm-toolchain-14/ has
llvm-14_14.0.6-19build2_i386.deb but it doesn't have
llvm-14_14.0.6-19build2_amd64.deb.

Both of llvm-14_14.0.6-19build4_{amd64,i386}.deb exist.

pitrou added a commit to pitrou/arrow that referenced this issue Apr 11, 2024
pitrou added a commit to pitrou/arrow that referenced this issue Apr 11, 2024
pitrou added a commit that referenced this issue Apr 11, 2024
### What changes are included in this PR?

Use LLVM 15 on Ubuntu 24.04, as LLVM 14 packages seem not always available.

### Are these changes tested?

Yes, on CI.

### Are there any user-facing changes?

No.
* GitHub Issue: #41147

Authored-by: Antoine Pitrou <antoine@python.org>
Signed-off-by: Antoine Pitrou <antoine@python.org>
@pitrou
Copy link
Member

pitrou commented Apr 11, 2024

Issue resolved by pull request 41150
#41150

@pitrou pitrou closed this as completed Apr 11, 2024
raulcd pushed a commit that referenced this issue Apr 11, 2024
### What changes are included in this PR?

Use LLVM 15 on Ubuntu 24.04, as LLVM 14 packages seem not always available.

### Are these changes tested?

Yes, on CI.

### Are there any user-facing changes?

No.
* GitHub Issue: #41147

Authored-by: Antoine Pitrou <antoine@python.org>
Signed-off-by: Antoine Pitrou <antoine@python.org>
vibhatha pushed a commit to vibhatha/arrow that referenced this issue Apr 15, 2024
### What changes are included in this PR?

Use LLVM 15 on Ubuntu 24.04, as LLVM 14 packages seem not always available.

### Are these changes tested?

Yes, on CI.

### Are there any user-facing changes?

No.
* GitHub Issue: apache#41147

Authored-by: Antoine Pitrou <antoine@python.org>
Signed-off-by: Antoine Pitrou <antoine@python.org>
tolleybot pushed a commit to tmct/arrow that referenced this issue May 2, 2024
### What changes are included in this PR?

Use LLVM 15 on Ubuntu 24.04, as LLVM 14 packages seem not always available.

### Are these changes tested?

Yes, on CI.

### Are there any user-facing changes?

No.
* GitHub Issue: apache#41147

Authored-by: Antoine Pitrou <antoine@python.org>
Signed-off-by: Antoine Pitrou <antoine@python.org>
vibhatha pushed a commit to vibhatha/arrow that referenced this issue May 25, 2024
### What changes are included in this PR?

Use LLVM 15 on Ubuntu 24.04, as LLVM 14 packages seem not always available.

### Are these changes tested?

Yes, on CI.

### Are there any user-facing changes?

No.
* GitHub Issue: apache#41147

Authored-by: Antoine Pitrou <antoine@python.org>
Signed-off-by: Antoine Pitrou <antoine@python.org>
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

3 participants