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 autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.107.20.2 with SMTP id 2mr12523223iou.16.1510570645987; Mon, 13 Nov 2017 02:57:25 -0800 (PST) X-Received: by 10.157.51.145 with SMTP id u17mr516506otc.7.1510570645892; Mon, 13 Nov 2017 02:57:25 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!news.unit0.net!peer02.am4!peer.am4.highwinds-media.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!l196no2359386itl.0!news-out.google.com!193ni1710iti.0!nntp.google.com!l196no2359385itl.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 13 Nov 2017 02:57:25 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2a02:120b:c3ee:e540:5c63:7eda:c75a:571e; posting-account=DQbqYQoAAACn8hHn2LmG2aF7Mhbxl_Lf NNTP-Posting-Host: 2a02:120b:c3ee:e540:5c63:7eda:c75a:571e References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Using System.Machine_Code in GPL 2017 Zfp for Arm From: ahlan@marriott.org Injection-Date: Mon, 13 Nov 2017 10:57:25 +0000 Content-Type: text/plain; charset="UTF-8" X-Received-Body-CRC: 1190365089 X-Received-Bytes: 2939 Xref: feeder.eternal-september.org comp.lang.ada:48848 Date: 2017-11-13T02:57:25-08:00 List-Id: On Monday, November 13, 2017 at 11:08:56 AM UTC+1, ah...@marriott.org wrote: > We are trying to build a zfp system for an arm M3 processor that is not on the list of supported GPL processors. > We only want the Ada intrinsics. We do not need or want any RTS and so expected that --RTS=zfp would do the trick. > however when we place this switch on arm-eabi-gcc from GPL 2017 we get the error message > RTS path not valid: Missing adainclude and adalib directories. > So things are not as simple as we thought. > It appears that --RTS takes the name of a directory so we created one and named this on the RTS switch. > In the directory we placed two files ada_object_path and ada_source_path that both contain the single word gnat. > In the RTS directory we then created the empty directory adalib and another directory gnat and placed in gnat directory the file System.ads which we copied from an RTS directory of a similar processor. > This all seems to work. > With this we are able to create simple programs. > However when we want to use System.Machine_Code we get the error message that > System.Machine_Code is not a predefined library. > I suspect that we need to add something to our RTS directory. > But what? > Has anyone any experience building ARM ZFP systems and can tell us how we get add System.Machine_Code to our Zfp. > Any help or suggestions what to do next would be greatly appreciated. > > Best wishes, > Ahlan To answer my own question: You need to add the file s-maccod.ads However, and this is what confused us, the filename is fixed. If you rename the file to system-machine_code.ads it doesn't work.