Advice needed for installing gcc (old and new)
Dear all,
I am trying to install some rather old code that requires g77. Unfortunately, the g77 from compat-gcc-34-g77 seems to be unable to compile the code. I was then given a gcc-2.95.2.tar from the folks who wrote that code.
my os is fedora 17, it came with the gcc 4.7.2-8. THe configure script identifies my machine as "i686-pc-linux-gnu"
Unfortunately, my experience with linux is rather limited. So I can only outline what I did, and the outcome.
I have followed the gcc install instructions as best I can. I first tried to install the gcc2.95.2 - untarred, created a separate build folder. (both located directly in my home directory). From inside the build folder I:
./../src/configure --
make bootstrap
and ended up with:
( a lot about unreferenced/non-existent nodes)
.././../gcc-2.95.2/gcc/cpp.texi:2107: warning: unreferenced node `Conditinals-acccros'.
makeinfo: Removing output file `cpp.info' due to errors; use --force to preserve.
Making info file `cpp.info' from `.././../gcc-2.95.2/gcc/cpp.texi'.
make[2]: *** [cpp.info] Error 2
make[2]: Leaving directory `/home/stephanie/gcc29/build/gcc'
make[1]: *** [bootstrap] Error 2
make[1]: Leaving directory `/home/stephanie/gcc29/build/gcc'
make: *** [bootstrap] Error 2
I did this with the gcc 4.7 and then i tried again with gcc34. Before each attempt, I did in my build directory:
make distclean
I have been over the config files and been installing things that were listed as missing, as far as possible. But so far, the same end result.
I understand that I need a "POSIX"?
Eg: "checking for POSIXized ISC... no"
Is this important? If so, what package should I be installing? I did a yum search, but I cannot identify what I actually need.
And then I thought, why dont I try building a more recent gcc from source, instead, just to make sure that I am able to. So I tried building gcc 3.2.
(again tried with gcc34 and gcc 4.7.2) but again it fails.
make[2]: *** [read-rtl.o] Error 1
make[2]: Leaving directory `/home/stephanie/gcc32/build/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory `/home/stephanie/gcc32/build/gcc'
make: *** [bootstrap] Error 2
So some questions:
1) Would you suggest a different os than fedora, in the view of needing to compile such old code?
2) Do you see any glaring errors?
3) is downloading the gcc source enough? could I be missing libraries/other stuff? Is there generally the way to check for these?
4) any advice or links to guides to installing gcc from source, particularly older versions is much appreciated! (I have been going over the gcc pages)
5) In case I might have messed up my gcc and gcc34 and such, what would be the best way to remove then cleanly so I can later install them again with yum.
I would really appreciate whatever advice you are willing to part with. Thank you so much for your time.
Last edited by stephlo; 07-22-2013 at 01:08 AM.
Reason: for clarity
|