comp.lang.ada
 help / color / mirror / Atom feed
* Creating a GPR file to use a custom built runtime library
@ 2016-06-13 17:47 Jeremiah
  2016-06-13 19:29 ` Dmitry A. Kazakov
  2016-06-13 19:56 ` Simon Wright
  0 siblings, 2 replies; 7+ messages in thread
From: Jeremiah @ 2016-06-13 17:47 UTC (permalink / raw)


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 = arm-eabi, runtime = ../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", "-gnatn");
   end Compiler;

   package Builder is
      for Default_Switches ("ada") use ("--RTS=../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-eabi-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=arm-eabi --config=ada,,../zfp-atsaml21j18
Error: no compiler found for language 'ada', target = arm-eabi, runtime = ../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\obj\auto.cgpr

==============Error 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.


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2016-06-14  7:48 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-13 17:47 Creating a GPR file to use a custom built runtime library Jeremiah
2016-06-13 19:29 ` Dmitry A. Kazakov
2016-06-13 20:30   ` Jeremiah
2016-06-13 19:56 ` Simon Wright
2016-06-13 20:25   ` Jeremiah
2016-06-13 22:11     ` Egil H H
2016-06-14  7:48     ` Simon Wright

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