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=-1.5 required=5.0 tests=BAYES_00,FREEMAIL_FROM, STOX_REPLY_TYPE autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news2.google.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post01.iad.highwinds-media.com!newsfe07.iad.POSTED!92f42029!not-for-mail From: "Steve D" Newsgroups: comp.lang.ada References: In-Reply-To: Subject: Re: Please help... troubleshooting Gnat AVR build MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Windows Mail 6.0.6001.18000 X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6001.18049 Message-ID: X-Complaints-To: abuse@teranews.com NNTP-Posting-Date: Thu, 25 Jun 2009 02:12:44 UTC Organization: TeraNews.com Date: Wed, 24 Jun 2009 19:12:38 -0700 Xref: g2news2.google.com comp.lang.ada:6606 Date: 2009-06-24T19:12:38-07:00 List-Id: "Stephen Leake" wrote in message news:u1vpcoaka.fsf@stephe-leake.org... > "Steve D" writes: > >> But in the step 14 log file I have: >> >> avr-gcc -c -gnatec=C:\AVR-ADA\build\avr-ada-1.0.2\avr\gnat.adc -gdwarf-2 >> -gnatwp >> -gnatwu -gnatn -gnatp -gnatVn -Os -gnatef -fverbose-asm -frename-registers >> -mmcu=at90can128 -fdata-sections -ffunction-sections --RTS=rts/at90can128 >> -I- >> -gnatA C:\AVR-ADA\build\avr-ada-1.0.2\avr\avr_lib\at90can128\avr-mcu.ads >> avr-gnatmake: "avr-mcu.ali" incompatible ALI file, please recompile > > I get this when I first compile with one version of GNAT, and then > compile in the same directory with a later version of GNAT. The > solution in that case is to delete all .ali files, and start again > with the right compiler. > > I know you said you have tight control over the environment, but maybe > check again? At least make sure you have no .ali files around when you > start compiling. > > Maybe you're mixing the cross compiler ali files with the native ones? > Do you know (by chance) how Gnat chooses the locations to include in the build (outside of the -I directives in the command line)? For example: if I write a simple native (non-cross) "Hello, world" program, the compiler doesn't have any trouble finding Ada.Text_IO with nothing extra specified on the command line. Is there some kind of an "nostdinc" fo Ada? TIA, Steve > Otherwise, you've found a compiler bug. > > -- > -- Stephe