IMX28 libnl compilation error

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

IMX28 libnl compilation error

701 Views
ganeshh
Contributor III

Hi,

I am trying to install libnl by compiling it manually but when the Make runs am getting this error. How can i solve this?

utils.c: In function ‘dump_one’:

utils.c:719:12: warning: ignoring return value of ‘vasprintf’, declared with attribute warn_unused_result [-Wunused-result]

utils.c: In function ‘get_psched_settings’:

utils.c:319:10: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]

libtool: compile:  gcc -DHAVE_CONFIG_H -I. -Wall -I../include -I../include -D_GNU_SOURCE -DSYSCONFDIR=\"/usr/arm-linux-gnueabi/etc/libnl\" -g -O2 -MT utils.lo -MD -MP -MF .deps/utils.Tpo -c utils.c -o utils.o >/dev/null 2>&1

/bin/sh ../libtool --tag=CC   --mode=link gcc  -g -O2 -version-info 2:0:0  -o libnl.la -rpath /usr/arm-linux-gnueabi/lib addr.lo attr.lo cache.lo cache_mngr.lo cache_mngt.lo data.lo doc.lo error.lo handlers.lo msg.lo nl.lo object.lo socket.lo utils.lo  -lm

libtool: link: rm -fr  .libs/libnl.a .libs/libnl.la .libs/libnl.lai .libs/libnl.so .libs/libnl.so.2 .libs/libnl.so.2.0.0

libtool: link: gcc -shared  .libs/addr.o .libs/attr.o .libs/cache.o .libs/cache_mngr.o .libs/cache_mngt.o .libs/data.o .libs/doc.o .libs/error.o .libs/handlers.o .libs/msg.o .libs/nl.o .libs/object.o .libs/socket.o .libs/utils.o   -lm    -Wl,-soname -Wl,libnl.so.2 -o .libs/libnl.so.2.0.0

/usr/bin/ld: unknown architecture of input file `.libs/doc.o' is incompatible with i386 output

collect2: error: ld returned 1 exit status

make[2]: *** [libnl.la] Error 1

make[2]: Leaving directory `/home/ganesh/IMX/ltib/rpm/BUILD/libnl-2.0/lib'

make[1]: *** [all] Error 2

make[1]: Leaving directory `/home/ganesh/IMX/ltib/rpm/BUILD/libnl-2.0/lib'

make: *** [all-recursive] Error 1

Labels (2)
Tags (2)
0 Kudos
1 Reply

504 Views
igorpadykov
NXP Employee
NXP Employee

Hi Ganesh

for compilation you can try latest yocto.

Actually yocto works well with i.MX28 EVK (though - yes it

is not officially supported by Freescale for i.MX28) , below you will

find i.MX28EVK images

Public images - fsl-community-bsp/master/

Also I would suggest to post this issue on

meta-fsl-arm mailing list, so that experts familiar with

Yocto/libnl/ hostapd integration could try to assist you.

https://lists.yoctoproject.org/listinfo/meta-freescale

Best regards

chip

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 Kudos