AnsweredAssumed Answered

Cross_compile libxml2.9.1 error

Question asked by J.Lumia on Jun 4, 2015
Latest reply on Jun 8, 2015 by timh

my system is PC(WindowsOS)can  in/output data stream from/to ad9361+zedboard via network cable . Now i cross compile libiio,which needs cross compiling libxml2-2.9.1 first. When i cross compile libxml2-2.9.1,there error stop:

 

# ./configure --prefix=/opt/libxml2 --host=arm-linux-gnueabihf CC=arm-linux-gnueabihf-gcc-4.9.1

#make

.....

nanohttp.c:In function 'xmlNanoHTTPConnectHost':

nanohttp.c:1178:37:error:invalid 'asm' :invalid operand for code 'w'

     sockin.sin_port = (unsigned short)htons ((unsigned short)port);

                                           ^

...

make[2]:...

Outcomes