OpenWrt Compile error handling record

Source: Internet
Author: User

1. Code copied from Windows to compile error handling, refer to: http://www.360doc.com/content/13/1016/21/3884271_321966616.shtml

2. Error compiling Lua-socket Package

2.1 Error messages

Undefined reference to ' __stack_chk_fail '

2.2 Try the workaround:

  2.2.1 "-fno-stack-protector" into target_cflags in rule.mk file according to 2.3.1 solution, still appears the error

Reason for this scenario error: Because of hierarchical relationships, the "fstack_protector" option may be included in other makefile

  2.2.2 Final Solution: Copy the compiler output from the terminal, remove the "fstack_protector" and replace the package's compilation options directly, solve the problem

2.3 References

2.3.1 Http://stackoverflow.com/questions/4492799/undefined-reference-to-stack-chk-fail

3. When compiling Lua-bencode package: Bsh:hg:command not found error, Apt-get install Mercurial Resolve

4.uclibc++ Library Application Patch Error

4.1 Error message:  

Applying./patches/006-eabi_fix.patch using plaintext:patching file include/typeinfopatching file include/ Unwind-cxx.hhunk #1 FAILED at 173 (different line endings). Hunk #2 FAILED at 181 (different line endings). 2 out of 2 hunks FAILED--saving rejects to file Include/unwind-cxx.h.rejp Atch failed!  Please fix./patches/006-eabi_fix.patch!

  4.2 Reason: Unwind-cxx.hwen file created under Windows, Line end flag and Liunx not always

  4.3 Workaround: Use VI to remove ^M mode:%s/^m$/g (ctrl+v+m input ^m)

4.5 References:

4.5.1.http://openwares.net/linux/diff_and_patch.html Locating errors

4.5.2 http://www.2cto.com/os/201304/205793.html VI How to remove ^m

4.5.3 http://www.cnblogs.com/elwinch/articles/2180521.html workaround for ^m in Linux with vim open file

4.5.4 http://www.cnblogs.com/jianyungsun/archive/2011/03/20/1989276.html Vi/vim Find Replacement use method

4.5.5 http://www.cnblogs.com/emanlee/archive/2011/11/10/2243930.html Vi/vim Use method explained

4.5.6 http://www.cnblogs.com/pengdonglin137/p/3341159.html Linux patch format and description

OpenWrt Compile error handling record

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.