From 23db22928a597d8c7d04f46d5bbfa83f501d1438 Mon Sep 17 00:00:00 2001 From: Michael Jeanson Date: Fri, 22 Feb 2019 16:56:58 -0500 Subject: [PATCH] jjb: fix compiler version for bionic Signed-off-by: Michael Jeanson --- scripts/lttng-modules/param-build.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/lttng-modules/param-build.sh b/scripts/lttng-modules/param-build.sh index a3ec5f2..7d5eb6e 100644 --- a/scripts/lttng-modules/param-build.sh +++ b/scripts/lttng-modules/param-build.sh @@ -92,7 +92,7 @@ select_compiler() { set +e - for cc in gcc-7 gcc-5 gcc-4.9; do + for cc in gcc-7 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 @@ -110,13 +110,13 @@ select_compiler() { if { vergte "$kversion" "3.2" && verlt "$kversion" "3.3"; } || \ { vergte "$kversion" "3.4" && verlt "$kversion" "3.5"; } || \ { vergte "$kversion" "3.17" && verlt "$kversion" "3.18"; }; then - selected_cc=gcc-4.9 + selected_cc=gcc-4.8 fi case "$ktag" in Ubuntu*) if { vergte "$kversion" "3.13" && verlt "$kversion" "3.14"; }; then - selected_cc=gcc-4.9 + selected_cc=gcc-4.8 fi ;; esac @@ -173,7 +173,7 @@ build_linux_kernel() { fi # Fix syntax of inline assembly which is confused with C++11 raw strings on gcc >= 5 - if [ "$CC" != "gcc-4.9" ]; then + if [ "$CC" != "gcc-4.8" ]; then if [ -f "arch/x86/kvm/svm.c" ]; then sed -i 's/ R"/ R "/g; s/"R"/" R "/g' arch/x86/kvm/svm.c fi -- 2.34.1