comp.lang.ada
 help / color / mirror / Atom feed
From: "John B. Matthews" <nospam@nospam.invalid>
Subject: Re: Please help... troubleshooting Gnat AVR build
Date: Thu, 25 Jun 2009 07:31:10 -0400
Date: 2009-06-25T07:31:10-04:00	[thread overview]
Message-ID: <nospam-1791F8.07311025062009@news.aioe.org> (raw)
In-Reply-To: w2B0m.54762$gz5.49141@newsfe07.iad

In article <w2B0m.54762$gz5.49141@newsfe07.iad>,
 "Steve D" <nospam_steved94@comcast.net> wrote:

> "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.

Look for section "3.3 Search Paths and the Run-Time Library (RTL)".*

> Is there some kind of an "nostdinc" fo Ada?

Both -nostdinc & -nostdlib are recognized by gnatmake.*

*<http://gcc.gnu.org/onlinedocs/gcc-4.4.0/gnat_ugn_unw/>

-- 
John B. Matthews
trashgod at gmail dot com
<http://sites.google.com/site/drjohnbmatthews>



      reply	other threads:[~2009-06-25 11:31 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
2009-06-25 11:31     ` John B. Matthews [this message]
replies disabled

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