X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=scripts%2Flttng-modules%2Fparam-build.sh;h=13f4aaf91878255a70970f937224b569a9042794;hb=1af1b41431702839f3eb71f45a7e077180014284;hp=1d63084c253cd0f98e4ade624046ca5da8ec476e;hpb=9bbfa9dbe5be41cb0654c3616c0a060856a091f0;p=lttng-ci.git diff --git a/scripts/lttng-modules/param-build.sh b/scripts/lttng-modules/param-build.sh index 1d63084..13f4aaf 100644 --- a/scripts/lttng-modules/param-build.sh +++ b/scripts/lttng-modules/param-build.sh @@ -424,10 +424,10 @@ index bbb1d225..8deeacbc 100644 EOF fi - if ( { vergte "${kversion}" "3.15"; } && { verlt "${kversion}" "4.4"; } ) || + if ( { vergte "${kversion}" "3.14"; } && { verlt "${kversion}" "4.4"; } ) || ( { vergte "${kversion}" "4.15"; } && { verlt "${kversion}" "4.17"; } ); then # While the original motivation of this patch is for fixing builds using - # clang, the same error occurs between linux >= 3.15 and < 4.4, and in + # clang, the same error occurs between linux >= 3.14 and < 4.4, and in # 4.15, 4.16. # # This patch only partially applies due to changes in kernel/Makefile, @@ -453,6 +453,18 @@ EOF fi fi + if { vergte "${kversion}" "4.5"; } && { verlt "${kversion}" "4.8"; } ; then + # Kernels between v4.5 and v4.8 built with gcc >= 8 on arm will hit an + # assembler error : + # + # kernel/.tmp_fork.s: Assembler messages: + # kernel/.tmp_fork.s:1790: Error: .err encountered + # + # @see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85745 + # + patch_linux_kernel 9f73bd8bb445e0cbe4bcef6d4cfc788f1e184007 + fi + # Newer binutils don't accept 3 operand 'cmp' instructions on ppc64 # Convert them to 'cmpw' which was previously done silently if verlt "$kversion" "4.9"; then