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: 103376,fcd0ac136c3a2795 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.bt.com!news.bt.com.POSTED!not-for-mail NNTP-Posting-Date: Mon, 23 Aug 2010 17:01:11 -0500 From: Brian Drummond Newsgroups: comp.lang.ada Subject: Re: USB Boarduino on AVR-Ada Tutorial Date: Mon, 23 Aug 2010 23:08:51 +0100 Reply-To: brian@shapes.demon.co.uk Message-ID: References: <4d1d662b-f476-41e4-938c-0564ad90d74e@d17g2000yqb.googlegroups.com> <208b422c-afc7-4404-8741-d4582ced47ce@f42g2000yqn.googlegroups.com> <6e8376p4ltcvberbt9a44ub44vc48vjr3m@4ax.com> 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-O8rrhwPtse0uWHmjuFuSDRzHzSySOV83T6X8CQnCUbS97gQ3T2fIcxyF671OUomsnO5S18fqqG7Ymy8!FX6E51B7hhNMapZU8zqtyrL+qQKT79LnPy3sTMXyvgP0TrIzL2gycAZwyv+0CquSgttAf09Vodcc!Hc4= 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 Xref: g2news1.google.com comp.lang.ada:13679 Date: 2010-08-23T23:08:51+01:00 List-Id: On Mon, 23 Aug 2010 15:28:53 +0000 (UTC), Warren wrote: >Brian Drummond expounded in >news:6e8376p4ltcvberbt9a44ub44vc48vjr3m@4ax.com: > >> None of the obvious (to me) approaches to installing the tools have >> worked smoothly on my machine (running OpenSuse 11.3). >> >> The closest I've got is using the cross-avr-binutils (2.20) and >> cross-avr-gcc (4.5.0) packages from OpenSuse, available as binary and >> source rpms. The binary version is built without Ada support, but the >> source builds without apparent complaints, to support Ada. Ditto >> avr-libc v1.70 (with more difficulty) from the same source. >> >> Now the AVR-Ada package (1.1-0) won't build, complaining that >> "avr-gnatprep" is not found (and indeed I can't find it!, though >> gnatbind is present) > >avr-gnatprep AFAIK, should be available from your "cross-avr-binutils" >if it supported Ada, which you say doesn't. I would also expect to >find it if you built and installed it from sources. Thanks. There was no sign of config options to support Ada building cross-avr-binutils, but I wondered. It's good to know that binutils is where to focus, if need be... >So maybe all you need to do >is to create a symlink from gnatprep to avr-gnatprep, where ever >your gnatprep is installed. Good point! It's not clear to me what needs to be cross-specific (beyond compiler and assembler, obviously!) and which native tools will do, but the preprocessor should be agnostic if anything is. So I'll try that first. >> Incidentally the AVR-Ada package contains a do-it-all script based >> around GCC4.3.2. This fails, building binutils, with compile errors in >> tc-avr.c. Presumably it would work if I could dig out a 4.3 era GCC, >> but that's not a trivial route either. >> >I haven't looked at the script, but you can probably edit the >script (or supply arguments) to skip the tool chain build, and >just focus on compiling the AVR-Ada components with the toolchain >you installed. The pre-packaged cross-avr-gcc chain appears OK except for Ada support. Rebuilding from source (loosely following the instructions on http://sourceforge.net/apps/mediawiki/avr-ada/index.php?title=Setup#Compiling_the_AVR-Ada_libraries but adapting for 4.5) appears to be successful (i.e. complete with only minor difficulty and no errors) Compiling the AVR-Ada components is where I came unstuck. I'll try the symlink next. Thanks for the suggestion, - Brian