LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 06-04-2009, 09:47 AM   #1
emmalg
Member
 
Registered: Jun 2009
Location: Spain
Distribution: Various, Ubuntu, Fedora, Open Solaris, Solaris, RHEL, CentOS
Posts: 64

Rep: Reputation: 16
gcc-gnat depends on OLDER version - pls help!


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
 
Old 06-04-2009, 07:25 PM   #2
Valery Reznic
ELF Statifier author
 
Registered: Oct 2007
Posts: 666

Rep: Reputation: 132Reputation: 132
You can install older distro which has gcc-3.4 as THE compiler (what it was - FC 3 ?) in VM or the other physical box, built libgnat-3.4 on this distro and then copy it to your Fedora 10 box.
While tedious it should work
 
Old 06-05-2009, 03:30 AM   #3
emmalg
Member
 
Registered: Jun 2009
Location: Spain
Distribution: Various, Ubuntu, Fedora, Open Solaris, Solaris, RHEL, CentOS
Posts: 64

Original Poster
Rep: Reputation: 16
Hi Valery

Thanks for the suggestion, I think I'll give it a try. I've actually already asked the IT dept if they had any old disks lying around so I could install all the software on a legacy OS which comes with compiler!

You wouldn't think it, but the software I am trying to run is a recent release!

Cheers
Emma
 
Old 06-05-2009, 06:08 PM   #4
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 171Reputation: 171
There are a few packages made to handle this situation.

compat-gcc-34
compat-gcc-34-c++
compat-glibc
compat-libstc++-33
 
Old 06-08-2009, 03:37 AM   #5
emmalg
Member
 
Registered: Jun 2009
Location: Spain
Distribution: Various, Ubuntu, Fedora, Open Solaris, Solaris, RHEL, CentOS
Posts: 64

Original Poster
Rep: Reputation: 16
Hi Lazlow

I had those packages installed originally, unfortunately it didn't look like there was any ada support built into the packages. The required library was still missing so I couldn't run the software.

Cheers
Emma
 
Old 06-16-2009, 07:56 AM   #6
emmalg
Member
 
Registered: Jun 2009
Location: Spain
Distribution: Various, Ubuntu, Fedora, Open Solaris, Solaris, RHEL, CentOS
Posts: 64

Original Poster
Rep: Reputation: 16
Was eventually pointed to a really old gcc 2.5 package and started from that. For more (very brief) info, see:

http://www.linuxquestions.org/questi...ora-10-730437/
 
  


Reply

Tags
fedora 10, gcc


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to install an older version of gcc compiler teki Linux - Newbie 7 07-10-2010 09:50 AM
need an older gcc version parent's_basement Debian 4 12-18-2008 07:04 AM
install or upgrade newer or older gcc version saistain Linux - Software 1 10-19-2007 10:26 PM
using an older version of gcc win32sux Slackware 1 05-12-2004 01:53 AM
Install older version of gcc s9902245 Linux - Newbie 1 09-16-2003 03:08 PM


All times are GMT -5. The time now is 11:27 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration