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.