I am running Fedora 10 and have been trying to install gcc 3.4.6 from source including ada language support as I require libgnat-3.4.so.1 to run some 3rd part software for work.
Unfortunately whilst gcc needs any cc or gcc installation (I have 4.3), GNAT appears to depend on compiling it with **older** versions, as I can see from the bug report at:
http://gcc.gnu.org/ml/gcc-bugs/2007-02/msg01799.html.
It first fell over with the following warning which is treated as an error and causes an exit:
Code:
a-elchha.adb:103:13: warning: index for "Buff" may assume lower bound of 1
a-elchha.adb:103:13: warning: suggested replacement: "Buff'First"
I made the recommended substitution but the next attampt at compiling gave:
Code:
s-except.ads:47:15 package "System.Exceptions" does not allow a body
s-except.ads:47:15: remove incorrect body in file "s-except.adb"
Whilst I don't know any ada at all, this type of warning suggests to me that the syntax of System.Exceptions has changed significantly and I doubt I can work around this one.
Unfortunately the Fedora 10 "compatability gcc 3.4" package doesn't contain the gnat support either which is why I was resorting to the source.
Please can someone advise me how I can proceed, as far as I can see I have the following options:
1) Find an older pre-compiled version of gnat that will work on Fedora 10
2) Find a way to edit the offending file and each of the others that will pop up afterwards (this is only the 13th file out of LOADS to be compiled).
3) Install gcc without the ada support and borrow a library compiled for RedHat WS4 which has been offered to me.
Have a better day I am! :-)
Emma