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

arm64 host: apt install clang doesn't install the nightly toolchain #64790

Open
roxell opened this issue Aug 18, 2023 · 4 comments
Open

arm64 host: apt install clang doesn't install the nightly toolchain #64790

roxell opened this issue Aug 18, 2023 · 4 comments
Assignees
Labels
infrastructure Bugs about LLVM infrastructure packaging platform:linux

Comments

@roxell
Copy link

roxell commented Aug 18, 2023

on arm64:
root@3cf1ebcf6277:/# apt install -t llvm-toolchain-bullseye clang  
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
clang is already the newest version (1:11.0-51+nmu5).
0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.

on x86:
root@149a19ca001b:/# apt install -t llvm-toolchain-bullseye clang  
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
clang is already the newest version (1:18.0-58exp120230727113808.19).
0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.

Can this be a issue with the meta package?

I'm able to install the nighly toolchain if I specify clang-18 explicitly.

@arsenm arsenm added infrastructure Bugs about LLVM infrastructure packaging and removed new issue labels Aug 18, 2023
@llvmbot
Copy link
Collaborator

llvmbot commented Aug 18, 2023

@llvm/issue-subscribers-infrastructure

@real-or-random
Copy link

Same for Ubuntu Jammy on ARM64:

https://apt.llvm.org/jammy/dists/llvm-toolchain-jammy/main/binary-arm64/Packages does not offer an unversioned clang package
https://apt.llvm.org/jammy/dists/llvm-toolchain-jammy/main/binary-amd64/Packages offers an unversioend clang package

@sylvestre
Copy link
Collaborator

I will have a look to this, sorry

real-or-random added a commit to real-or-random/secp256k1 that referenced this issue Aug 30, 2023
This also switches to a new strategy to make sure we're installing the
most recent LLVM packages. Before this commit, we used the unversioned
LLVM packages (e.g., `clang` instead of `clang-18`), which are supposed
to provide the latest snapshot, but this is broken for arm64 [1].
Anyway, the new approach is cleaner because it does not require us to
fiddle with the installed `clang` package by removing a symlink.

[1] llvm/llvm-project#64790
real-or-random added a commit to real-or-random/secp256k1 that referenced this issue Sep 2, 2023
This commit switches to a new strategy to make sure we're installing the
most recent LLVM packages. Before this commit, we used the unversioned
LLVM packages (e.g., `clang` instead of `clang-18`), which are supposed
to provide the latest snapshot, but this is broken for arm64 [1],
which we want to add in a later PR.

Anyway, the new approach is cleaner because it does not require us to
fiddle with the installed `clang` package by removing a symlink.

[1] llvm/llvm-project#64790
real-or-random added a commit to real-or-random/secp256k1 that referenced this issue Sep 3, 2023
This commit switches to a new strategy to make sure we're installing the
most recent LLVM packages. Before this commit, we used the unversioned
LLVM packages (e.g., `clang` instead of `clang-18`), which are supposed
to provide the latest snapshot, but this is broken for arm64 [1],
which we want to add in a later PR.

Anyway, the new approach is cleaner because it does not require us to
fiddle with the installed `clang` package by removing a symlink.

[1] llvm/llvm-project#64790

Co-authored-by: Hennadii Stepanov <32963518+hebasto@users.noreply.github.com>
@nbusseneau
Copy link

Hitting the same issue today, was confused for a while as to why apt policy clang was giving good results on an amd64 host and not on an arm64 host with the exact same repositories configured 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
infrastructure Bugs about LLVM infrastructure packaging platform:linux
Projects
None yet
Development

No branches or pull requests

7 participants