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: a07f3367d7,36a9f38dd6514fc8,start X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!f16g2000yqm.googlegroups.com!not-for-mail From: singo Newsgroups: comp.lang.ada Subject: gnat: Execution_Time is not supported in this configuration Date: Fri, 4 Dec 2009 03:09:35 -0800 (PST) Organization: http://groups.google.com Message-ID: <5e5d6fb5-e719-4195-925c-d1286699393d@f16g2000yqm.googlegroups.com> NNTP-Posting-Host: 130.237.215.68 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1259924975 3099 127.0.0.1 (4 Dec 2009 11:09:35 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 4 Dec 2009 11:09:35 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: f16g2000yqm.googlegroups.com; posting-host=130.237.215.68; posting-account=YaFpXwoAAABFpcqmE2M-zOfwgB6wr6kC User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.5) Gecko/20091109 Ubuntu/9.10 (karmic) Firefox/3.5.5,gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:8305 Date: 2009-12-04T03:09:35-08:00 List-Id: Dear Ada community, I have recently become very interested of Ada 2005, and it's real-time annex. However, as a new user of Ada I face some problems with the software. I cannot get the package Ada.Execution_Time to work with gnat, although the gnat documentation says that the real-time annex is fully supported... I use the gnat version 4.4 on a Ubuntu 9.10 distribution. The typical error message I get is gcc -c executiontime.adb Execution_Time is not supported in this configuration compilation abandoned How can I configure gnat to support the Ada.Execution_Time package? Hopefully somebody can help me! Thanks in advance! Ingo Below follows an example program that generates the error messge. with Ada.Text_IO; use Ada.Text_IO; with Ada.Real_Time; use Ada.Real_Time; with Ada.Execution_Time; procedure ExecutionTime is task T; task body T is Start : CPU_Time; Interval : Time_Span := Milliseconds(100); begin Start := Ada.Execution_Time.Clock; loop Put_Line(Duration'Image(Ada.Execution_Time.Clock - Start)); delay To_Duration(Interval); end loop; end T; begin null; end ExecutionTime;