g77 and gcc installation

g77 and gcc installation

Post by cavall » Sat, 29 Nov 1997 04:00:00



Dear all,
I have RedHat 4.2 on my Pro Box. Now, I need to have gcc and g77
properly installed. gcc is obviously already there:

Quote:> gcc -v
> Reading specs from /usr/lib/gcc-lib/i386-linux/2.7.2.1/specs
> gcc version 2.7.2.1

Anyhow, I have the following compilation problem:

Quote:> gcc -Dpentium_linux -fno_second_underscore bitops.c
> cc1: Invalid option `-fno_second_underscore'

I tried keep working...
I downloaded g77-0_5_19_1-bin_tar.gz, and from / I tar zxpvf the .gz
file.
To have g77 linking, I had to cp the libgcc.a library to /usr/lib from
/usr/lib/gcc-lib/i386-linux/2.7.2.1 Now g77 seems to work (I only
compiled hello_world.f), anyhow, now I can't use anymore the gcc
compiler.

Quote:> gcc -Dpentium_linux -fno_second_underscore bitops.c
> gcc: installation problem, cannot exec `cpp': No such file or directory
and:
> gcc -v
> gcc version 2.7.2.1.f.1

without any reading specs specifications.....

Clearly the g77 installation wasn't performed properly...

Any and all suggestions appreciated. (also for the gcc second_underscore
problem)

Luigi

P.S. I have the Infomagic 6CDs set at hand.

Luigi Cavallo
Dept. of Chemistry
Univ. of Naples
Naples, ITALY
--------------------

 
 
 

g77 and gcc installation

Post by Robert M. Stockman » Mon, 01 Dec 1997 04:00:00



> Dear all,
> I have RedHat 4.2 on my Pro Box. Now, I need to have gcc and g77
> properly installed. gcc is obviously already there:

> > gcc -v
> > Reading specs from /usr/lib/gcc-lib/i386-linux/2.7.2.1/specs
> > gcc version 2.7.2.1

> Anyhow, I have the following compilation problem:

> > gcc -Dpentium_linux -fno_second_underscore bitops.c
> > cc1: Invalid option `-fno_second_underscore'

> I tried keep working...
> I downloaded g77-0_5_19_1-bin_tar.gz, and from / I tar zxpvf the .gz
> file.
> To have g77 linking, I had to cp the libgcc.a library to /usr/lib from
> /usr/lib/gcc-lib/i386-linux/2.7.2.1 Now g77 seems to work (I only
> compiled hello_world.f), anyhow, now I can't use anymore the gcc
> compiler.

> > gcc -Dpentium_linux -fno_second_underscore bitops.c
> > gcc: installation problem, cannot exec `cpp': No such file or directory
> and:
> > gcc -v
> > gcc version 2.7.2.1.f.1

> without any reading specs specifications.....

> Clearly the g77 installation wasn't performed properly...

> Any and all suggestions appreciated. (also for the gcc second_underscore
> problem)

> Luigi

First insert the redhat cdrom, and reinstall gcc + development,
so that it is in working condition. i.e. : rpm -i --force *gcc*

Get the following files from the CDROM which contains gnu stuff :

-rw-rw-r--   1 stock    users     1010463 Sep 13 16:45 g77-0.5.18.tar.gz
-rw-rw-r--   1 stock    users     7132291 Sep 13 16:55
gcc-2.7.2.1.tar.gz

 And perform literally the following commands :

     sh[ 1]# `cd /usr/src'

     sh[ 2]# `gunzip -c < /usr/FSF/gcc-2.7.2.1.tar.gz | tar xf -'

     [Might say "Broken pipe"...that is normal on some systems.]
     sh[ 3]# `gunzip -c < /usr/FSF/g77-0.5.18.tar.gz | tar xf -'

     ["Broken pipe" again possible.]
     sh[ 4]# `ln -s gcc-2.7.2.1 gcc'

     sh[ 5]# `ln -s g77-0.5.18 g77'

     sh[ 6]# `mv -i g77/* gcc'

     [No questions should be asked by mv here; or, you made a mistake.]
     sh[ 7]# `patch -p1 -V t -d gcc-2.7.2.1 <
