Compiler option -mfloat-abi=hard not being used

I am cross compiling the SampleApplications using SLQS04.00.20. I modified slqscompile.mak so that it has the following so that it uses the correct cross compiler:

ifeq ($(CPU),arm)
CROSS_COMPILE := /opt/fsl-imx-x11/4.9.11-1.0.0/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-
INCLUDE += -I/opt/fsl-imx-x11/4.9.11-1.0.0/sysroots/cortexa9hf-neon-poky-linux-gnueabi/usr/include
LDFLAGS += -L/opt/fsl-imx-x11/4.9.11-1.0.0/sysroots/cortexa9hf-neon-poky-linux-gnueabi/usr/lib/gcc/arm-poky-linux-gnueabi/6.2.0/
CFLAGS += -march=armv7-a -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a9 --sysroot=/opt/fsl-imx-x11/4.9.11-1.0.0/sysroots/cortexa9hf-neon-poky-linux-gnueabi
endif

The compiler option “-mfloat-abi=hard” should force “__ARM_PCS_VFP” to be defined so that when stubs.h is included, the second part of what is below should be used:

#if !defined __ARM_PCS_VFP

include <gnu/stubs-soft.h>

#endif
#if defined __ARM_PCS_VFP

include <gnu/stubs-hard.h>

#endif

For some reason, even though I use the compiler option, the compiler is still trying to use gnu/stubs-soft.h and I get a compiler error because of it. I searched the forum for this option and for IMX6 without any luck, so maybe somebody here knows how to fix this problem I’m having?

Any help would be greatly appreciated.

Regards
Chet

Below is the build output. Here is the build command I am using:

cd ~/base/LTE_modem/SLQS04.00.20.src/pkgs

make -f pkgs.mak CPU=arm all TECHNOLOGY=ALL LITEQMI=0 > ~/base/build_output.txt 2>&1

The contents of my output log file are the following:

#######################################

BUILDING ALL TARGETS

#######################################
MAKE=make SUBDIRS=common er am os mm sl ql pi dl hd ic us ci sm im qm ds su sdk qa SLQSHOSTTYPE=x86_64 SLQSHOSTTYPE=x86_64 QMI_BUILD_BASE=/home/chet/base/LTE_modem/SLQS04.00.20.src
CPU=arm OBJSDIR=/home/chet/base/LTE_modem/SLQS04.00.20.src/build/obj/arm/pkgs/

set -e; for i in common er am os mm sl ql pi dl hd ic us ci sm im qm ds su sdk qa ; do
( make -C $i -f $i.mak ; \

echo “result: $?” ; \

	if [ "$?" -ne 0 ]; then \
	    echo "Build $i failed"; \
	    exit 2; \
	fi; ) \
done

