help! I missed up my GCC/GNAT/LINUX setup. Can't compile any more

help! I missed up my GCC/GNAT/LINUX setup. Can't compile any more

Post by Nasser Abba » Thu, 23 Nov 1995 04:00:00



(Also posted in gnu.gcc,help)

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...

 
 
 

help! I missed up my GCC/GNAT/LINUX setup. Can't compile any more

Post by Nasser Abba » Sat, 25 Nov 1995 04:00:00


I've fixed the problem now.

I've installed everyting from scratch.
Naser