comp.lang.ada
 help / color / mirror / Atom feed
From: "Steve D" <nospam_steved94@comcast.net>
Subject: Re: Please help... troubleshooting Gnat AVR build
Date: Wed, 24 Jun 2009 19:12:38 -0700
Date: 2009-06-24T19:12:38-07:00	[thread overview]
Message-ID: <w2B0m.54762$gz5.49141@newsfe07.iad> (raw)
In-Reply-To: <u1vpcoaka.fsf@stephe-leake.org>

"Stephen Leake" <stephen_leake@stephe-leake.org> wrote in message 
news:u1vpcoaka.fsf@stephe-leake.org...
> "Steve D" <nospam_steved94@comcast.net> 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





  reply	other threads:[~2009-06-25  2:12 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-21 16:19 Please help... troubleshooting Gnat AVR build Steve D
2009-06-22  9:57 ` Stephen Leake
2009-06-25  2:12   ` Steve D [this message]
2009-06-25 11:31     ` John B. Matthews
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox