Use high-version gcc to compile a low-version Compiler

Source: Internet
Author: User
Use gcc to compile a lower-version compiler-general Linux technology-Linux programming and kernel information. For more information, see the following. Use high-version gcc to compile a low-version Compiler

Author: ferlyworld Zhou bohe
Email: zhoubohe@126.com
Source: http://blog.sina.com.cn/ferlyworld

Libstdc ++ is required to run the following command to run node. G. 1. 3 ngv6 on SUSE11 and FC9. so.3.0.2, This is the dynamic library file of the gcc-3.0.2, so it is necessary to use the High Version gcc to compile the lower version of gcc, check the information on the Internet, many people think that the need for reverse compilation, and use 4.2.x to compile 3.4.x, 3.4.x to compile 3.2.x, and 3.2.x to compile 3.0.x. I tried it and it was not successful.

So made up the determination to solve SUSE11 with gcc-4.3.1 to directly compile the gcc-3.0.2 of the problem, after unremitting efforts, finally achieved success, and finally the solution to record down.

Two major problems occurred during compilation.
One is gcc-3.0.2/gcc/cp/decl. c contains the error: lvalue required as left operand of assignment, because the macro defined in this file cannot be used as the left value in the higher version compiler.
QUOTE:
Related Article

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.