make[1]: Entering directory `/home/chet/base/LTE_modem/SLQS04.00.20.src/pkgs/common’
— Building switype_256bit
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libslqscore.a…
/opt/fsl-imx-x11/4.9.11-1.0.0/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-ar: creating /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libslqscore.a
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/pkgs/sdk/arm/libslqssdk.a…
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/liblite-fw.a…

/opt/fsl-imx-x11/4.9.11-1.0.0/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-ar: creating /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/liblite-fw.a
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libdcs.a…
/opt/fsl-imx-x11/4.9.11-1.0.0/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-ar: creating /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libdcs.a
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libwds.a…
/opt/fsl-imx-x11/4.9.11-1.0.0/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-ar: creating /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libwds.a
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libdms.a…
/opt/fsl-imx-x11/4.9.11-1.0.0/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-ar: creating /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libdms.a
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libnas.a…
/opt/fsl-imx-x11/4.9.11-1.0.0/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-ar: creating /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libnas.a
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libcbk.a…
/opt/fsl-imx-x11/4.9.11-1.0.0/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-ar: creating /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libcbk.a
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libcat.a…
/opt/fsl-imx-x11/4.9.11-1.0.0/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-ar: creating /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libcat.a
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/librms.a…
/opt/fsl-imx-x11/4.9.11-1.0.0/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-ar: creating /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/librms.a
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libfms.a…
/opt/fsl-imx-x11/4.9.11-1.0.0/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-ar: creating /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libfms.a
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libsms.a…
/opt/fsl-imx-x11/4.9.11-1.0.0/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-ar: creating /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libsms.a
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libpds.a…
/opt/fsl-imx-x11/4.9.11-1.0.0/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-ar: creating /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libpds.a
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libomadm.a…
/opt/fsl-imx-x11/4.9.11-1.0.0/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-ar: creating /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libomadm.a
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libomadm.a…
/opt/fsl-imx-x11/4.9.11-1.0.0/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-ar: creating /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libswiomadms.a
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libsar.a…
/opt/fsl-imx-x11/4.9.11-1.0.0/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-ar: creating /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libsar.a
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libvoice.a…
/opt/fsl-imx-x11/4.9.11-1.0.0/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-ar: creating /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libvoice.a
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libswi.a…
/opt/fsl-imx-x11/4.9.11-1.0.0/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-ar: creating /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libswi.a
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libuim.a…
/opt/fsl-imx-x11/4.9.11-1.0.0/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-ar: creating /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libuim.a
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libaudio.a…
/opt/fsl-imx-x11/4.9.11-1.0.0/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-ar: creating /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libaudio.a
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libims.a…
/opt/fsl-imx-x11/4.9.11-1.0.0/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-ar: creating /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libims.a
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libswiaudio.a…
/opt/fsl-imx-x11/4.9.11-1.0.0/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-ar: creating /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libswiaudio.a
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libqos.a…
/opt/fsl-imx-x11/4.9.11-1.0.0/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-ar: creating /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libqos.a
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libloc.a…
/opt/fsl-imx-x11/4.9.11-1.0.0/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-ar: creating /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libloc.a
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libimsa.a…
/opt/fsl-imx-x11/4.9.11-1.0.0/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-ar: creating /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libimsa.a
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libtmd.a…
/opt/fsl-imx-x11/4.9.11-1.0.0/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-ar: creating /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libtmd.a
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libslqsapi.a…
/opt/fsl-imx-x11/4.9.11-1.0.0/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-ar: creating /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libslqsqmi.a
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/liblite-qmi.a…
/opt/fsl-imx-x11/4.9.11-1.0.0/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-ar: creating /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/liblite-qmi.a
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libslqsapi.a…
/opt/fsl-imx-x11/4.9.11-1.0.0/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-ar: creating /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libslqsapi.a
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libavms.a…
/opt/fsl-imx-x11/4.9.11-1.0.0/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-ar: creating /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libavms.a
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libswidms.a…
/opt/fsl-imx-x11/4.9.11-1.0.0/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-ar: creating /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libswidms.a
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libcommon.a…
%%% /home/chet/base/LTE_modem/SLQS04.00.20.src/build/obj/arm/pkgs/common/switype_256bit.o
/opt/fsl-imx-x11/4.9.11-1.0.0/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-ar: creating /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libcommon.a
make[1]: Leaving directory /home/chet/base/LTE_modem/SLQS04.00.20.src/pkgs/common' make[1]: Entering directory/home/chet/base/LTE_modem/SLQS04.00.20.src/pkgs/er’
— Building er_api
— Building er_sdk
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libslqscore.a…
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/pkgs/sdk/arm/libslqssdk.a…
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/liblite-fw.a…

— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libdcs.a…
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/liblite-qmi.a…
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libslqsapi.a…
make[1]: Leaving directory /home/chet/base/LTE_modem/SLQS04.00.20.src/pkgs/er' make[1]: Entering directory/home/chet/base/LTE_modem/SLQS04.00.20.src/pkgs/am’
— Building am
— Building amipctask_sdk
— Building amtimeout_sdk
— Building am_api
— Building amqmi
— Building amsdk
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libslqscore.a…
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/pkgs/sdk/arm/libslqssdk.a…
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/liblite-fw.a…

— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libdcs.a…
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/liblite-qmi.a…
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libslqsapi.a…
make[1]: Leaving directory /home/chet/base/LTE_modem/SLQS04.00.20.src/pkgs/am' make[1]: Entering directory/home/chet/base/LTE_modem/SLQS04.00.20.src/pkgs/os’
— Building swi_osapi
— Building swi_ossdk
— Building swi_ossdkcheck
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libslqscore.a…
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/pkgs/sdk/arm/libslqssdk.a…
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/liblite-fw.a…

— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libdcs.a…
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/liblite-qmi.a…
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libslqsapi.a…
make[1]: Leaving directory /home/chet/base/LTE_modem/SLQS04.00.20.src/pkgs/os' make[1]: Entering directory/home/chet/base/LTE_modem/SLQS04.00.20.src/pkgs/mm’
— Building mm
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libslqscore.a…
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/pkgs/sdk/arm/libslqssdk.a…
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/liblite-fw.a…

— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libdcs.a…
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libslqsapi.a…
make[1]: Leaving directory /home/chet/base/LTE_modem/SLQS04.00.20.src/pkgs/mm' make[1]: Entering directory/home/chet/base/LTE_modem/SLQS04.00.20.src/pkgs/sl’
— Building slcommon
— Building slmanage
— Building slvsprintf
— Building slucs2
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libslqscore.a…
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/pkgs/sdk/arm/libslqssdk.a…
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/liblite-fw.a…

— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libdcs.a…
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/liblite-qmi.a…
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libslqsapi.a…
make[1]: Leaving directory /home/chet/base/LTE_modem/SLQS04.00.20.src/pkgs/sl' make[1]: Entering directory/home/chet/base/LTE_modem/SLQS04.00.20.src/pkgs/ql’
— Building ql
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libslqscore.a…
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/pkgs/sdk/arm/libslqssdk.a…
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/liblite-fw.a…

— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libdcs.a…
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libslqsapi.a…
make[1]: Leaving directory /home/chet/base/LTE_modem/SLQS04.00.20.src/pkgs/ql' make[1]: Entering directory/home/chet/base/LTE_modem/SLQS04.00.20.src/pkgs/pi’
— Building piLe
— Building piBe
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libslqscore.a…
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/pkgs/sdk/arm/libslqssdk.a…
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/liblite-fw.a…

— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libdcs.a…
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/liblite-qmi.a…
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libslqsapi.a…
make[1]: Leaving directory /home/chet/base/LTE_modem/SLQS04.00.20.src/pkgs/pi' make[1]: Entering directory/home/chet/base/LTE_modem/SLQS04.00.20.src/pkgs/dl’
— Building dlpackage
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libslqscore.a…
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/pkgs/sdk/arm/libslqssdk.a…
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/liblite-fw.a…

— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libdcs.a…
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libslqsapi.a…
make[1]: Leaving directory /home/chet/base/LTE_modem/SLQS04.00.20.src/pkgs/dl' make[1]: Entering directory/home/chet/base/LTE_modem/SLQS04.00.20.src/pkgs/hd’
— Building hdrx
— Building hdtx
— Building hduser
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libslqscore.a…
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/pkgs/sdk/arm/libslqssdk.a…
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/liblite-fw.a…

— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libdcs.a…
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libslqsapi.a…
make[1]: Leaving directory /home/chet/base/LTE_modem/SLQS04.00.20.src/pkgs/hd' make[1]: Entering directory/home/chet/base/LTE_modem/SLQS04.00.20.src/pkgs/ic’
— Building icipc_api
— Building icipc_sdk
— Building icsmt_sdk
— Building icticktask_sdk
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libslqscore.a…
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/pkgs/sdk/arm/libslqssdk.a…
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/liblite-fw.a…

— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libdcs.a…
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/liblite-qmi.a…
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libslqsapi.a…
make[1]: Leaving directory /home/chet/base/LTE_modem/SLQS04.00.20.src/pkgs/ic' make[1]: Entering directory/home/chet/base/LTE_modem/SLQS04.00.20.src/pkgs/us’
— Building usscan_sdk
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libslqscore.a…
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/pkgs/sdk/arm/libslqssdk.a…
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/liblite-fw.a…

— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libdcs.a…
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libslqsapi.a…
make[1]: Leaving directory /home/chet/base/LTE_modem/SLQS04.00.20.src/pkgs/us' make[1]: Entering directory/home/chet/base/LTE_modem/SLQS04.00.20.src/pkgs/ci’
— Building cipackage
— Building ci_sdk
— Building ci_api
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libslqscore.a…
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/pkgs/sdk/arm/libslqssdk.a…
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/liblite-fw.a…

— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libdcs.a…
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/liblite-qmi.a…
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libslqsapi.a…
make[1]: Leaving directory /home/chet/base/LTE_modem/SLQS04.00.20.src/pkgs/ci' make[1]: Entering directory/home/chet/base/LTE_modem/SLQS04.00.20.src/pkgs/sm’
— Building sm
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libslqscore.a…
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/pkgs/sdk/arm/libslqssdk.a…
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/liblite-fw.a…

— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libdcs.a…
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libslqsapi.a…
make[1]: Leaving directory /home/chet/base/LTE_modem/SLQS04.00.20.src/pkgs/sm' make[1]: Entering directory/home/chet/base/LTE_modem/SLQS04.00.20.src/pkgs/im’
— Building imssdp_dload
— Building imssdp_done
— Building imssdp_donefinal
— Building imssdp_error
— Building imssdp_hello
— Building imssdp_image_preference
— Building imssdp_open_unframed
— Building imssdp_unframed_write
— Building imssdp
— Building imapi
— Building imcommon
— Building imssdp_dload_to_sdp
— Building imtask_sdk
— Building imutils
— Building imuser
— Building imtaskgobi
— Building imssdpwrapper
— Building firehose
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libslqscore.a…
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/pkgs/sdk/arm/libslqssdk.a…
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/liblite-fw.a…

— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libdcs.a…
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libslqsapi.a…
make[1]: Leaving directory /home/chet/base/LTE_modem/SLQS04.00.20.src/pkgs/im' make[1]: Entering directory/home/chet/base/LTE_modem/SLQS04.00.20.src/pkgs/qm’
— Building qmtask_sdk
— Building qmcommon
— Building qm_api
— Building qmqmisvc
— Building qmdcs
— Building qmdcscommon
— Building qmfms
— Building qmfmscommon
— Building qmparser
— Building qmwds
— Building qmmbim
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libslqscore.a…
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/pkgs/sdk/arm/libslqssdk.a…
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/liblite-fw.a…

— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libdcs.a…
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/liblite-qmi.a…
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libslqsapi.a…
make[1]: Leaving directory /home/chet/base/LTE_modem/SLQS04.00.20.src/pkgs/qm' make[1]: Entering directory/home/chet/base/LTE_modem/SLQS04.00.20.src/pkgs/ds’
— Building dstask_sdk
— Building dsshell
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libslqscore.a…
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/pkgs/sdk/arm/libslqssdk.a…
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/liblite-fw.a…

— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libdcs.a…
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libslqsapi.a…
make[1]: Leaving directory /home/chet/base/LTE_modem/SLQS04.00.20.src/pkgs/ds' make[1]: Entering directory/home/chet/base/LTE_modem/SLQS04.00.20.src/pkgs/su’
— Building su
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libslqscore.a…
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/pkgs/sdk/arm/libslqssdk.a…
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/liblite-fw.a…

— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libdcs.a…
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libslqsapi.a…
make[1]: Leaving directory /home/chet/base/LTE_modem/SLQS04.00.20.src/pkgs/su' make[1]: Entering directory/home/chet/base/LTE_modem/SLQS04.00.20.src/pkgs/sdk’
— Building sdk
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libslqscore.a…
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/pkgs/sdk/arm/libslqssdk.a…
— Archiving /home/chet/base/LTE_modem/SLQS04.00.20.src/build/lib/arm/libslqsapi.a…

— Building arm/slqssdk…

In file included from /opt/fsl-imx-x11/4.9.11-1.0.0/sysroots/cortexa9hf-neon-poky-linux-gnueabi/usr/include/features.h:392:0,
from /opt/fsl-imx-x11/4.9.11-1.0.0/sysroots/cortexa9hf-neon-poky-linux-gnueabi/usr/include/stdio.h:27,
from sdktest.c:12:
/opt/fsl-imx-x11/4.9.11-1.0.0/sysroots/cortexa9hf-neon-poky-linux-gnueabi/usr/include/gnu/stubs.h:7:29: fatal error: gnu/stubs-soft.h: No such file or directory

include <gnu/stubs-soft.h>

                         ^

compilation terminated.
make[1]: [arm/slqssdk] Error 1 (ignored)
make[1]: Leaving directory /home/chet/base/LTE_modem/SLQS04.00.20.src/pkgs/sdk' make[1]: Entering directory/home/chet/base/LTE_modem/SLQS04.00.20.src/pkgs/qa’
— Building src/qatestroutines
— Building test/src/qaGobiApiWdsTest
— Building test/src/qaGobiApiDmsTest
— Building test/src/qaGobiApiNasTest
test/src/qaGobiApiNasTest.c: In function ‘doprintsysInfoCommon’:
test/src/qaGobiApiNasTest.c:91:11: error: variable ‘fpTmp’ set but not used [-Werror=unused-but-set-variable]
FILE *fpTmp;
^~~~~
cc1: all warnings being treated as errors
make[1]: *** [/home/chet/base/LTE_modem/SLQS04.00.20.src/build/obj/arm/pkgs/qa/qaGobiApiNasTest.o] Error 1
make[1]: Leaving directory `/home/chet/base/LTE_modem/SLQS04.00.20.src/pkgs/qa’
make: *** [all] Error 1

