Hi All,
I am trying to compile wl18xx build-utilities with arm-poky-linux-gnueabi- from yocto-1.7 i am facing the below problems, can any one knows how to solve it.
when i am using ./build_wl18xx.sh update R8.6_SP1 i am facing the below errors.
****** *******
making all in crypto...
make[1]: Entering directory `/home/lavanya/Desktop/wifi_8/build-utilites/src/openssl/crypto'
/opt/poky/1.7/sysroots/x86_64-pokysdk-linux/usr/bin/perl ../util/mkbuildinf.pl "arm-poky-linux-gnueabi-gcc -I. -I.. -I../include -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -O3 -fomit-frame-pointer -Wall" "linux-generic32" >buildinf.h
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "en_IN:en",
LC_ALL = (unset),
LANG = "en_IN"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
arm-poky-linux-gnueabi-gcc -I. -I.. -I../include -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -O3 -fomit-frame-pointer -Wall -c -o cryptlib.o cryptlib.c
In file included from /opt/poky/1.7/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/include/features.h:389:0,
from /opt/poky/1.7/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/include/stdlib.h:24,
from cryptlib.h:62,
from cryptlib.c:117:
/opt/poky/1.7/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/include/gnu/stubs.h:10:29: fatal error: gnu/stubs-soft.h: No such file or directory
# include <gnu/stubs-soft.h>
^
compilation terminated.
make[1]: *** [cryptlib.o] Error 1
make[1]: Leaving directory `/home/lavanya/Desktop/wifi_8/build-utilites/src/openssl/crypto'
make: *** [build_crypto] Error 1
****** ERROR 0 *******
If i given like #define __ARM_PCS_VFP then i am getting errors like below
/opt/poky/1.7/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.9.1/ld: error: openssl uses VFP register arguments, ../libcrypto.a(dso_dlfcn.o) does not
/opt/poky/1.7/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.9.1/ld: failed to merge target specific data of file ../libcrypto.a(dso_dlfcn.o)
/opt/poky/1.7/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.9.1/ld: error: openssl uses VFP register arguments, ../libcrypto.a(a_set.o) does not
/opt/poky/1.7/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.9.1/ld: failed to merge target specific data of file ../libcrypto.a(a_set.o)
/opt/poky/1.7/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.9.1/ld: error: openssl uses VFP register arguments, ../libcrypto.a(bio_asn1.o) does not
/opt/poky/1.7/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.9.1/ld: failed to merge target specific data of file ../libcrypto.a(bio_asn1.o)
/opt/poky/1.7/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.9.1/ld: error: openssl uses VFP register arguments, ../libcrypto.a(bn_nist.o) does not
/opt/poky/1.7/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.9.1/ld: failed to merge target specific data of file ../libcrypto.a(bn_nist.o)
/opt/poky/1.7/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.9.1/ld: error: openssl uses VFP register arguments, ../libcrypto.a(ecp_smpl.o) does not
/opt/poky/1.7/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.9.1/ld: failed to merge target specific data of file ../libcrypto.a(ecp_smpl.o)
collect2: error: ld returned 1 exit status
make[2]: *** [link_app.] Error 1
make[2]: Leaving directory `/home/lavanya/Desktop/wifi_8/build-utilites/src/openssl/apps'
make[1]: *** [openssl] Error 2
make[1]: Leaving directory `/home/lavanya/Desktop/wifi_8/build-utilites/src/openssl/apps'
make: *** [build_apps] Error 1
****** ERROR 0 *******
Thanks,
Lavanya
Hi Lavanya,
Check you set the environment or not?
=> source setup-environment build
And one more thing, you need to do.
1 export SDKTARGETSYSROOT=/opt/poky/1.7.1/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi
2 export PATH=/opt/poky/1.7.1/sysroots/x86_64-pokysdk-linux/usr/bin:/opt/poky/1.7.1/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi:$PATH
3 export PKG_CONFIG_SYSROOT_DIR=$SDKTARGETSYSROOT
4 export PKG_CONFIG_PATH=$SDKTARGETSYSROOT/usr/lib/pkgconfig
5 export CONFIG_SITE=/opt/poky/1.7.1/site-config-cortexa9hf-vfpech-neon-poky-linux-gnueabi
6 export OECORE_NATIVE_SYSROOT="/opt/poky/1.7.1/sysroots/x86_64-pokysdk-linux"
7 export OECORE_TARGET_SYSROOT="$SDKTARGETSYSROOT"
8 export OECORE_ACLOCAL_OPTS="-I /opt/poky/1.7.1/sysroots/x86_64-pokysdk-linux/usr/share/aclocal"
9 export PYTHONHOME=/opt/poky/1.7.1/sysroots/x86_64-pokysdk-linux/usr
10 export CC="arm-poky-linux-gnueabi-gcc -march=armv7-a -mthumb-interwork -mfloat-abi=hard -mfpu=neon -mtune=cortex-a9 --sysroot=$SDKTARGETSYSROOT"
11 export CXX="arm-poky-linux-gnueabi-g++ -march=armv7-a -mthumb-interwork -mfloat-abi=hard -mfpu=neon -mtune=cortex-a9 --sysroot=$SDKTARGETSYSROOT"
12 export CPP="arm-poky-linux-gnueabi-gcc -E -march=armv7-a -mthumb-interwork -mfloat-abi=hard -mfpu=neon -mtune=cortex-a9 --sysroot=$SDKTARGETSYSROOT"
13 export AS="arm-poky-linux-gnueabi-as "
14 export LD="arm-poky-linux-gnueabi-ld --sysroot=$SDKTARGETSYSROOT"
15 export GDB=arm-poky-linux-gnueabi-gdb
16 export STRIP=arm-poky-linux-gnueabi-strip
17 export RANLIB=arm-poky-linux-gnueabi-ranlib
18 export OBJCOPY=arm-poky-linux-gnueabi-objcopy
19 export OBJDUMP=arm-poky-linux-gnueabi-objdump
20 export AR=arm-poky-linux-gnueabi-ar
21 export NM=arm-poky-linux-gnueabi-nm
22 export M4=m4
23 export TARGET_PREFIX=arm-poky-linux-gnueabi-
24 export CONFIGURE_FLAGS="--target=arm-poky-linux-gnueabi --host=arm-poky-linux-gnueabi --build=x86_64-linux --with-libtool-sysroot=$SDKTARGETSYSROOT"
25 export CFLAGS=" -O2 -pipe -g -feliminate-unused-debug-types"
26 export CXXFLAGS=" -O2 -pipe -g -feliminate-unused-debug-types"
27 export LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed"
28 export CPPFLAGS=""
29 export KCFLAGS="--sysroot=$SDKTARGETSYSROOT"
30 export OECORE_DISTRO_VERSION="1.7.1"
31 export OECORE_SDK_VERSION="1.7.1"
32 export ARCH=arm
33 export CROSS_COMPILE=arm-poky-linux-gnueabi-
Regards,
Aravinth
Hi aravinthkumar jayaprakasam,
Thank you, But it's not help full for me, i am still facing the same issues.
Thanks & Regards,
Lavanya
Hello Lavanya,
I haven’t tired the WL188xx but since the driver is provided by the manufacturer I would recommend looking on the software documentation or in the manufacturer’s forums.
There is some information in this community, but it may not help in this specific scenario as it’s not very up-to-date.
https://community.nxp.com/thread/358671
Regards,