comp.lang.ada
 help / color / mirror / Atom feed
* AVR-Ada and GCC4.5.0 revisited.
@ 2010-11-15 15:27 Brian Drummond
  2010-11-16 22:15 ` Rolf
  0 siblings, 1 reply; 6+ messages in thread
From: Brian Drummond @ 2010-11-15 15:27 UTC (permalink / raw)


Around August, I left this thread hanging as I ran out of play time...

Then, I was having difficulty getting a tool chain working under Linux - most of
the information online including the article at
http://sourceforge.net/apps/mediawiki/avr-ada/index.php?title=Setup
and the script and links from that page, refer to GCC4.3.x.

Following these instructions to build GCC4.3.x with GCC 4.5.0 installed is just
not going to work...

Modifying the script to use GCC 4.5 and newer packages, results in obscure
errors about two non-existent files (which do exist, however a third file,
tested but not reported, does not!) and my attempts to understand this failed...
(Gory details suppressed, but building mpfr apparently fails to find gmp.h)

Building the GCC4.5 tools from scratch, following the above article, but editing
versions, I could build GCC with Ada support, and gnatbind, but not gnatprep,
gnatlink, or gnatmake. Again, no idea why not...

HOWEVER...

In that thread, Tero Koskinen posted that he had the 4.5.0 files built for
Fedora Core 13 at http://iki.fi/tero.koskinen/avr-gnat/rpms

I was wary of trying these in case of incompatibilities with OpenSuse.
But after struggling with the source for long enough, I gave them a try.

They are not a complete set, (at least, for OpenSuse 11.3) I needed to add 
avr-binutils (avr-binutils-2.20-2.fc13.x86_64.rpm) and
avr-libc (avr-libc-1.6.7-2.fc13.noarch.rpm), 
both from rpm.pbone.net. Thre is a newer avr-libc (1.70) for FC14, but I wanted
to keep all the versions in sync for now.

On OpenSuse 11.3, I used the procedure:
(1) load the above and Tero's six rpms into a local directory
(2) added the local directory as a "plain rpm" repository
(3) YAST then allowed me to select and install the RPMs.

MUCH easier than previous attempts...

So far I have only built (not yet downloaded) the "led_on" example from the
introductory tutorial at
http://sourceforge.net/apps/mediawiki/avr-ada/index.php?title=Tutorial
but the process went smoothly.

So...

Thanks to Tero Koskinen, as well as to Warren and others for putting the
tutorials together!

- Brian



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-11-29 15:10 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-15 15:27 AVR-Ada and GCC4.5.0 revisited Brian Drummond
2010-11-16 22:15 ` Rolf
2010-11-17  7:07   ` Brian Drummond
2010-11-24 21:26     ` Warren
2010-11-26  9:58       ` Julian Leyh
2010-11-29 15:10         ` Warren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox