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: 103376,973b2ff14841b514 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.228.227 with SMTP id sl3mr9375421pbc.5.1341485254334; Thu, 05 Jul 2012 03:47:34 -0700 (PDT) Path: l9ni10941pbj.0!nntp.google.com!news2.google.com!volia.net!news2.volia.net!feed-A.news.volia.net!news.musoftware.de!wum.musoftware.de!news.swapon.de!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: what to use in place of old gnatbl in newer GNAT ? Date: Thu, 05 Jul 2012 11:47:33 +0100 Organization: A noiseless patient Spider Message-ID: References: Mime-Version: 1.0 Injection-Info: mx04.eternal-september.org; posting-host="4Cg2G7yDVe5FCnL++SadHg"; logging-data="12563"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+HH5Dlg1r2VPSJYrRNJNKAmZ0Y4kYsKHY=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (darwin) Cancel-Lock: sha1:+HyZM19GNBK/OTkynYCy7UMa7XQ= sha1:VrytloNoLxKiN8L+WO+VgaBZCJ8= Content-Type: text/plain Date: 2012-07-05T11:47:33+01:00 List-Id: "Nasser M. Abbasi" writes: > I am trying to build some tests for the ada lapack binding that I > obtained from > > ftp://ftp.cs.kuleuven.be/pub/Ada-Belgium/mirrors/gnu-ada/OLD/contrib/lapack-ada/ > > One of the tests (in the folder lapada/test/interf/ after extracting > the above tar file) uses a Makefile which uses an old GNAT command > which is no longer available in newer gnat 2012. > > This command is gnatbl as described here > > http://www.adahome.com/Resources/Compilers/GNAT-info.html#3 > > The makefile does this: > > ------------------ > cxbi: cxbi.ali ifinc.o > gnatbl cxbi.ali ifinc.o $(LIBF) > ------------------- > > So, I need to replace the above command based on what I > understood gnatbl did. But my attempts to that all are > not working (trying gnatbind/gnatlink, gnatmake, etc...) I > am not sure how to duplicate what the above line is supposed > to be doing. My $(LIBF) is > > LIBF = -lgfortran -lm -static > > I am not really familiar with details of these commands. I only use > gnatmake. > > I was wondering if someone knows what is the correct sequence of > gnat 2012 commands to replace gnatbl with? Or better, is there a way > to download gnatbl to use with gnat 2012? I googled and not able > to find one. I would use gnatmake! cxbi: cxbi.adb ifinc.o gnatmake cxbi.adb -largs ifinc.o -lgfortran or if you prefer cxbi: cxbi.adb ifinc.o gnatmake cxbi.adb =static -largs ifinc.o -lgfortran -lm However, neither seems to work! With GCC: Target: x86_64-apple-darwin11 Configured with: ../gcc-4.7.0/configure --prefix=/opt/gcc-4.7.0 --disable-bootstrap --disable-multilib --enable-languages=c,ada,fortran,c++ --build=x86_64-apple-darwin11 Thread model: posix gcc version 4.7.0 (GCC) I get $ ./cxbi Integer number passing: mode: in out in/out Ada send: 1 1 1 Fortran get: 1 1 1 Fortran send: 2 2 2 Ada recieve: 1 2 2 Ada send: -1 -1 -1 Fortran get: -1 -1 -1 Fortran send: 0 0 0 Ada recieve: -1 0 0