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

* Re: AVR-Ada and GCC4.5.0 revisited.
  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
  0 siblings, 1 reply; 6+ messages in thread
From: Rolf @ 2010-11-16 22:15 UTC (permalink / raw)


On 15 Nov., 16:27, Brian Drummond <brian_drumm...@btconnect.com>
wrote:
> MUCH easier than previous attempts...
>
> So far I have only built (not yet downloaded) the "led_on" example from the
> introductory tutorial athttp://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

Please note that gcc-4.5 for AVR has a serious bug (http://gcc.gnu.org/
bugzilla/show_bug.cgi?id=46192) that prevents you using the compiler
for anything that is slightly more complex than the LED example (i.e.
anything)

I'll probably use gcc-4.4 for the next AVR-Ada release.

   Rolf



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

* Re: AVR-Ada and GCC4.5.0 revisited.
  2010-11-16 22:15 ` Rolf
@ 2010-11-17  7:07   ` Brian Drummond
  2010-11-24 21:26     ` Warren
  0 siblings, 1 reply; 6+ messages in thread
From: Brian Drummond @ 2010-11-17  7:07 UTC (permalink / raw)


On Tue, 16 Nov 2010 14:15:32 -0800 (PST), Rolf <rolf.ebert_nospam_@gmx.net>
wrote:

>On 15 Nov., 16:27, Brian Drummond <brian_drumm...@btconnect.com>
>wrote:
>> MUCH easier than previous attempts...
>>
>> So far I have only built (not yet downloaded) the "led_on" example from the
>> introductory tutorial athttp://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!
>>
>Please note that gcc-4.5 for AVR has a serious bug (http://gcc.gnu.org/
>bugzilla/show_bug.cgi?id=46192) that prevents you using the compiler
>for anything that is slightly more complex than the LED example (i.e.
>anything)
... it's optimising the "ready" bit read out of the wait loop...
>I'll probably use gcc-4.4 for the next AVR-Ada release.
>

Thanks for pointing this out. I've seen various suggestions that gcc-4.3.x is
needed for AVR, but nothing explicit why - until now.

Pity. 

I had just confirmed that (with minor changes to the Makefile) Warren's tutorial
works on the  Arduino Duemilanove.

Now it looks as if I need to find a native gcc-4.3.x for my system and start
again.

- Brian



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

* Re: AVR-Ada and GCC4.5.0 revisited.
  2010-11-17  7:07   ` Brian Drummond
@ 2010-11-24 21:26     ` Warren
  2010-11-26  9:58       ` Julian Leyh
  0 siblings, 1 reply; 6+ messages in thread
From: Warren @ 2010-11-24 21:26 UTC (permalink / raw)


Brian Drummond expounded in
news:n9v6e6hg6sa4semrdgj3jjjiu0pcd4su6u@4ax.com: 

> I had just confirmed that (with minor changes to the
> Makefile) Warren's tutorial works on the  Arduino
> Duemilanove. 
> 
> Now it looks as if I need to find a native gcc-4.3.x for my
> system and start again.
> 
> - Brian

Great to hear that Brian!  Arduino has new life (for me 
anyway), when you can combine it with Ada instead of that 
"munged Arduino flavoured C++". ;-)

You can see my synth's atmega168 MIDI module here:

  http://tinyurl.com/3xhlutv

Written in AVR-Ada, running with one main thread receiving 
MIDI messages and another processing "events" and scheduled 
events (through timeouts).

I have a VCA module just about ready for it as well, but no 
front module panel yet.

Warren



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

* Re: AVR-Ada and GCC4.5.0 revisited.
  2010-11-24 21:26     ` Warren
@ 2010-11-26  9:58       ` Julian Leyh
  2010-11-29 15:10         ` Warren
  0 siblings, 1 reply; 6+ messages in thread
From: Julian Leyh @ 2010-11-26  9:58 UTC (permalink / raw)


On 24 Nov., 22:26, Warren <ve3...@gmail.com> wrote:
>  http://tinyurl.com/3xhlutv

That's a login form...



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

* Re: AVR-Ada and GCC4.5.0 revisited.
  2010-11-26  9:58       ` Julian Leyh
@ 2010-11-29 15:10         ` Warren
  0 siblings, 0 replies; 6+ messages in thread
From: Warren @ 2010-11-29 15:10 UTC (permalink / raw)


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 462 bytes --]

Julian Leyh expounded in news:bbfc5e76-d648-4017-bf34-
a404b5724570@30g2000yql.googlegroups.com:

> On 24 Nov., 22:26, Warren <ve3...@gmail.com> wrote:
>> �http://tinyurl.com/3xhlutv
> 
> That's a login form...

I guess you can't go directly to the picture without logging in.  
Try the following thread link instead:

http://experimentalistsanonymous.com/board/index.php?topic=
2445.0

You will have to scroll down to find the picture of a cabinet.

Warren



^ 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