Error:invalid ' ASM ': invalid operand for code ' W '

Source: Internet
Author: User

Results from Google

Http://stackoverflow.com/questions/15623609/including-curl-into-the-android-aosp

......................................................................................................................... .........................................................................

You ' re probably getting this error because of some bad includes. One of the commonest reasons this is Happenning was because you be compiling with cURL your host includes.

Check that your makefiles does not contain hard-coded references to /usr/include or any other include PA Ths. This was apparently a common error when people was trying to cross-compile on x86 for ARM. Your compiler is confused because he's trying to parse assembly network instructions such as rorw the ("Rotate word righ T ") x86 instruction as the ror (" Rotate Right ") ARM instruction.

Some C functions such htons as, which provides network byte order translation (ensuring that there is no endianness issues For example), is implemented as preprocessor macros that contain inline assembly. and an ARM compiler cannot understand x86 instructions, which is what you ' re getting this error. These kind of network translation functions is heavily used cURL in, so the odds is good that this might be your proble M.

Here's a http://thesoftwarerogue.blogspot.fr/2010/05/porting-of-libcurl-to-android-os-using.html that should help yo U Port CURL on Android. The guy does isn't compile with cURL Android but exports CURL ' s functions through JNI .

......................................................................................................................... .............................................................................

Error:invalid ' ASM ': invalid operand for code ' W '

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.