[igt-dev] [PATCH i-g-t] scripts/example-debug-error: added script for debugging compilation errors on gitlab

Kamil Konieczny kamil.konieczny at linux.intel.com
Thu Aug 31 17:02:45 UTC 2023


Added example script to help quick start debugging compilation
errors seen on GitLab fdo when building new patch or patchset.

Cc: Petri Latvala <adrinael at adrinael.net>
Cc: Mauro Carvalho Chehab <mauro.chehab at linux.intel.com>
Signed-off-by: Kamil Konieczny <kamil.konieczny at linux.intel.com>
---
 scripts/example-debug-error.sh | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)
 create mode 100755 scripts/example-debug-error.sh

diff --git a/scripts/example-debug-error.sh b/scripts/example-debug-error.sh
new file mode 100755
index 000000000..755c90a25
--- /dev/null
+++ b/scripts/example-debug-error.sh
@@ -0,0 +1,32 @@
+#!/bin/sh
+# SPDX-License-Identifier: MIT
+#
+# Copyright © 2023 Intel Corporation
+#
+# When you see compilation error in fdo GitLab follow link with
+# error to find out used registry, it should be at top of log,
+# for example:
+# Using Docker executor with image registry.freedesktop.org/gfx-ci/igt-ci-tags/build-debian-arm64:commit-1af4386ff3086df670e10af3a2bfd89993af3b0a
+#
+# Take registry and put it into POD_IGT var below (default will use debian build for amd64/x64):
+#
+POD_IGT=registry.freedesktop.org/gfx-ci/igt-ci-tags/build-debian:commit-1af4386ff3086df670e10af3a2bfd89993af3b0a
+
+mkdir -p /tmp/igt-build
+cp -R * /tmp/igt-build/
+sudo podman run -i -t -v /tmp/igt-build/:/opt/builds --privileged ${POD_IGT}
+
+# you can debug now with:
+#
+# cd /opt/builds
+# meson build
+# ninja -C build
+#
+# or for cross-compilation for arm64 (for other arch remember to change registry):
+#
+# export PKG_CONFIG_PATH=/usr/lib/aarch64-linux-gnu/pkgconfig/
+# meson --cross-file meson-cross-arm64.txt build
+# ninja -C build
+#
+# After you are done just exit shell.
+## end of script
-- 
2.39.2



More information about the igt-dev mailing list