Nobody replied to this post with anything, but I was able to work my way through the problems I was having and decided to share how I got it all working with the forum in case somebody else has my same issue. Here are the complete steps I used to build and SDK and Sample Apps. I have instructions for the normal and “lite” building of them below. Hope somebody finds this useful:

This assumes you were able to successfully able to load the GobiNet and GobiSerial modules to whatever target you are using. If anyone wants the instructions I used for the target I have, I’ll be glad to send them. For now, here is how I build and use the SDK on my target:

To build it, I unzipped the /home/chet/base/LTE_modem/sierra_wiress.zip into a folder.

Once you unzip sierra_wireless.zip, you will get a tarball file called SLQS04.00.20.src.tar.gz

I unzipped this into /home/chet/base/LTE_modem/orig_SLQ/installed_compiler_try

Now I install the cross compiler on my ubuntu machine like this:

sudo apt-get install gcc-arm-linux-gnueabihf
sudo apt-get install g+±arm-linux-gnueabihf

I had to edit the file /home/chet/base/LTE_modem/orig_SLQ/installed_compiler_try/pkgs/slqscompile.mak

Here is the diff of this file from the original:

diff pkgs/slqscompile.mak …/installed_compiler_try/pkgs/slqscompile.mak
18a19,21

ifeq ($(CPU),arm)
CFLAGS := -c -Wall -Wextra -fPIC
else
19a23
endif
135,138c139,142
< CROSS_COMPILE := $(HOME)/toolchain/arm/bin/arm-none-linux-gnueabi-
< INCLUDE += -I$(HOME)/toolchain/arm/arm-none-linux-gnueabi/libc/usr/include
< LDFLAGS += -L$(HOME)/toolchain/arm/lib/gcc/arm-none-linux-gnueabi/4.2.0/
< CFLAGS += -march=armv5te


