GCC and g77 upgrade

GCC and g77 upgrade

Post by Philippe Peeter » Tue, 16 Apr 1996 04:00:00



Hi Linux fans,

Sorry if this is a FAQ, but I didn't found the answer in the various GCC
HOW-TO.
I'm currently running Linux 1.3.59 from a Slackware 3.0 ELF
distribution. It comes with gcc 2.7.0 and I have installed g77 0.5.16. I
would like to know how to install gcc 2.7.2 without removing 2.7.0. In
other word I would like to be able to launch the "old" gcc with a
command like gcc270 while gcc alone would start 2.7.2. Compilers are
located in the subdirectories named according to the version number like
/usr/lib/gcc-lib/i486-linux/2.7.0/ so I guess it should quite
straightforward to install the new gcc and rename the old gcc driver to
gcc270. I'm quite new to gcc and Linux installation and I don't want to
mess up with the current installation.
What about libc, libm... Do I have to upgrade them too? I have currently
/lib/libc.so.5.0.9
Probably the most relevant question would be if 2.7.2 is significantly
better than 2.7.0.
Since I am using Fortran, I have the same question concerning g77 from
0.5.16 to 0.5.18. I have some problems with 0.5.16 and large local
arrays and would like to check if 0.5.18 is better in that respect. The
0.5.18 g77 seems to require 2.7.2. Is this true?

Thanks

--
Philippe Peeters
--------------------------------------------------------------------------
Belgian Institute for Space Aeronomy     | Tel : +32-2-373.03.81
Institut d'Aeronomie Spatiale de Belgique| Fax : +32-2-374.84.23
3 Avenue Circulaire                      | Email :

B-1180 Brussels, Belgium                 |

 
 
 

GCC and g77 upgrade

Post by Michael J. Wa » Wed, 17 Apr 1996 04:00:00



> Hi Linux fans,

> Sorry if this is a FAQ, but I didn't found the answer in the various GCC
> HOW-TO.

.
.
Well I have gcc2.7.0 and gcc2.7.2 running on the same box, one is the
a.out version that came with my slackware distr and the other I compiled
under an ELF kernel with no problems. What "i" did was just put the
compiler
in a different directory tree and renamed the old one. Seems to work
okay so far.

I also did this recently with a Solaris 2.5 box which I had to install
the
precompiled binaries for first and then recompile and install 2.7.2
against
2.5.6(??). Anyway, both are installed and work. But honestly, I didn't
rename
them in this case, I just put the path of the newer compiler first and
then I
switch them around if I need the old one (which has only been 1 time
since I
put 2.7.2 on).

I haven't had any problems compiling anything so far, libm and libc
should
be okay as is.... but never hurts to have the latest and greatest,
especially
since you are using a bleeding edge kernel already!
        good luck,
        mike

--
Michael J. Way
Departamento de Astrofisica
Universidad Catolica de Chile

 
 
 

GCC and g77 upgrade

Post by Thomas H. Rob » Thu, 18 Apr 1996 04:00:00




-Hi Linux fans,
-
-Sorry if this is a FAQ, but I didn't found the answer in the various GCC
-HOW-TO.
-I'm currently running Linux 1.3.59 from a Slackware 3.0 ELF
-distribution. It comes with gcc 2.7.0 and I have installed g77 0.5.16. I
-would like to know how to install gcc 2.7.2 without removing 2.7.0. In
-other word I would like to be able to launch the "old" gcc with a
-command like gcc270 while gcc alone would start 2.7.2. Compilers are
-located in the subdirectories named according to the version number like
-/usr/lib/gcc-lib/i486-linux/2.7.0/ so I guess it should quite
-straightforward to install the new gcc and rename the old gcc driver to
-gcc270. I'm quite new to gcc and Linux installation and I don't want to
-mess up with the current installation.
-What about libc, libm... Do I have to upgrade them too? I have currently
-/lib/libc.so.5.0.9
-Probably the most relevant question would be if 2.7.2 is significantly
-better than 2.7.0.
-Since I am using Fortran, I have the same question concerning g77 from
-0.5.16 to 0.5.18. I have some problems with 0.5.16 and large local
-arrays and would like to check if 0.5.18 is better in that respect. The
-0.5.18 g77 seems to require 2.7.2. Is this true?
-
I just installed g77 0.5.18 and it has good instructions on installing both it
and gcc 2.7.2 .  According to the docs, g77 0.5.18 will work with gcc 2.6 -
2.7.2, so your 2.7.0 should work.  However, installation of g77 requires that
you have the source to gcc.  In my case, it was more convenient to download
2.7.2 since I did not have the source to gcc 2.7.0 on my system.  Note that
the instructions for installing gcc 2.7.2 were more difficult to understand
and are completely replaced by the g77 package.
 
 
 

1. Calling C from F77 (Linux, gcc, g77), how ?

Hello,

  I'm currently installing the LAPACK set of (fortran) math routines
on my Linux box. I got all the work done at the exception of tuning
a routine (called SECOND) which is used to estimate the time spent in
calculations. The routine SECOND calls a system routine ETIME which
is supposed to return the user time for the process since it started up.

  ETIME seems not to be a part of G77. However there is a routine in
the C library which could be called to do the job : clock.

  My question : How do I have to compile/link my program so that
this C library routine becomes available in the F77 program ?

  I tried something like :

second.f:

      REAL FUNCTION SECOND
      ...
      INTEGER CLOCK,ITMP
      EXTERNAL CLOCK
      ITMP=CLOCK()
C     clock returns time as an integer number of 100th's of a second
      SECOND=ITMP/100.0
      RETURN
      END

then

   g77 -c second.f
   gcc -o main.e main.o second.o -lf2c -lm

but gcc does not find the clock routine from its libraries...

Note : Here gcc is used as loader. The libraries libf2c and libm
       are required when using G77 (GNU Fortran 77).

  Any advice is welcome. (And let me know if you think I misunderstood
something.)

  Best regards, Thierry

--
Thierry SENGSTAG
Paul Scherrer Institut      Ecole Polytechnique Fdrale de Lausanne
OBUA/4                      Institut de Gnie Atomique - Dept. Physique
CH-5232 Villigen            CH-1015 Lausanne
+41-56-310.45.12            +41-21-693.33.77  (Fax: +41-21-693.44.70)

2. Apache, ASP and VBScript

3. gcc and g77

4. PC-NFS slip to solaris 2.3 ???

5. Trouble building gcc-2.7.2.2/g77-0.5.20 on linux

6. Use dhclient with two hostnames

7. g77: must rebuild gcc?

8. Mounting FAT with uid and gid

9. gcc g77 problems

10. pc,g77 and gcc-2.7.2 together?

11. linking g77 and gcc code.

12. gcc-2.7.2.2 + g77-0.5.20

13. Upgrade gcc 2.96-98 to gcc 3.2-7 on Redhat 7.2