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.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,b4945ea154eefb5f,start X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.129.169 with SMTP id nx9mr5776536pbb.2.1333942386085; Sun, 08 Apr 2012 20:33:06 -0700 (PDT) Path: r9ni35079pbh.0!nntp.google.com!news1.google.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail From: "Rego, P." Newsgroups: comp.lang.ada Subject: Building gnat-gpl-2011-avr-windows from scratch in GPS Date: Sun, 8 Apr 2012 20:18:28 -0700 (PDT) Organization: http://groups.google.com Message-ID: <20256137.216.1333941508115.JavaMail.geo-discussion-forums@vbpp14> NNTP-Posting-Host: 177.9.197.159 Mime-Version: 1.0 X-Trace: posting.google.com 1333942385 1382 127.0.0.1 (9 Apr 2012 03:33:05 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 9 Apr 2012 03:33:05 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=177.9.197.159; posting-account=TRgI1QoAAABSsYi-ox3Pi6N-JEKKU0cu User-Agent: G2/1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Date: 2012-04-08T20:18:28-07:00 List-Id: Hello, I am trying to build the gnat-gpl-2011-avr-windows toolchain in GPS with a = simple project (which I do not expect to run on an AVR chip for now). So I = have installed on Windows 7 machine the gnat-gpl-2011-i686-pc-mingw32-bin.e= xe and the AVR gnat-gpl-2011-avr-windows-bin on c:\GNAT\2011.=20 I configured a GPS project file as project Test is package Compiler is for Default_Switches ("ada") use ("-gnat05"); end Compiler; package Ide is for Gnat use "avr-gnat"; for Gnatlist use "avr-gnatls"; for Debugger_Command use "avr-gdb"; end Ide; for Source_Dirs use (".", "src"); for Main use ("main.adb"); end Test; When I try to build, it returns me avr-gnatmake -f -d -PC:\test\test.gpr main.adb avr-gcc -c -gnat05 -I- -gnatA C:\test\src\main.adb avr-gnatbind -I- -x C:\test\main.ali avr-gnatlink C:\test\main.ali -o C:\test\main c:/gnat/2011/bin/../lib/gcc/avr/4.5.3/../../../../avr/bin/ld.exe: cannot fi= nd -lc collect2: ld returned 1 exit status avr-gnatlink: error when calling C:\GNAT\2011\bin\avr-gcc.exe avr-gnatmake: *** link failed. [2012-04-09 00:13:05] process exited with status 4 (elapsed time: 00.25s) So I included in GPS project file some options: package Linker is for Default_Switches ("ada") use ("-O", "-mmcu=3Davr6", "-nostdlib", = "-lgcc", "-Wl,-mavr6,-Tdata=3D0x00800200"); end Linker; and now when I try to build it returns me avr-gnatmake -f -d -PC:\test\test.gpr main.adb avr-gcc -c -gnat05 -I- -gnatA C:\test\src\main.adb avr-gnatbind -I- -x C:\test\main.ali avr-gnatlink C:\test\main.ali -O -mmcu=3Davr6 -nostdlib -lgcc -Wl,-mavr6,-T= data=3D0x00800200 -o C:\test\main c:/gnat/2011/bin/../lib/gcc/avr/4.5.3/../../../../avr/bin/ld.exe: avr archi= tecture of input file `b~main.o' is incompatible with avr:6 output c:/gnat/2011/bin/../lib/gcc/avr/4.5.3/../../../../avr/bin/ld.exe: avr archi= tecture of input file `C:\test\main.o' is incompatible with avr:6 output collect2: ld returned 1 exit status avr-gnatlink: error when calling C:\GNAT\2011\bin\avr-gcc.exe avr-gnatmake: *** link failed. [2012-04-09 00:15:00] process exited with status 4 (elapsed time: 00.25s) Thus, what did I miss in setup? I just want to generate a .hex file for a d= ummy main.adb. Thanks.