gcc-2.7.2.1/f/gbe/2.7.2.diff'

     [Unless patch complains about rejected patches, this step worked.]
     sh[ 8]# `cd gcc'
     sh[ 9]# `touch f77-install-ok'

     [Do not do the above if your system already has an f77
     command, unless you've checked that overwriting it
     is okay.]
     sh[10]# `touch f2c-install-ok'

     [Do not do the above if your system already has an f2c
     command, unless you've checked that overwriting it
     is okay.  Else, `touch f2c-exists-ok'.]
     sh[11]# `./configure --prefix=/usr'

     [Do not do the above if gcc is not installed in /usr/bin.
     You might need a different `--prefix=...', as
     described below.]
     sh[12]# `make bootstrap'

     [This takes a long time, and is where most problems occur.]
     sh[13]# `rm -fr stage1'

     sh[14]# `make -k install'

     [The actual installation.]
     sh[15]# `g77 -v'

     [Verify that g77 is installed, obtain version info.]
     sh[16]#

Goodluck. On My dual PPro 200 system this was done in 15 minutes.

Robert

Quote:

> P.S. I have the Infomagic 6CDs set at hand.

> Luigi Cavallo
> Dept. of Chemistry
> Univ. of Naples
> Naples, ITALY
> --------------------

--
++---------------------------++----------------------------------------++
|| R.M. Stockmann            ||   InfoMagic Nederland VOF            
||

||
|| http://www.infomagic.nl   ||   The Netherlands                  ||
++---------------------------++----------------------------------------++
250-Linux: A copylefted Unix-like operating system for 80[3456]86,
250-       DEC Alpha, Sun SPARC, Sun UltraSPARC, Motorola 68k,
250-       PowerPC/PowerMac, ARM, Mips R[3,4]x00, Fujitsu AP/1000+
250-       and more to come.

 
 
 

g77 and gcc installation

Post by James Tappi » Tue, 02 Dec 1997 04:00:00



> Dear all,
> I have RedHat 4.2 on my Pro Box. Now, I need to have gcc and g77
> properly installed. gcc is obviously already there:

[Compilation problems snipped]

If you have a decent internet link you could download the rpm's from
your nearest mirror of ftp.redhat.com in the pub/contrib directory there
are a set of 4 rpm's gcc-2.7.2.3 gcc-g77-... gcc-g++... and gcc-objc....
installing the first 3 of these should give you a working gcc/g77/g++
system. Don't touch the g77-...ada... rpms that are also in there (nless
you know what they're for -- they certainly aren't for putting g77 on
your system.

--
+------------------------+-------------------------------+---------+
| James Tappin,          | School of Physics & Astronomy |  O__    |

| Ph: 0121-414-6462. Fax: 0121-414-3722                  |         |
+--------------------------------------------------------+---------+

 
 
 

g77 and gcc installation

Post by Ralf Loesch » Tue, 02 Dec 1997 04:00:00



> Dear all,
> I have RedHat 4.2 on my Pro Box. Now, I need to have gcc and g77
> properly installed. gcc is obviously already there:

SNIP

> Clearly the g77 installation wasn't performed properly...

> Any and all suggestions appreciated. (also for the gcc second_underscore
> problem)

Hi,

go to my home page

http://www.math.tu-dresden.de/~loesche

At the end you will find a link to gcc/g77 RPM's (actually gcc-2.7.2.1/
g77-0.5.19). I built these RPM's on RH 4.0 but they should work fine
on RH 4.2. Download all the gcc-*.i386.rpm's and install at least
the gcc and the g77 RPM.

HTH, Ralf

--
##################################################################

          Please REMOVE THIS to reply to this message.

##################################################################

 
 
 

1. GCC and g77 upgrade

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                 |

2. Shutting down X-server gives %&@#&%R&##

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

4. Widespread bug in rpc-lib

5. gcc and g77

6. terminal remote control software?

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

8. Newbe, How do i log in as a USER and not ROOT...help

9. g77: must rebuild gcc?

10. gcc g77 problems

11. pc,g77 and gcc-2.7.2 together?

12. linking g77 and gcc code.

13. gcc-2.7.2.2 + g77-0.5.20