[CI] Fix Monolithic Linux Build in Ubuntu 24.04 (#133628)

This patch fixes the monolithic linux build in Ubuntu 24.04. Newer
versions of debian/ubuntu pass a warning when installing packages at the
system level using pip as it interferes with system package manager
installed python packages. We do not use any system package manager
installed python packages, so we just ignore the warning (that is an
error without passing the flag) by passing the --break-system-packages
flag.
This commit is contained in:
Aiden Grossman 2025-04-01 12:55:07 -07:00 committed by GitHub
parent ac0649a75a
commit 23fb048ce3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -53,9 +53,9 @@ targets="${2}"
lit_args="-v --xunit-xml-output ${BUILD_DIR}/test-results.xml --use-unique-output-file-name --timeout=1200 --time-tests"
echo "--- cmake"
pip install -q -r "${MONOREPO_ROOT}"/mlir/python/requirements.txt
pip install -q -r "${MONOREPO_ROOT}"/lldb/test/requirements.txt
pip install -q -r "${MONOREPO_ROOT}"/.ci/requirements.txt
pip install --break-system-packages -q -r "${MONOREPO_ROOT}"/mlir/python/requirements.txt
pip install --break-system-packages -q -r "${MONOREPO_ROOT}"/lldb/test/requirements.txt
pip install --break-system-packages -q -r "${MONOREPO_ROOT}"/.ci/requirements.txt
cmake -S "${MONOREPO_ROOT}"/llvm -B "${BUILD_DIR}" \
-D LLVM_ENABLE_PROJECTS="${projects}" \
-G Ninja \