Can you give me gcc-2.91.66 please?
Jonathan Wakely
jwakely.gcc@gmail.com
Tue Sep 25 09:43:00 GMT 2018
On Tue, 25 Sep 2018 at 10:38, nosay <chenwen1228@163.com> wrote:
>
> Hi, Jeff Law.
>
> In my environment, neither egcs-1.1.2 nor gcc-2.95.2 can be compiled successfully . There are some errors in the code, for example:
> decl.c: In function 'start_struct':
> decl.c:4448:1: error: argument 'code' doesn't match prototype
> start_struct (code, name)
> ^
> In file included from decl.c:187:0:
> ch-tree.h:736:13: error: prototype declaration
> extern tree start_struct PROTO((enum tree_code, tree));
> ^
>
> Can you teach me how to resolve this problem?
It's going to be very difficult to compile such old code on a modern
system. You will need a lot of patience and persistence, and it is
unlikely that people on this mailing list are going to want to give
you the answer to every little problem along the way.
You will probably need to proceed in several stages, building an old
GCC with your existing compiler, then using that to build an older
one, and using that to build an older one, until eventually you can
compile egcs-1.1.2
You could try installing an old version of Debian or Ubuntu in a VM or
a container, and compile egcs inside that VM/container. That might be
a shortcut to getting an old environment (with old GCC and glibc) that
can be used to build even older versions.
More information about the Gcc-help
mailing list