Ti-compat-wireless/src/libnl': | configure: error: C compiler cannot create executables

Hello,
recently I started having this error while compiling my recipes:

IMAGE_INSTALL_append =" python3 python-virtualenv python-django python-flask uwsgi python3-pyserial python-pyserial pymodbus nginx glibc-utils localedef sqlite3 libsqlite3-dev libsqlite3 "

do you have any idéa about this issue

| configure.ac:15: error: possibly undefined macro: AM_INIT_AUTOMAKE
| If this token and others are legitimate, please use m4_pattern_allow.
| See the Autoconf documentation.
| configure.ac:96: error: possibly undefined macro: AM_CONDITIONAL
| autoreconf: /media/freeman/freeman_extended/opt/LEGATO_FX30/yocto/build_bin/tmp/sysroots/x86_64-linux/usr/bin/autoconf failed with exit status: 1
| /bin/sh: /media/freeman/freeman_extended/opt/LEGATO_FX30/yocto/build_bin/tmp/sysroots/x86_64-linux/usr/lib/libtinfo.so.5: no version information available (required by /bin/sh)
| checking for a BSD-compatible install… /usr/bin/install -c
| checking whether build environment is sane… yes
| /bin/sh: /media/freeman/freeman_extended/opt/LEGATO_FX30/yocto/build_bin/tmp/sysroots/x86_64-linux/usr/lib/libtinfo.so.5: no version information available (required by /bin/sh)
| checking for arm-strip… arm-poky-linux-gnueabi-strip
| checking for a thread-safe mkdir -p… /bin/mkdir -p
| checking for gawk… gawk
| checking whether make sets $(MAKE)… yes
| checking whether make supports nested variables… yes
| checking whether make supports nested variables… (cached) yes
| checking for style of include used by make… GNU
| checking for arm-gcc… arm-poky-linux-gnueabi-gcc
| checking whether the C compiler works… no
| configure: error: in /media/freeman/freeman_extended/opt/LEGATO_FX30/yocto/build_bin/tmp/work/swi_mdm9x15-poky-linux-gnueabi/ti-compat-wireless/1.0-r0/ti-compat-wireless/src/libnl': | configure: error: C compiler cannot create executables | See config.log’ for more details
| make: *** No rule to make target ‘clean’. Stop.
| ****** *******
| make: *** No targets specified and no makefile found. Stop.
| ****** ERROR 0 *******
| WARNING: /media/freeman/freeman_extended/opt/LEGATO_FX30/yocto/build_bin/tmp/work/swi_mdm9x15-poky-linux-gnueabi/ti-compat-wireless/1.0-r0/temp/run.do_compile.13039:1 exit 1 from
| CC= ./swi_build_wl18xx.sh libnl
| ERROR: Function failed: do_compile (log file is located at /media/freeman/freeman_extended/opt/LEGATO_FX30/yocto/build_bin/tmp/work/swi_mdm9x15-poky-linux-gnueabi/ti-compat-wireless/1.0-r0/temp/log.do_compile.13039)
ERROR: Task 370 (/media/freeman/freeman_extended/opt/LEGATO_FX30/yocto/meta-swi/common/recipes-connectivity/ti-compat-wireless/ti-compat-wireless_1.0.bb, do_compile) failed with exit code ‘1’
NOTE: Tasks Summary: Attempted 2743 tasks of which 2740 didn’t need to be rerun and 1 failed.
No currently running tasks (2743 of 2755)

There might be problem in your setup where you are compiling/building i.e, host pc.I hope you are using ubuntu machine.
because there may be need of updated version of automake and libtool which may be the cause of this compilation error.
Please try to run below commands to update and try compiling it once again.

sudo apt-get install build-essential
sudo apt-get autoremove automake
sudo apt-get install automake
sudo apt-get install libtool