public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Can you give me gcc-2.91.66 please?
@ 2018-09-24 19:13 nosay
  2018-09-24 19:20 ` Florian Weimer
  2018-09-24 19:41 ` Jeff Law
  0 siblings, 2 replies; 8+ messages in thread
From: nosay @ 2018-09-24 19:13 UTC (permalink / raw)
  To: gcc-help

I want to compile linux-2.4.0 kernel source. The README writes:
COMPILING the kernel:
 - Make sure you have gcc-2.91.66 (egcs-1.1.2) available.  gcc 2.95.2 may
   also work but is not as safe, and *gcc 2.7.2.3 is no longer supported*.
   Also remember to upgrade your binutils package (for as/ld/nm and company)
   if necessary. For more information, refer to ./Documentation/Changes.

But I can’t find gcc-2.91.66 in https://gcc.gnu.org/releases.html. And it says “gcc-2.95.2 is no longer maintained” in https://gcc.gnu.org/gcc-2.95/. So can you tell me how to get gcc-2.91.66 or gcc-2.95.2? thank you very much!



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Can you give me gcc-2.91.66 please?
  2018-09-24 19:13 Can you give me gcc-2.91.66 please? nosay
@ 2018-09-24 19:20 ` Florian Weimer
  2018-09-24 19:41 ` Jeff Law
  1 sibling, 0 replies; 8+ messages in thread
From: Florian Weimer @ 2018-09-24 19:20 UTC (permalink / raw)
  To: nosay; +Cc: gcc-help

* nosay:

> I want to compile linux-2.4.0 kernel source. The README writes:
> COMPILING the kernel:
>  - Make sure you have gcc-2.91.66 (egcs-1.1.2) available.  gcc 2.95.2 may
>    also work but is not as safe, and *gcc 2.7.2.3 is no longer supported*.
>    Also remember to upgrade your binutils package (for as/ld/nm and company)
>    if necessary. For more information, refer to ./Documentation/Changes.
>
> But I can’t find gcc-2.91.66 in https://gcc.gnu.org/releases.html. And
> it says “gcc-2.95.2 is no longer maintained” in
> https://gcc.gnu.org/gcc-2.95/. So can you tell me how to get
> gcc-2.91.66 or gcc-2.95.2? thank you very much!

I think you need to grab the egcs-1.1.2.tar.gz from somewhere.  This was
during the egcs/GCC split, and the GNU project didn't make those egcs
releases, so you won't find them on the GNU ftp site.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Can you give me gcc-2.91.66 please?
  2018-09-24 19:13 Can you give me gcc-2.91.66 please? nosay
  2018-09-24 19:20 ` Florian Weimer
@ 2018-09-24 19:41 ` Jeff Law
       [not found]   ` <0B6430D1-A65C-4724-8942-EC977737055E@163.com>
  1 sibling, 1 reply; 8+ messages in thread
From: Jeff Law @ 2018-09-24 19:41 UTC (permalink / raw)
  To: nosay, gcc-help

On 9/24/18 1:13 PM, nosay wrote:
> I want to compile linux-2.4.0 kernel source. The README writes:
> COMPILING the kernel:
>  - Make sure you have gcc-2.91.66 (egcs-1.1.2) available.  gcc 2.95.2 may
>    also work but is not as safe, and *gcc 2.7.2.3 is no longer supported*.
>    Also remember to upgrade your binutils package (for as/ld/nm and company)
>    if necessary. For more information, refer to ./Documentation/Changes.
> 
> But I can’t find gcc-2.91.66 in https://gcc.gnu.org/releases.html. And it says “gcc-2.95.2 is no longer maintained” in https://gcc.gnu.org/gcc-2.95/. So can you tell me how to get gcc-2.91.66 or gcc-2.95.2? thank you very much!
> 
> 
> 
It's been a long time.  I would see if any of the egcs releases
correspond to what you need.  They're available via anonymous ftp from
gcc.gnu.org/pub/gcc/old-releases/egcs

gcc-2.95 would be found in

gcc.gnu.org/pub/gcc/gcc-2


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Can you give me gcc-2.91.66 please?
       [not found]   ` <0B6430D1-A65C-4724-8942-EC977737055E@163.com>
@ 2018-09-25  9:38     ` nosay
  2018-09-25  9:43       ` Jonathan Wakely
  0 siblings, 1 reply; 8+ messages in thread
From: nosay @ 2018-09-25  9:38 UTC (permalink / raw)
  To: Jeff Law; +Cc: gcc-help

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? The blow is my environment information:
[test@ubuntu:gcc-2.95.2]$ uname -a
Linux ubuntu 4.4.0-78-generic #99~14.04.2-Ubuntu SMP Thu Apr 27 18:51:25 UTC 2017 i686 i686 i686 GNU/Linux
[test@ubuntu:gcc-2.95.2]$ gcc -v
gcc version 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04.3)



