Hi Paul,
Paul Kersting wrote:
>
> I am trying to install the egcs-1.0.2-8.i386.rpm on my RH5.0 system and get the
>following error messages:
>
> >rpm -ivh /home/pjk/tmp/egcs/egcs-1.0.2-8.i386.rpm
> /lib/cpp conflicts with file from gcc-2.7.2.3-8
> /usr/bin/protoize conflicts with file from gcc-2.7.2.3-8
> /usr/bin/unprotoize conflicts with file from gcc-2.7.2.3-8
> /usr/info/cpp.info.gz conflicts with file from gcc-2.7.2.3-8
> /usr/man/man1/cccp.1 conflicts with file from gcc-2.7.2.3-8
> error: /home/pjk/tmp/egcs/egcs-1.0.2-8.i386.rpm cannot be installed
>
> I am relatively new at linux, and up till now have been working with the system as
>set up with the initial RH installation. I need egcs primarily for g77. Any help
>would be greatly appreciated. I've searched the list archives on egcs, and haven't
>seen an answer to this problem, but that could be ignorance on my part.
the problem is that you have to substitute the standard
rh5.0 gcc with egcs, if you want to install egcs from the rpms.
(deinstall gcc, install egcs) BUT! take a moment, this has
some implications on your environment:
first there're a number of problems with c++ progs compiled
with gcc to work with egcs (libs compatibilities),
second - but i've not tested it myself - perhaps there'll be
problems in compiling the kernel sources.
The egcs installation on rh 5.0 was discussed in this list
and i'll attach some messages explaining how to go with
differents alternatives (the choice is of course up to you)
but you need to be aware that rh 5.1 ship with egcs now,
if you want to use egcs for all the tasks: but if your concern
is only on g77, i think you'll be happy with one of the alternatives
below (as i am :-).
HTH
ciao fede
attaching some previous postings:
-----------------------------
From: Federico Strati <[EMAIL PROTECTED]> 05/13/98 14:36
Subject: Re: HELP: g77 crashes under RHL 5.0
To: [EMAIL PROTECTED]
Hi Ricardo,
I had only problems in last weeks to "force" my RH 5 box to "upgrade"
to a working gcc-g77 compiler using the rpm contributed packages.
I don't know how to solve this (I'm still a newbie in many respects)
but I can tell you some alternatives (that worked for me :-):
1) the official RH 5 support the fortran development with
the fort77 + f2c packages:
f2c translates fortran sources in c sources (but to use these
"unpolished" sources is a hell)
fort77 is a script that drive the f2c in a way to pass sources to gcc
and produce exec,
it's a sort of "compiler script".
So you call fort77 with almost the same syntax that a normal f77
compiler and it will hide
to you all the complexities in running f2c and provide an exec.
(i.e.: # fort77 -o pippo pippo.f --> would give you the pippo exec).
Also interesting to note in this approach is the possibility to use a
little program,
f2c-polisher that you can retry from www.nag.com, that lets you polish
the c-output
from f2c so to make it human-readable (not only gcc ready).
Advantages: you use a well tested piece of sw, namely the f2c
translator.
Drawbacks: you don't use a native f77 compiler!
2) the egcs way:
egcs is a fully funcional compiler with extension to the gcc-g++-g77
arch.
for more info search egcs in www.cygnus.com (it's GPL if you wonder
about),
d/l the tarred sources and read carefully the docs on how:
a) compile the compilers (eheh ;-)
b) install them in a way they doesn't interfere with your old gcc.
it's pretty easy to do (thanx to the egcs developers).
be careful that if you d/l the biggest pkg you must allow over then 200
Mb
of free space on your hard disk during the compile process! After that
you can safely remove
sources and intermediate objects, using only the binaries produced.
I tested the egcs-g77 with my 2d-hydrodinamic-lagrangian-simulation code
and I found it works pretty well. (~12000 fortran lines ;-).
Advantages: you use a native f77 compiler.
Drawbacks: it's still developing, perhaps with some bugs... but I
haven't found yet!
So... I don't really answer your question :-(
but I've documented my way to obtain a working native fortran env
on a RH 5 box, I hope this will be useful.
ciao
fede
-------------------------------
From:Cristian Tibirna <[EMAIL PROTECTED]> 05/13/98 16:12
Subject: Re: HELP: g77 crashes under RHL 5.0
Resent-From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
On Wed, 13 May 1998, Federico Strati wrote:
[snip Federico's wellworthy advises]
>
> Ricardo Píriz wrote:
> >
> > Hi there!
> >
> > I have problems executing binaries created with g77 under RHL 5.0.
> > Everything seems to go fine at compilation time, but when I try to
> > execute my programs I always get a segmentation fault (even for the
> > simplest "hello world" program).
> >
> > I have installed the following versions:
> >
> > libc-5.3.12-25.i386.rpm
> > gcc-2.7.2.3-5.i386.rpm
> > gcc-g77-2.7.2.3-5.i386.rpm
> >
> > Everything was working fine under RHL 4.2!
> >
Your problem is that the 2.7.2.3-5 binary packages were built for RH-4.2.
Installing libc5 gcc on a glibc2 system isn't sucha good resolution.
What I have done, I took the 2.7.2.3-5.src.rpm from the redhat's site and
rebuilt it on a RH5 system. Now I have it installed on more than 5
machines and nobody came back to complain about. So it must be working
well :-). I didn't test it myself yet.
However, this was a kind of solution I had to adopt because of the big
number of machines I need to equip with g77 compilers. I think that if you
accept all the burden of recompiling c++ dynamically linked programs out
there for egcs, this is a better compiler.
Cristian
----------------------
Also I add to my post that ALL the info you need in recompiling the
egcs are on the website www.cygnus.com and that a new version (1.0.3)
is out and that the installation in "parallel" of the egcs works pretty
well: i use it only for fortran code, other stuff with standard gcc.
If you need some other info i'll be glad to answer.
ciao fede
>
> Paul J. Kersting
> KW Consulting, Inc. - Fuel Rod Expertise for the Nuclear Power Industry
> E-mail: [EMAIL PROTECTED] WWW: www.kwconsulting.com
> (412) 635-7333 (voice) (412) 367-2195 (fax)
>
> --
> PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
> http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
> To unsubscribe: mail [EMAIL PROTECTED] with
> "unsubscribe" as the Subject.
--
[EMAIL PROTECTED]
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject.