llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
28.06k stars 11.59k forks source link

Distribution 'ubuntu' in version '24.10 (Oracular Oriole)' is not supported by this script. #95380

Open neatudarius opened 3 months ago

neatudarius commented 3 months ago

Hello! Cannot install llvm with llvm.sh script on Ubuntu 24.04 arm64 (VM on MAC M2). Is this a known issues?

$ sudo ./llvm.sh 19 all
+ CURRENT_LLVM_STABLE=18
+ BASE_URL=http://apt.llvm.org
+ needed_binaries=(lsb_release wget add-apt-repository gpg)
+ missing_binaries=()
+ for binary in "${needed_binaries[@]}"
+ which lsb_release
+ for binary in "${needed_binaries[@]}"
+ which wget
+ for binary in "${needed_binaries[@]}"
+ which add-apt-repository
+ for binary in "${needed_binaries[@]}"
+ which gpg
+ [[ 0 -gt 0 ]]
+ LLVM_VERSION=18
+ ALL=0
++ lsb_release -is
+ DISTRO=Ubuntu
++ lsb_release -sr
+ VERSION=24.10
+ UBUNTU_CODENAME=
+ CODENAME_FROM_ARGUMENTS=
+ source /etc/os-release
++ PRETTY_NAME='Ubuntu Oracular Oriole (development branch)'
++ NAME=Ubuntu
++ VERSION_ID=24.10
++ VERSION='24.10 (Oracular Oriole)'
++ VERSION_CODENAME=oracular
++ ID=ubuntu
++ ID_LIKE=debian
++ HOME_URL=https://www.ubuntu.com/
++ SUPPORT_URL=https://help.ubuntu.com/
++ BUG_REPORT_URL=https://bugs.launchpad.net/ubuntu/
++ PRIVACY_POLICY_URL=https://www.ubuntu.com/legal/terms-and-policies/privacy-policy
++ UBUNTU_CODENAME=oracular
++ LOGO=ubuntu-logo
+ DISTRO=ubuntu
+ case ${DISTRO} in
+ [[ -n oracular ]]
+ CODENAME=oracular
+ [[ -n oracular ]]
+ LINKNAME=-oracular
+ '[' 2 -ge 1 ']'
+ '[' 1 '!=' - ']'
+ '[' 19 '!=' all ']'
+ LLVM_VERSION=19
+ OPTIND=2
+ '[' 2 -ge 2 ']'
+ '[' all == all ']'
+ ALL=1
+ OPTIND=3
+ getopts :hm:n: arg
+ [[ 0 -ne 0 ]]
+ declare -A LLVM_VERSION_PATTERNS
+ LLVM_VERSION_PATTERNS[9]=-9
+ LLVM_VERSION_PATTERNS[10]=-10
+ LLVM_VERSION_PATTERNS[11]=-11
+ LLVM_VERSION_PATTERNS[12]=-12
+ LLVM_VERSION_PATTERNS[13]=-13
+ LLVM_VERSION_PATTERNS[14]=-14
+ LLVM_VERSION_PATTERNS[15]=-15
+ LLVM_VERSION_PATTERNS[16]=-16
+ LLVM_VERSION_PATTERNS[17]=-17
+ LLVM_VERSION_PATTERNS[18]=-18
+ LLVM_VERSION_PATTERNS[19]=
+ '[' '!' _ ']'
+ LLVM_VERSION_STRING=
+ [[ -n oracular ]]
+ REPO_NAME='deb http://apt.llvm.org/oracular/  llvm-toolchain-oracular main'
+ wget -q --method=HEAD http://apt.llvm.org/oracular
+ [[ -n '' ]]
+ echo 'Distribution '\''ubuntu'\'' in version '\''24.10 (Oracular Oriole)'\'' is not supported by this script.'
Distribution 'ubuntu' in version '24.10 (Oracular Oriole)' is not supported by this script.
+ exit 2
$ uname -a
Linux pc 6.8.0-31-generic #31-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 20 02:32:42 UTC 2024 aarch64 aarch64 aarch64 GNU/Linux
$ uname -m
aarch64
sylvestre commented 3 months ago

ubuntu 24.10 isn't really a thing now. I didn't start building packages for this version yet. Why do you need it now ? :)

neatudarius commented 3 months ago

I need to build latest llvm for the Beman Project (project used to validate ISO C++ standardization proposal). e.g., in Optional26 (https://github.com/beman-project/Optional26) we have latest Ubuntu to test, and I was specifically asking for arm64 because I have a Ubuntu 24 VM on MAC PRO M2.