From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,3fb79e1fc6efeac8,start X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!feeder.news-service.com!ecngs!feeder.ecngs.de!Xl.tags.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!local2.nntp.ams.giganews.com!nntp.bt.com!news.bt.com.POSTED!not-for-mail NNTP-Posting-Date: Mon, 15 Nov 2010 09:26:27 -0600 From: Brian Drummond Newsgroups: comp.lang.ada Subject: AVR-Ada and GCC4.5.0 revisited. Date: Mon, 15 Nov 2010 15:27:00 +0000 Reply-To: brian@shapes.demon.co.uk Message-ID: X-Newsreader: Forte Agent 1.7/32.534 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Usenet-Provider: http://www.giganews.com X-AuthenticatedUsername: NoAuthUser X-Trace: sv3-6lgvMSbTj/38jSbvuFIN0VP/j1c1CrcJm8yiQUh/mGAlH6y+xJEZ4ZmV9japmLD/br79eR7bt33I+be!WW0E1HiYptWfab93MHUDWk0UHhib13b1YZZ+unF4Rdrsr9ZqqqLK62trUnLPmbNXDtpSRpObCBCy!A37l X-Complaints-To: abuse@btinternet.com X-DMCA-Complaints-To: abuse@btinternet.com X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 3216 Xref: g2news2.google.com comp.lang.ada:16481 Date: 2010-11-15T15:27:00+00:00 List-Id: 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