CROSS_COMPILE := /usr/bin/arm-linux-gnueabihf-
INCLUDE += -I/usr/arm-linux-gnueabihf/include
LDFLAGS += -L/usr/arm-linux-gnueabihf/lib -L/usr/arm-linux-gnueabihf/libsf -Wl,-O1 -Wl,–hash-style=gnu -Wl,–as-needed
CFLAGS += -march=armv7-a -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a9 --sysroot=/usr/arm-linux-gnueabihf

As you can see, I had to modify the “arm” compiler information to what you see. The other thing I had to do was remove the

-Werror option on the CFLAGS for arm builds. This is because there are several places where we get build warnings when building

for arm and we don’t get those same warnings when building for x86 (building for desktop). These instances are in places where

fprintf is called with a file pointer and it complains that the file pointer is set but not used. This function must be stubbed

out with arm builds and not on x86 builds. The cases where it is used are not important for us and so making this a warning and

not an error with arm builds is fine.

To build for x86, you can do this:

make -f pkgs.mak clean TECHNOLOGY=ALL LITEQMI=0
make -f pkgs.mak complete TECHNOLOGY=ALL LITEQMI=0

To build for arm you can do this:

make -f pkgs.mak CPU=arm clean TECHNOLOGY=ALL LITEQMI=0
make -f pkgs.mak CPU=arm complete TECHNOLOGY=ALL LITEQMI=0

