From 2456f978522b32e76f6607899cb72e808c20501d Mon Sep 17 00:00:00 2001 From: Michael Jeanson Date: Fri, 29 Jan 2021 11:16:37 -0500 Subject: [PATCH] jjb: lttng-modules: Fix kernel build failures Signed-off-by: Michael Jeanson --- scripts/lttng-modules/param-build.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/lttng-modules/param-build.sh b/scripts/lttng-modules/param-build.sh index dbfa5ee..cb7d2f3 100644 --- a/scripts/lttng-modules/param-build.sh +++ b/scripts/lttng-modules/param-build.sh @@ -18,7 +18,7 @@ set -exu # Parameters -arch=${arch:-} +arch=${arch:-amd64} cross_arch=${cross_arch:-} ktag=${ktag:-} kgitrepo=${kgitrepo:-} @@ -104,7 +104,7 @@ select_compiler() { set +e - for cc in gcc-5 gcc-4.8; do + for cc in gcc-8 gcc-5 gcc-4.8; do if "${CROSS_COMPILE:-}${cc}" -I include/ -D__LINUX_COMPILER_H -D__LINUX_COMPILER_TYPES_H -E include/linux/compiler-gcc.h; then selected_cc="$cc" break @@ -431,6 +431,10 @@ build_modules() { kversion=$(make -C "$LINUX_HDROBJ_DIR" -s kernelversion) + # Try to catch some compatibility problems by turning some + # warnings into errors. + export KCFLAGS="$KCFLAGS -Wall -Werror" + # Enter lttng-modules source dir cd "${MODULES_GIT_DIR}" -- 2.34.1