libsdl2 configure failed

hi ,
I`m using ubuntu18.04 learning Yocto,when I build libsdl2 using following command,the log tells me do_configure failed

bitbake libsdl2-native

the error log like this:

rforming C SOURCE FILE Test HAVE_GCC_PREFERRED_STACK_BOUNDARY failed with the following output:
Change Dir: /media/yc/D/yocto/poky/build_cb/tmp/work/x86_64-linux/libsdl2-native/2.0.18-r0/build/CMakeFiles/CMakeTmp

Run Build Command(s):ninja cmTC_10c29 && [1/2] Building C object CMakeFiles/cmTC_10c29.dir/src.c.o
FAILED: CMakeFiles/cmTC_10c29.dir/src.c.o 
/media/yc/D/yocto/poky/build_cb/tmp/hosttools/gcc -DHAVE_GCC_PREFERRED_STACK_BOUNDARY  -isystem/media/yc/D/yocto/poky/build_cb/tmp/work/x86_64-linux/libsdl2-native/2.0.18-r0/recipe-sysroot-native/usr/include -O2 -pipe -DNO_SHARED_MEMORY -idirafter "/media/yc/D/yocto/poky/build_cb/tmp/work/x86_64-linux/libsdl2-native/2.0.18-r0/SDL2-2.0.18/src/video/khronos" -mpreferred-stack-boundary=2 -o CMakeFiles/cmTC_10c29.dir/src.c.o -c /media/yc/D/yocto/poky/build_cb/tmp/work/x86_64-linux/libsdl2-native/2.0.18-r0/build/CMakeFiles/CMakeTmp/src.c
cc1: error: -mpreferred-stack-boundary=2 is not between 3 and 12
ninja: build stopped: subcommand failed.