> On Sep 25, 2018, at 3:54 AM, nosay <chenwen1228@163.com> wrote:
> 
> Thank you very much!
> 
>> On Sep 25, 2018, at 3:41 AM, Jeff Law <law@redhat.com> wrote:
>> 
>> On 9/24/18 1:13 PM, nosay wrote:
>>> I want to compile linux-2.4.0 kernel source. The README writes:
>>> COMPILING the kernel:
>>> - Make sure you have gcc-2.91.66 (egcs-1.1.2) available.  gcc 2.95.2 may
>>>  also work but is not as safe, and *gcc 2.7.2.3 is no longer supported*.
>>>  Also remember to upgrade your binutils package (for as/ld/nm and company)
>>>  if necessary. For more information, refer to ./Documentation/Changes.
>>> 
>>> But I can’t find gcc-2.91.66 in https://gcc.gnu.org/releases.html. And it says “gcc-2.95.2 is no longer maintained” in https://gcc.gnu.org/gcc-2.95/. So can you tell me how to get gcc-2.91.66 or gcc-2.95.2? thank you very much!
>>> 
>>> 
>>> 
>> It's been a long time.  I would see if any of the egcs releases
>> correspond to what you need.  They're available via anonymous ftp from
>> gcc.gnu.org/pub/gcc/old-releases/egcs
>> 
>> gcc-2.95 would be found in
>> 
>> gcc.gnu.org/pub/gcc/gcc-2
>> 
> 

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Can you give me gcc-2.91.66 please?
  2018-09-25  9:38     ` nosay
@ 2018-09-25  9:43       ` Jonathan Wakely
  2018-09-25 14:21         ` Jeff Law
  0 siblings, 1 reply; 8+ messages in thread
From: Jonathan Wakely @ 2018-09-25  9:43 UTC (permalink / raw)
  To: chenwen1228; +Cc: Jeff Law, gcc-help

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.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Can you give me gcc-2.91.66 please?
  2018-09-25  9:43       ` Jonathan Wakely
@ 2018-09-25 14:21         ` Jeff Law
  2018-09-27  7:53           ` nosay
  0 siblings, 1 reply; 8+ messages in thread
From: Jeff Law @ 2018-09-25 14:21 UTC (permalink / raw)
  To: Jonathan Wakely, chenwen1228; +Cc: gcc-help

On 9/25/18 3:42 AM, Jonathan Wakely wrote:
> 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.
Right.  Those compilers are roughly 20 years old at this point.  It is
highly likely they will need various hacks to get them to build with
more modern tools.  You may need to change the default C dialect as well
as I think GCC defaults to C99 now rather than C89.

> 
> 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.
I'd think this is the better solution.  I'd expect something like Red
Hat Linux 6 or Red Hat Linux 7 in a VM/container would be the way to go
(do not confuse Red Hat Linux 6/7 with Red Hat Enterprise Linux 6/7).

Jeff



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Can you give me gcc-2.91.66 please?
  2018-09-25 14:21         ` Jeff Law
@ 2018-09-27  7:53           ` nosay
  2018-09-27 13:38             ` Jeffrey Walton
  0 siblings, 1 reply; 8+ messages in thread
From: nosay @ 2018-09-27  7:53 UTC (permalink / raw)
  To: Jeff Law; +Cc: gcc-help

Hi, Jeff Law.
What are the difference between 'Red Hat Linux 6/7’ and 'Red Hat Enterprise Linux 6/7’? Can you give me an URL to download 'Red Hat Linux 7.3’? Thank you.


> On Sep 25, 2018, at 10:21 PM, Jeff Law <law@redhat.com> wrote:
> 
> Red Hat Linux 6/7

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Can you give me gcc-2.91.66 please?
  2018-09-27  7:53           ` nosay
@ 2018-09-27 13:38             ` Jeffrey Walton
  0 siblings, 0 replies; 8+ messages in thread
From: Jeffrey Walton @ 2018-09-27 13:38 UTC (permalink / raw)
  To: nosay; +Cc: gcc-help

On Wed, Sep 26, 2018 at 11:29 PM, nosay <chenwen1228@163.com> wrote:
> Hi, Jeff Law.
> What are the difference between 'Red Hat Linux 6/7’ and 'Red Hat Enterprise Linux 6/7’? Can you give me an URL to download 'Red Hat Linux 7.3’? Thank you.

You can also try Fedora 1. It comes with GCC 2.9, but I don't recall
the minor version.
http://archives.fedoraproject.org/pub/archive/fedora/

You can load F1 in a virtual box VM. The NIC does not work so you
won't have a network. But the USB and DVD work so you can transfer
other programs you may need using USB or an ISO. I found we needed to
provide Git and a Make tarballs using USB.

Jeff

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2018-09-27  5:25 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-24 19:13 Can you give me gcc-2.91.66 please? nosay
2018-09-24 19:20 ` Florian Weimer
2018-09-24 19:41 ` Jeff Law
     [not found]   ` <0B6430D1-A65C-4724-8942-EC977737055E@163.com>
2018-09-25  9:38     ` nosay
2018-09-25  9:43       ` Jonathan Wakely
2018-09-25 14:21         ` Jeff Law
2018-09-27  7:53           ` nosay
2018-09-27 13:38             ` Jeffrey Walton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).