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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.157.43.198 with SMTP id u64mr12975304ota.32.1465840071855; Mon, 13 Jun 2016 10:47:51 -0700 (PDT) X-Received: by 10.157.63.245 with SMTP id i50mr175910ote.9.1465840071734; Mon, 13 Jun 2016 10:47:51 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!au2pb.net!feeder.erje.net!2.us.feeder.erje.net!newspeer1.nac.net!border2.nntp.dca1.giganews.com!nntp.giganews.com!p34no6420031qgp.1!news-out.google.com!u18ni184qgd.1!nntp.google.com!v48no1489937qgd.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 13 Jun 2016 10:47:51 -0700 (PDT) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=71.171.109.232; posting-account=vk6_JwoAAABkMyHO1YfdP69Hm3CpbdGR NNTP-Posting-Host: 71.171.109.232 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <4a015e82-e236-494e-b26f-40132a342542@googlegroups.com> Subject: Creating a GPR file to use a custom built runtime library From: Jeremiah Injection-Date: Mon, 13 Jun 2016 17:47:51 +0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:30716 Date: 2016-06-13T10:47:51-07:00 List-Id: I recently took a shot at modding a zero footprint runtime library I found = online for a chip that I have. The runtime appeared to build correctly, so= my next step was to setup a null main procedure and see if I could get it = to compile. Using GPRbuild I keep getting error about: Error: no compiler found for language 'ada', target =3D arm-eabi, runtime = =3D ../zfp-atsaml21j18 My project GPR file is as follows: ************************************************************* project Test_ZFP is for Languages use ("ada"); for Source_Dirs use ("src/**"); for Object_Dir use "obj"; for Main use ("program.adb"); for Target use "arm-eabi"; package Compiler is for Default_Switches ("ada") use ("-gnatwa", "-gnatQ", "-gnat12", "-g= natn"); end Compiler; package Builder is for Default_Switches ("ada") use ("--RTS=3D../zfp-atsaml21j18"); end Builder; package Ide is for Gnat use "arm-eabi-gnat"; for Gnatlist use "arm-eabi-gnatls"; end Ide; package Pretty_Printer is for Default_Switches ("ada") use ("-cl3"); end Pretty_Printer; end Test_ZFP; ************************************************************* The appropriate tools seem to be available on the path (arm-eabi-gcc, arm-e= abi-ld, etc.). This is the -v output for GPRbuild: ************************************************************ $ gprbuild -v -p test_zfp.gpr GPRBUILD GPL 2015 (20150428) (i686-pc-mingw32) Copyright (C) 2004-2015, Free Software Foundation, Inc. 26 lines: No errors gprconfig --batch -o D:\Program_Files\MinGW\msys\1.0\home\Jere\test_zfp\obj= \auto.cgpr --target=3Darm-eabi --config=3Dada,,../zfp-atsaml21j18 Error: no compiler found for language 'ada', target =3D arm-eabi, runtime = =3D ../zfp-atsaml21j18 Creating configuration file: D:\Program_Files\MinGW\msys\1.0\home\Jere\test= _zfp\obj\auto.cgpr Checking configuration D:\Program_Files\MinGW\msys\1.0\home\Jere\test_zfp\o= bj\auto.cgpr =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DError messages for project file: = D:\Program_Files\MinGW\msys\1.0\home\Jere\test_zfp\test_zfp.gpr 1. project Test_ZFP is | >>> warning: no compiler specified for language "ada", ignoring all= its sources 26 lines: No errors, 1 warning 5. for Main use ("program.adb"); | >>> "program.adb" is not a source of project "test_zfp" 26 lines: 1 error gprbuild: problems with main sources ************************************************************ program.adb is in src/ Any thoughts? I am sure I am making a simple mistake somewhere.