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.1 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM,PP_MIME_FAKE_ASCII_TEXT autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,516fa714bab424cb X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,UTF8 Path: g2news1.google.com!news4.google.com!feeder1.cambriumusenet.nl!feed.tweaknews.nl!138.195.8.3.MISMATCH!news.ecp.fr!news2.arglkargh.de!newsfeed.straub-nv.de!open-news-network.org!eternal-september.org!.POSTED!not-for-mail From: Warren Newsgroups: comp.lang.ada Subject: Re: GPS 2010 for AVR Date: Fri, 30 Jul 2010 20:56:35 +0000 (UTC) Organization: A noiseless patient Spider Message-ID: References: <4c51d42b$0$12211$7b1e8fa0@news.nbl.fi> Injection-Date: Fri, 30 Jul 2010 20:56:35 +0000 (UTC) Injection-Info: mx03.eternal-september.org; posting-host="9f8M0iN5t54V+4DF/iqO8g"; logging-data="23874"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/zd1xPVuuOdMjitym63S2dIMUoElqM3DA=" User-Agent: Xnews/5.04.25 X-Face: &6@]C2>ZS=NM|HE-^zWuryN#Z/2_.s9E|G&~DRi|sav9{E}XQJb*\_>=a5"q]\%A;5}LKP][1mA{gZ,Q!j Cancel-Lock: sha1:AOxWSQEeL57BkUyihBlGMtAqAww= Xref: g2news1.google.com comp.lang.ada:12742 Date: 2010-07-30T20:56:35+00:00 List-Id: Simon Wright expounded in news:m2sk30rcc1.fsf@pushface.org: > Warren writes: > >> sjw expounded in news:d00563f7-b2a4-4a8c-8d53-adcbe72d62d8 >> @j9g2000yqn.googlegroups.com: >> >>> On Jul 30, 2:40 pm, Warren wrote: >>> >>>> avr-gnatlink F:\cygwin\home\Warren\avr\testavr\testavr.ali >>>> -mmcu=avr5 - >>> lgcc >>>> -o F:\cygwin\home\Warren\avr\testavr\testavr >>> >>> Just -lgcc on its own? you'd expect it to call up -lgnat & possibly >>> - lgnarl. Hmm. >> >> Huh? It does the -lgnat on its own. Adding it >> didn't helped either. ;-) > > Oh, I must have misunderstood. What happens if you call avr-gnatmake > with -v -largs -Wl,-v? (to see what's going on). I did try the -v, but not after -largs. But the problem is now solved now, by fixing the project file: The key turned out to be the following 3 lines in the project file (that I had differently): package Builder renames AVR.Builder; package Compiler renames AVR.Compiler; package Binder renames AVR.Binder; Evidently, this sets things up a lot of things: $ avr make avr-gnatmake -XMCU=atmega328p -Ptestavr.gpr avr-gcc -c --RTS=rts/avr5 \ -gnatec=C:\WinAVR-20100110\lib\gnat\gnat.adc \ -gdwarf-2 -gnatwp -gnatwu -gnatn -gnatp \ -gnatVn -Os -gnatef -fverbose-asm -frename-registers \ -mmcu=atmega328p -gnateDMCU=atmega328p \ -fdata-sections -ffunction-sections -I- \ -gnatA F:\home\wgay\avr\testavr\testavr.adb The "avr" is just my wrapper script to fix the PATH in cygwin for the WinAVR tools. Warren