Yocto build for WP7702 on Fedora Linux

Hi,
I downloaded Legato-Dist-Source-mdm9x06-SWI9X06Y_02.36.07.00 from Sierra official website and when I do

cd Legato-Dist-Source-mdm9x06-SWI9X06Y_02.36.07.00 
cd yocto
make image_bin

I see

ERROR: m4-native-1.4.18-r0 do_compile: oe_runmake failed
ERROR: m4-native-1.4.18-r0 do_compile: Function failed: do_compile (log file is located at /home/username/yocto/Legato-Dist-Source-mdm9x06-SWI9X06Y_02.36.07.00/yocto/build_bin/tmp/work/x86_64-linux/m4-native/1.4.18-r0/temp/log.do_compile.395433)
ERROR: Logfile of failure stored in: /home/username/yocto/Legato-Dist-Source-mdm9x06-SWI9X06Y_02.36.07.00/yocto/build_bin/tmp/work/x86_64-linux/m4-native/1.4.18-r0/temp/log.do_compile.395433
| make: *** [Makefile:1528: all] Error 2
| ERROR: oe_runmake failed
| WARNING: /home/username/yocto/Legato-Dist-Source-mdm9x06-SWI9X06Y_02.36.07.00/yocto/build_bin/tmp/work/x86_64-linux/m4-native/1.4.18-r0/temp/run.do_compile.476786:1 exit 1 from 'exit 1'
| ERROR: Function failed: do_compile (log file is located at /home/username/yocto/Legato-Dist-Source-mdm9x06-SWI9X06Y_02.36.07.00/yocto/build_bin/tmp/work/x86_64-linux/m4-native/1.4.18-r0/temp/log.do_compile.476786)
ERROR: Task (/home/username/yocto/Legato-Dist-Source-mdm9x06-SWI9X06Y_02.36.07.00/yocto/poky/meta/recipes-devtools/m4/m4-native_1.4.18.bb:do_compile) failed with exit code '1'

I am on Fedora 36 . How do I resolve this error?

Log File :
log.do_compile.476786.txt (59.5 KB)

is it same issue as this one?