The above builds the normal version of the SDK. To build the lite mode version for x86, do this:

make -f pkgs.mak clean TECHNOLOGY=ALL LITEQMI=1
make -f pkgs.mak complete TECHNOLOGY=ALL LITEQMI=1

To build the lite mode version for arm, do this:

make -f pkgs.mak CPU=arm clean TECHNOLOGY=ALL LITEQMI=1
make -f pkgs.mak CPU=arm complete TECHNOLOGY=ALL LITEQMI=1

The build outputs you want from the above are located here. Both the LITEQMI=1 AND LITEQMI=0 builds

put their output here, so if using a “lite” sample app, make sure that the last thing you build

was with LITEQMI=1.

/home/chet/base/LTE_modem/orig_SLQ/installed_compiler_try/build/bin/hostx86_64/slqssdk
/home/chet/base/LTE_modem/orig_SLQ/installed_compiler_try/build/bin/arm/slqssdk

I then build the Connection_Manager (if using the LITEQMI=0 build from above) sample app:

cd /home/chet/base/LTE_modem/orig_SLQ/installed_compiler_try/SampleApps/Connection_Manager
make

or

cd /home/chet/base/LTE_modem/orig_SLQ/installed_compiler_try/SampleApps/Connection_Manager
make CPU=arm

The build output will be located here:

