19-Dec-99 22:22 you wrote:
Hello, Marc, Victor, and everybody!
Khimenko Victor wrote:
Here is your problem: GPC can not be used with different version of GCC.
Well ... you have some additional work when using GPC with a non-matching version of GCC.
In this case it is `libgcc.a' that is not found. You can move or copy it from your GCC's directory
/usr/lib/gcc-lib/<platform>/<version>/
to a global one (such as /usr/local/lib/). After my humble experience, this doesn't harm. (But don't blame me if it does for you.;-)
It will work for simple programs like "Hello, World!" (where libgcc is not needed anyway) just fine. But for more complex programs it'll create problems. libgcc.a is INTERNAL gcc library - there are internal functions to help compiler workaround processor limitations (functions like 64bit division). And functions interface can be changed from one gcc version to other. It's not used much for regular programs (linux kernel does not use libgcc at all and it's not a small program by any measureement :-) though.
Another workaround would be to copy or link the same file from GCC's directory above to GPC's one.
A correct solution is to supply the correct version of `libgcc.a' in the GPC distribution - or to package corresponding versions of GPC and GCC in the distribution. This is the distributor's home work.
Another correct solution is to ...
grab sources of gcc from RedHat's CD and rebuild GPC from sources.
Exactly.