make -C /opt/x6818_linux_180209/kernel/ M=`pwd` modules
make[1]: Entering directory '/opt/x6818_linux_180209/linux/kernel/kernel-3.4.39'
CC [M] /home/book/nfsroot/study/module/day2/chardev/kbuf/6818/kbuf.o
gcc: error: unrecognized argument in option ‘-mabi=aapcs-linux’
gcc: note: valid arguments to ‘-mabi=’ are: ms sysv
gcc: error: unrecognized command line option ‘-mlittle-endian’; did you mean ‘-fconvert=little-endian’?
gcc: error: unrecognized command line option ‘-mno-thumb-interwork’; did you mean ‘-fno-sched-interblock’?
gcc: error: unrecognized command line option ‘-mfpu=vfp’; did you mean ‘-mcpu=’?
gcc: error: unrecognized command line option ‘-mfloat-abi=softfp’
scripts/Makefile.build:313: recipe for target '/home/book/nfsroot/study/module/day2/chardev/kbuf/6818/kbuf.o' failed
make[2]: *** [/home/book/nfsroot/study/module/day2/chardev/kbuf/6818/kbuf.o] Error 1
Makefile:1365: recipe for target '_module_/home/book/nfsroot/study/module/day2/chardev/kbuf/6818' failed
make[1]: *** [_module_/home/book/nfsroot/study/module/day2/chardev/kbuf/6818] Error 2
make[1]: Leaving directory '/opt/x6818_linux_180209/linux/kernel/kernel-3.4.39'
Makefile:5: recipe for target 'all' failed
make: *** [all] Error 2