/home/chet/base/LTE_modem/orig_SLQ/installed_compiler_try/SampleApps/Connection_Manager/bin/connectionmgrhostx86_64
/home/chet/base/LTE_modem/orig_SLQ/installed_compiler_try/SampleApps/Connection_Manager/bin/connectionmgrarm

I have also built the lite version of connection manager (needs the LITEQMI=1 build from above to go with it):

cd /home/chet/base/LTE_modem/orig_SLQ/installed_compiler_try/SampleApps/lite-connection-manager
make

or

cd /home/chet/base/LTE_modem/orig_SLQ/installed_compiler_try/SampleApps/lite-connection-manager
make CPU=arm

The build output will be located here:

/home/chet/base/LTE_modem/orig_SLQ/installed_compiler_try/SampleApps/lite-connection-manager/bin/lite-connectmgrhostx86_64
/home/chet/base/LTE_modem/orig_SLQ/installed_compiler_try/SampleApps/lite-connection-manager/bin/lite-connectmgrarm

To run the sample apps and actually do a LTE connection and send data from our target to a machine connected

through our LTE access point, you follow these procedures:

cd /home/chet/base/LTE_modem/orig_SLQ/installed_compiler_try/SampleApps/lite-connection-manager/bin/
scp lite-connectmgrarm root@11.1.17.20:/home/root/SampleApps/lite-connection-manager/bin/.

