From: Jeremiah <jeremiah.breeden@gmail.com>
Subject: Creating a GPR file to use a custom built runtime library
Date: Mon, 13 Jun 2016 10:47:51 -0700 (PDT)
Date: 2016-06-13T10:47:51-07:00 [thread overview]
Message-ID: <4a015e82-e236-494e-b26f-40132a342542@googlegroups.com> (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.
next reply other threads:[~2016-06-13 17:47 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-13 17:47 Jeremiah [this message]
2016-06-13 19:29 ` Creating a GPR file to use a custom built runtime library 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
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox