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=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,2546d90b9074b8cb,start X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit X-Received: by 10.224.205.65 with SMTP id fp1mr8626434qab.4.1356217458968; Sat, 22 Dec 2012 15:04:18 -0800 (PST) Received: by 10.49.15.6 with SMTP id t6mr2567133qec.20.1356217458952; Sat, 22 Dec 2012 15:04:18 -0800 (PST) Path: k2ni2110qap.0!nntp.google.com!ee4no1767749qab.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sat, 22 Dec 2012 15:04:18 -0800 (PST) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=70.53.16.242; posting-account=cUi90woAAADTaOISowbbHM8GUD0-opJO NNTP-Posting-Host: 70.53.16.242 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <5d90c63b-36ea-4c1f-8f2d-45efa3415305@googlegroups.com> Subject: Help building p2ada From: Patrick Injection-Date: Sat, 22 Dec 2012 23:04:18 +0000 Content-Type: text/plain; charset=ISO-8859-1 Date: 2012-12-22T15:04:18-08:00 List-Id: I would like to translate from pascal to ada. I want to use p2ada. The latest release is aug 2010, doesn't seem that old... It's here: http://p2ada.sourceforge.net/ Here is the relevant build instruction: " " " How to make P2Ada translator work ? =================================== You need an Ada compiler to build P2Ada (and also BP2P). * With GNAT from command line, type "gnatmake p2ada", "compile" (DOS/Windows batch file), or use the makefile. If you have a case-sensitive file system, you have to unzip newp2ada.zip with the lowercase option (unzip -LL newp2ada.zip). aflex and ayacc must have been made (see below) and copy or link them here. Files (especially pascal.l, pascal.y, alias.txt and nptest?.pas) must have UNIX (LF) end of line on UNIX platform, transform them with tr_dos2unix utility if not done with unzip option -aa. Here are commands to unpack and build on UNIX: $ cd $ mkdir newp2ada $ cd newp2ada $ unzip -aaLL ../newp2ada.zip $ cd newp2ada $ mkdir acu # Modify p2ada options to produce Unix end of file $ vi p2ada_options.ads /DOS n cwUnix ZZ $ make $ make test.ada * With GNAT and AdaGIDE, open p2ada.adb and press F3. * With ObjectAda, open p2ada.prj and press F7, or try "adamake p2ada.adb". " " " The options file defaults are fine for me. If I type make I get: No rule to make target `aflex', needed by `pascal_dfa.adb' I am using debian stable. Any hints on what I might be doing wrong ? Thanks for reading-Patrick