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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,222ed89632aabb93 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.224.177.12 with SMTP id bg12mr1455034qab.0.1343315992184; Thu, 26 Jul 2012 08:19:52 -0700 (PDT) Received: by 10.66.72.165 with SMTP id e5mr1632228pav.4.1343315615970; Thu, 26 Jul 2012 08:13:35 -0700 (PDT) Path: a15ni113198934qag.0!nntp.google.com!q21no5049891qas.0!news-out.google.com!p10ni65010571pbh.1!nntp.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!border6.newsrouter.astraweb.com!news.astraweb.com!border6.a.newsrouter.astraweb.com!feed.xsnews.nl!border-1.ams.xsnews.nl!newsfeed.straub-nv.de!news.swapon.de!news.glorb.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail From: Ada novice Newsgroups: comp.lang.ada Subject: Re: Free AMD Core Math Library (BLAS/LAPACK) + Ada Date: Tue, 24 Jul 2012 07:59:33 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <41b74e89-f112-4791-883d-236080652dbf@googlegroups.com> <34139f6f-5905-4c9e-a873-0b2445a1fccd@googlegroups.com> <87txx8yl8t.fsf@ludovic-brenta.org> <87pq7wyek7.fsf@ludovic-brenta.org> <16a6786f-6de5-49c4-90b7-a55cb238d52a@googlegroups.com> <509991f4-bcb4-45a0-84f3-b8393db64da4@googlegroups.com> <374bd898-5683-4350-8812-e3cae186ab2b@googlegroups.com> <87k3y3jxgj.fsf@ludovic-brenta.org> <23edac82-3e0e-47f5-85b7-36473e4a44ed@googlegroups.com> NNTP-Posting-Host: 193.11.21.204 Mime-Version: 1.0 X-Trace: posting.google.com 1343142084 5058 127.0.0.1 (24 Jul 2012 15:01:24 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 24 Jul 2012 15:01:24 +0000 (UTC) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=193.11.21.204; posting-account=Rr9I-QoAAACS-nOzpA-mGxtAlZ46Nb6I User-Agent: G2/1.0 X-Received-Bytes: 4914 Content-Type: text/plain; charset=ISO-8859-1 Date: 2012-07-24T07:59:33-07:00 List-Id: Thanks for your inputs Nasser and Simon. I put /usr/lib/gcc/i486-linux-gnu/4.6 in LIBRARY_PATH and issuing "make all" now gives: make all gcc -c cxbbase.ads gcc -c cxbbase.ads gnatmake cxbi.adb -largs ifinc.o -lgfortran -lm gnatbind -x cxbi.ali gnatlink cxbi.ali ifinc.o -lgfortran -lm gnatmake cxbs.adb -largs sfinc.o -lgfortran -lm gnatbind -x cxbs.ali gnatlink cxbs.ali sfinc.o -lgfortran -lm gnatmake cxbd.adb -largs dfinc.o -lgfortran -lm gnatbind -x cxbd.ali gnatlink cxbd.ali dfinc.o -lgfortran -lm gnatmake cxbc.adb -largs cfinc.o -lgfortran -lm gnatbind -x cxbc.ali gnatlink cxbc.ali cfinc.o -lgfortran -lm gnatmake cxbz.adb -largs zfinc.o -lgfortran -lm gnatbind -x cxbz.ali gnatlink cxbz.ali zfinc.o -lgfortran -lm gnatmake cxbch.adb -largs chfinc.o -lgfortran -lm gnatmake: "cxbch" up to date. gnatmake cxbsh.adb -largs shfinc.o -lgfortran -lm gnatmake: "cxbsh" up to date. gnatmake cxbl.adb -largs lfinc.o -lgfortran -lm gnatmake: "cxbl" up to date. gnatmake cxbim.adb -largs imfinc.o -lgfortran -lm gnatbind -x cxbim.ali gnatlink cxbim.ali imfinc.o -lgfortran -lm gnatmake cxbsm.adb -largs smfinc.o -lgfortran -lm gnatbind -x cxbsm.ali gnatlink cxbsm.ali smfinc.o -lgfortran -lm gnatmake cxbdm.adb -largs dmfinc.o -lgfortran -lm gnatbind -x cxbdm.ali gnatlink cxbdm.ali dmfinc.o -lgfortran -lm gnatmake cxbcm.adb -largs cmfinc.o -lgfortran -lm gnatbind -x cxbcm.ali gnatlink cxbcm.ali cmfinc.o -lgfortran -lm gnatmake cxbzm.adb -largs zmfinc.o -lgfortran -lm gnatbind -x cxbzm.ali gnatlink cxbzm.ali zmfinc.o -lgfortran -lm gnatmake cxblm.adb -largs lmfinc.o -lgfortran -lm gnatbind -x cxblm.ali gnatlink cxblm.ali lmfinc.o -lgfortran -lm with no error messages. And testing ./cxbi gives: $ ./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 There are some slight discrepancies in the first and last lines between what is sent and what is received. Is this normal? In addition I have 2 questions: 1. Do I have to go through step 12 in Nasser's page: htpp://12000.org/my_notes/ada/index.htm 2. "which gnatmake" will only give me /usr/gnat/bin/gnatmake if I put the latter in the path. But I am not able to write the path once for all. Each time I'm at the terminal, I do: echo $PATH /usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games and then export PATH=/usr/gnat/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games But this is valid only for the present session. Can someone indicate me a way just to add /usr/gnat/bin/gnatmake once for all in my path. A basic linux question I guess. Thanks, YC