🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #42543

Help! Get GCC-2.7.0, now what to do? Can't find cpp

#42543
From: Nasser Abbasi
Date: Wed, 22 Nov 1995 00:00
72 lines
2422 bytes
hello to the Gnat/Gcc experts out there.
Any help on this will be greatly apreciated.

1.  I need to run GNAT on Linux.

2.  I Installed Linux 1.2.8 ok (all the Slackware stuff).

3.  I tried compiling C and C++ sample files. all OK

4.  Now I get the GNAT-2.06-linux+aout+pthred.tar.gz 
    (the GNAT Ada compiler).
    I ftp'ed the above file to my Linux machine, I put it in  top 
    directory "/" .

5.  I do  gunzip it, then un-tar it.

6.  I decided may be I unpacked it from the wrong directory. 
    So I delete the files created. changed directory to /usr and 
    did step 5 again.

7.  I then read that GNAT needs GCC 2.7.0 . So I ftp'ed 
    GCC-2.7.0.tar.gz from ftp.cdrom.com down to my PC.
    I put the file in /usr .

8.  I do gunzip and un-tar on GCC-2.7.0.tar.gz


9.  Now I try to C or C++ sample files, I get this error:
    gcc: installation problem, cannot exec cpp: No such file or 
directory.

10. I search  for cpp* file on my system. I find one sitting in 
    /usr/lib/gcc-lib/i486-linux/2.6.3/cpp*
  
    SO I make PATH point there. 

    I repeat step 9.
    now I get this error:

    ld: cannot open -lgcc: No such file or directory.


11.Obviously I am confused for sure.

   DO I need to do anything after step 8 ?
   DO I need to manually modify path in /etc/profile? 

   Do I need to actually build the GCC ? (i.e. run make to build gcc ???)

   Is there a different binary distribution for gcc-2.7.0 That 
   I need to get?

   I have tried building GCC, so I did this:

   11.a  run configure:
         >configure  i486-linux
   11.b  run make:
         >make LANGAUGES=c
        ... here it started compiling few C files then after few minutes
            got this error:
      ld: cannot open -lgcc: No such file or directory.

   

   From which directory one is supposed to unzip/un-tar stuff from?
   should it be from  "/"  or from /usr  ??

thank you in advance for any help.
nasser
a-gnat-linux-gcc-newbie...
   
    
Technical Details
Message-ID: <48vvv9$6e3@qualcomm.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,f12d9bf3e45b948d,start
X-Google-Attributes: gid11318c,public
From: nabbasi@qualcomm.com (Nasser Abbasi)
Subject: Help!  Get GCC-2.7.0, now what to do? Can't find cpp
Date: 1995/11/22
Message-ID: <48vvv9$6e3@qualcomm.com>
X-Deja-AN: 119950313
organization: QUALCOMM
mime-version: 1.0
newsgroups: gnu.gcc.help