From 23fb048ce35f672d8db3f466a2522354bbce66e5 Mon Sep 17 00:00:00 2001 From: Aiden Grossman Date: Tue, 1 Apr 2025 12:55:07 -0700 Subject: [PATCH] [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. --- .ci/monolithic-linux.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.ci/monolithic-linux.sh b/.ci/monolithic-linux.sh index 4b6e56b4a4ed..ec7a85bc5f15 100755 --- a/.ci/monolithic-linux.sh +++ b/.ci/monolithic-linux.sh @@ -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 \