From e8cd40d1c11a7e0533b8b4e2034d940b23a17d1a Mon Sep 17 00:00:00 2001 From: shivansh-ibm Date: Wed, 5 Aug 2026 03:40:32 -0700 Subject: [PATCH 1/3] Added build script for llvmlite==0.46.0 for UBI 10.1 --- l/llvmlite/build_info.json | 6 ++ l/llvmlite/llvmlite_v0.46.0_ubi_10.1.sh | 91 +++++++++++++++++++++++++ 2 files changed, 97 insertions(+) create mode 100644 l/llvmlite/llvmlite_v0.46.0_ubi_10.1.sh diff --git a/l/llvmlite/build_info.json b/l/llvmlite/build_info.json index adaa43766b..7624004bff 100644 --- a/l/llvmlite/build_info.json +++ b/l/llvmlite/build_info.json @@ -28,5 +28,11 @@ }, "v0.45.*": { "build_script": "llvmlite_v0.45.0_ubi_9_3.sh" + }, + "v0.46.*": { + "build_script": [ + "llvmlite_v0.45.0_ubi_9.3.sh", + "llvmlite_v0.46.0._ubi_10.1.sh" + ] } } diff --git a/l/llvmlite/llvmlite_v0.46.0_ubi_10.1.sh b/l/llvmlite/llvmlite_v0.46.0_ubi_10.1.sh new file mode 100644 index 0000000000..5f6554755a --- /dev/null +++ b/l/llvmlite/llvmlite_v0.46.0_ubi_10.1.sh @@ -0,0 +1,91 @@ +#!/bin/bash -e +# ----------------------------------------------------------------------------- +# +# Package : llvmlite +# Version : 0.46.0 +# Source repo : https://github.com/numba/llvmlite +# Tested on : UBI:10.1 +# Language : Python +# Ci-Check : True +# Script License : Apache License, Version 2 or later +# Maintainer : Shivansh Sharma +# +# Disclaimer : This script has been tested in root mode on given +# platform using the mentioned version of the package. +# It may not work as expected with newer versions of the +# package and/or distribution. In such case, please +# contact the "Maintainer" of this script. +# +# ----------------------------------------------------------------------------- + +# Variables +PACKAGE_NAME=llvmlite +PACKAGE_VERSION=${1:-v0.46.0} +PACKAGE_URL="https://github.com/numba/llvmlite.git" + +LLVM_PROJECT_GIT_URL="https://github.com/llvm/llvm-project.git" +LLVM_PROJECT_GIT_TAG="llvmorg-20.1.8" + +WORKING_DIR="$(pwd)" +LLVM_SRC_DIR=$WORKING_DIR/llvm-project +LLVM_INSTALL_DIR=$WORKING_DIR/llvm-install + +# Install system dependencies +yum install -y git wget cmake ninja-build make \ + openssl-devel bzip2-devel libffi-devel zlib-devel \ + python3.12 python3.12-devel python3.12-pip +yum install -y gcc-toolset-15 +source /usr/lib/gcc-toolset/15-env.source + +# Ensure pip is up-to-date +python3.12 -m pip install -U pip +python3.12 -m pip install "setuptools<70" wheel ninja + +# Clone llvm-project +if [ ! -d "$LLVM_SRC_DIR" ]; then + git clone $LLVM_PROJECT_GIT_URL $LLVM_SRC_DIR +fi +cd $LLVM_SRC_DIR +git fetch --all --tags +git checkout $LLVM_PROJECT_GIT_TAG + +# Build & install LLVM +cmake -S llvm -B build -G Ninja \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=$LLVM_INSTALL_DIR \ + -DLLVM_ENABLE_PROJECTS="clang;lld" \ + -DLLVM_TARGETS_TO_BUILD="PowerPC" + +cmake --build build --target install -j$(nproc) + +# Clone llvmlite +cd $WORKING_DIR +if [ ! -d "$PACKAGE_NAME" ]; then + git clone $PACKAGE_URL +fi +cd $PACKAGE_NAME +git checkout $PACKAGE_VERSION + +# Build & install llvmlite +export CMAKE_PREFIX_PATH=$LLVM_INSTALL_DIR/lib/cmake/llvm +export CXXFLAGS="-fPIC" + +if ! (python3.12 -m pip install --no-build-isolation .) ; then + echo "------------------$PACKAGE_NAME:Install_fails-------------------------------------" + echo "$PACKAGE_URL $PACKAGE_NAME" + echo "$PACKAGE_NAME | $PACKAGE_URL | $PACKAGE_VERSION | GitHub | Fail | Install_Fails" + exit 1 +fi + +# Run tests +if ! python3.12 -m llvmlite.tests ; then + echo "------------------$PACKAGE_NAME:Install_success_but_test_fails---------------------" + echo "$PACKAGE_URL $PACKAGE_NAME" + echo "$PACKAGE_NAME | $PACKAGE_URL | $PACKAGE_VERSION | GitHub | Fail | Install_success_but_test_Fails" + exit 2 +else + echo "------------------$PACKAGE_NAME:Install_&_test_both_success-------------------------" + echo "$PACKAGE_URL $PACKAGE_NAME" + echo "$PACKAGE_NAME | $PACKAGE_URL | $PACKAGE_VERSION | GitHub | Pass | Both_Install_and_Test_Success" + exit 0 +fi From b3e19e52b65b6532b1a29bde1ceef74f6f61a3d2 Mon Sep 17 00:00:00 2001 From: shivansh-ibm Date: Wed, 2 Sep 2026 12:35:17 +0530 Subject: [PATCH 2/3] Update and rename llvmlite_v0.46.0_ubi_10.1.sh to llvmlite_v0.46.0_ubi_10.2.sh --- ...lvmlite_v0.46.0_ubi_10.1.sh => llvmlite_v0.46.0_ubi_10.2.sh} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename l/llvmlite/{llvmlite_v0.46.0_ubi_10.1.sh => llvmlite_v0.46.0_ubi_10.2.sh} (99%) diff --git a/l/llvmlite/llvmlite_v0.46.0_ubi_10.1.sh b/l/llvmlite/llvmlite_v0.46.0_ubi_10.2.sh similarity index 99% rename from l/llvmlite/llvmlite_v0.46.0_ubi_10.1.sh rename to l/llvmlite/llvmlite_v0.46.0_ubi_10.2.sh index 5f6554755a..9172159d58 100644 --- a/l/llvmlite/llvmlite_v0.46.0_ubi_10.1.sh +++ b/l/llvmlite/llvmlite_v0.46.0_ubi_10.2.sh @@ -4,7 +4,7 @@ # Package : llvmlite # Version : 0.46.0 # Source repo : https://github.com/numba/llvmlite -# Tested on : UBI:10.1 +# Tested on : UBI:10.2 # Language : Python # Ci-Check : True # Script License : Apache License, Version 2 or later From a1bf6300dba056c12c83323635f879b3e3c069f4 Mon Sep 17 00:00:00 2001 From: shivansh-ibm Date: Wed, 2 Sep 2026 12:36:05 +0530 Subject: [PATCH 3/3] Update build_info.json --- l/llvmlite/build_info.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/l/llvmlite/build_info.json b/l/llvmlite/build_info.json index 7624004bff..0294994d49 100644 --- a/l/llvmlite/build_info.json +++ b/l/llvmlite/build_info.json @@ -3,7 +3,7 @@ "package_name": "llvmlite", "github_url": "https://github.com/numba/llvmlite", "required_versions":{"Releases": ["*"], "Tags": ["v0.44.0rc1","v0.45.0"]}, - "version": "v0.45.0", + "version": "v0.46.0", "default_branch": "main", "build_script": "llvmlite_v0.45.0_ubi_9_3.sh", "wheel_build" : true, @@ -32,7 +32,7 @@ "v0.46.*": { "build_script": [ "llvmlite_v0.45.0_ubi_9.3.sh", - "llvmlite_v0.46.0._ubi_10.1.sh" + "llvmlite_v0.46.0._ubi_10.2.sh" ] } }