|
Prev: AWS
Next: Which gnat to use?
From: Sébastien on 24 Apr 2008 12:29 Hi, When I try to compile aws, I get the following message: mscm(a)routeur:~/gnat/aws/AWS-gpl-2.3.0$ make build Building libz.a (Zlib library) gnatmake: objects up to date. gnatmake: objects up to date. gcc-4.2 -c -gnat05 -gnatwcfijkmruv -gnaty3abcefhiklmnoprstx -Wall -O2 -gnatn -I- -gnatA /var/local/mscm/gnat/aws/AWS-gpl-2.3.0/src/aws-services-dispatchers-timer.adb aws-services-dispatchers-timer.ads:31:06: "ADA.CALENDAR.FORMATTING" is not a predefined library unit aws-services-dispatchers-timer.ads:31:06: "AWS.SERVICES.DISPATCHERS.TIMER (body)" depends on "AWS.SERVICES.DISPATCHERS.TIMER (spec)" aws-services-dispatchers-timer.ads:31:06: "AWS.SERVICES.DISPATCHERS.TIMER (spec)" depends on "ADA.CALENDAR.FORMATTING (spec)" gnatmake: "/var/local/mscm/gnat/aws/AWS-gpl-2.3.0/src/aws-services-dispatchers-timer.adb" compilation error make[1]: *** [build] Error 4 make: *** [src_build] Error 2 I try the following sample test: with Ada.Calendar.Formatting; procedure test is begin Ada.Text_IO.Put_Line("test"); end test; And get at compile time: mscm(a)routeur:~/gnat/aws$ gcc -gnat05 -c test.adb test.adb:1:06: "ada.calendar.formatting" is not a predefined library unit I'm under ubuntu, and it looks like something is missing in gnat, how to fix it? I'm using : mscm(a)routeur:~/gnat/aws$ gnat GNAT 4.2.1 (Ubuntu 4.2.1-5ubuntu6) Copyright 1996-2006, Free Software Foundation, Inc. Thanks, Sebastien
From: Tero Koskinen on 24 Apr 2008 13:12 Hello, On Thu, 24 Apr 2008 16:29:31 +0000 Sébastien wrote: > Hi, > > When I try to compile aws, I get the following message: > /var/local/mscm/gnat/aws/AWS-gpl-2.3.0/src/aws-services-dispatchers-timer..adb > aws-services-dispatchers-timer.ads:31:06: "ADA.CALENDAR.FORMATTING" is > not a predefined library unit > > I'm under ubuntu, and it looks like something is missing in gnat, how to > fix it? > > GNAT 4.2.1 (Ubuntu 4.2.1-5ubuntu6) GNAT 4.2.1 does not fully support all Ada 2005 features. Try FSF GNAT 4.3 or GNAT GPL 2007. They have better support. Alternatively, use AWS 2.2.0. It should compile with GNAT 4.2.1. -- Tero Koskinen - http://iki.fi/tero.koskinen/
|
Pages: 1 Prev: AWS Next: Which gnat to use? |