Skip to content

Commit 23fb048

Browse files
[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.
1 parent ac0649a commit 23fb048

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.ci/monolithic-linux.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ targets="${2}"
5353
lit_args="-v --xunit-xml-output ${BUILD_DIR}/test-results.xml --use-unique-output-file-name --timeout=1200 --time-tests"
5454

5555
echo "--- cmake"
56-
pip install -q -r "${MONOREPO_ROOT}"/mlir/python/requirements.txt
57-
pip install -q -r "${MONOREPO_ROOT}"/lldb/test/requirements.txt
58-
pip install -q -r "${MONOREPO_ROOT}"/.ci/requirements.txt
56+
pip install --break-system-packages -q -r "${MONOREPO_ROOT}"/mlir/python/requirements.txt
57+
pip install --break-system-packages -q -r "${MONOREPO_ROOT}"/lldb/test/requirements.txt
58+
pip install --break-system-packages -q -r "${MONOREPO_ROOT}"/.ci/requirements.txt
5959
cmake -S "${MONOREPO_ROOT}"/llvm -B "${BUILD_DIR}" \
6060
-D LLVM_ENABLE_PROJECTS="${projects}" \
6161
-G Ninja \

0 commit comments

Comments
 (0)