The following is done right after the LITEQMI=1 build

cd /home/chet/base/LTE_modem/orig_SLQ/installed_compiler_try/build/bin/arm
scp slqssdk root@11.1.17.20:/home/root/build/bin/arm_lite/.

I also copy over the full versions of both of the sample app and the SDK executable

cd /home/chet/base/LTE_modem/orig_SLQ/installed_compiler_try/SampleApps/Connection_Manager/bin
scp connectionmgrarm root@11.1.17.20:/home/root/SampleApps/Connection_Manager/bin/.

The following is done right after the LITEQMI=0 build

cd /home/chet/base/LTE_modem/orig_SLQ/installed_compiler_try/build/bin/arm
scp slqssdk root@11.1.17.20:/home/root/build/bin/arm/.

cd /home/chet/base/LTE_modem/orig_SLQ/installed_compiler_try/SampleApps/Connection_Manager/bin
scp connectionmgrarm root@11.1.17.20:/home/root/SampleApps/Connection_Manager/bin

Now we have the normal and lite mode of the SDK and connection manager apps both on the target

The following is to be done on the target from a hard reset and then login as root:

eth1 will turn out to be the LTE modem interface once we start it. But this has to

be done before we start it or you won’t be able to use the LTE interface at all.

The eth0 stuff you see below is for communicating with the target from a different machine

so that we are sure any of the ping packets have to go through LTE to reach the endpoint.

For the test we will do, this endpoint will be 11.1.4.201

ifconfig eth0 11.1.17.20
ifconfig eth1 up
ifconfig eth1 11.1.14.24
ip route add 11.1.4.201 dev eth1
ip route add 169.254.74.143 dev eth0

/home/root/build/bin/arm_lite/slqssdk &

We can check if it’s running like this:

ps -eaf|grep slqssdk
root 563 539 1 19:15 ? 00:00:00 /home/root/build/bin/arm_lite/slqssdk
root 574 539 0 19:15 ttymxc0 00:00:00 grep slqssdk

now run the lite-connection-manager

cd /home/root/SampleApps/lite-connection-manager/bin
./lite-connectmgrarm

You will see these options:

Please select one of the following options or press to exit:

  1. Start UMTS Data Session
  2. Start LTE Data Session
  3. Start CDMA Data Session
  4. Start RUIM data session
  5. Stop the currently active Data Session
  6. Display all the profiles stored on the device
  7. Display the settings for a particular profile stored on the device
  8. Create a Profile on the device
  9. Modify the settings of an existing profile stored on the device
  10. Delete a profile stored on the device
    Option : 7

Please provide a profile id(1-16), or press to exit: 2
ID PDPType IPAddress PrimaryDNS SecondaryDNS Auth ProfileName APNName UserName
2 0 11.1.14.24 0.0.0.0 0.0.0.0 0 chet internet chet

I printed out the above in case you need to know how to configure a profile which works with our M4C8 LTE access point

Now I start the data session

Option : 2

ID PDPType IPAddress PrimaryDNS SecondaryDNS Auth ProfileName APNName UserName
1 0 0.0.0.0 0.0.0.0 0.0.0.0 0 internet
2 0 11.1.14.24 0.0.0.0 0.0.0.0 0 chet internet chet

Please provide a profile id(1-16), or press to exit: 2

  1. IPV4 (default)
  2. IPV6
  3. IPV4V6
    Please select IP family preference for the call, or press to exit: 1
    LTE/CDMA data session started successfully for Profile ID: 2

I then use another terminal to ping a machine which can only be reached through the LTE access point:

ping 11.1.4.201