scripts/mod/empty.o failed on i386 on linux next 20200729 tag

From: Naresh Kamboju
Date: Thu Jul 30 2020 - 11:54:08 EST


We have noticed this build error on i386 on linux next 20200729 tag
this is building with gcc-7.3.0

make -j 8 -j 8 bzImage CC=i686-linaro-linux-gcc
-fuse-ld=bfd
-fdebug-prefix-map=/srv/oe/build/tmp-lkft-glibc/work/intel_core2_32-linaro-linux/linux-generic-next/5.7+gitAUTOINC+04b4571786-r0=/usr/src/debug/linux-generic-next/5.7+gitAUTOINC+04b4571786-r0
-fdebug-prefix-map=/srv/oe/build/tmp-lkft-glibc/work/intel_core2_32-linaro-linux/linux-generic-next/5.7+gitAUTOINC+04b4571786-r0/recipe-sysroot=
-fdebug-prefix-map=/srv/oe/build/tmp-lkft-glibc/work/intel_core2_32-linaro-linux/linux-generic-next/5.7+gitAUTOINC+04b4571786-r0/recipe-sysroot-native=
-fdebug-prefix-map=/srv/oe/build/tmp-lkft-glibc/work-shared/intel-core2-32/kernel-source=/usr/src/kernel
-ffile-prefix-map=/srv/oe/build/tmp-lkft-glibc/work/intel_core2_32-linaro-linux/linux-generic-next/5.7+gitAUTOINC+04b4571786-r0/git=/kernel-source/
LD=i686-linaro-linux-ld.bfd

<trim>
| AR tools/objtool/libsubcmd.a
| CC scripts/mod/empty.o
| HOSTCC scripts/mod/mk_elfconfig
| CC scripts/mod/devicetable-offsets.s
| cc1: error: code model 'kernel' not supported in the 32 bit mode
| cc1: sorry, unimplemented: 64-bit mode not compiled in
| cc1: error: code model 'kernel' not supported in the 32 bit mode
| cc1: sorry, unimplemented: 64-bit mode not compiled in
| /srv/oe/build/tmp-lkft-glibc/work-shared/intel-core2-32/kernel-source/scripts/Makefile.build:280:
recipe for target 'scripts/mod/empty.o' failed
| make[2]: *** [scripts/mod/empty.o] Error 1

Full build log link,
https://ci.linaro.org/view/lkft/job/openembedded-lkft-linux-next/DISTRO=lkft,MACHINE=intel-core2-32,label=docker-lkft/824/consoleText

- Naresh