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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,dc00c5fd4b21beb X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!fdn.fr!gegeweb.org!aioe.org!nospam From: "John B. Matthews" Newsgroups: comp.lang.ada Subject: Re: Please help... troubleshooting Gnat AVR build Date: Thu, 25 Jun 2009 07:31:10 -0400 Organization: The Wasteland Message-ID: References: NNTP-Posting-Host: ib4TTflHUauJidfWP/+Rjw.user.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.7.9 Cancel-Lock: sha1:hyaEMXN9l6poHIwmbSs2YFz+gTc= User-Agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X) Xref: g2news2.google.com comp.lang.ada:6614 Date: 2009-06-25T07:31:10-04:00 List-Id: In article , "Steve D" wrote: > "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. 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.* * -- John B. Matthews trashgod at gmail dot com