comp.lang.ada
 help / color / mirror / Atom feed
From: Ada novice <shai.lesh@gmx.com>
Subject: Re: Free AMD Core Math Library (BLAS/LAPACK) + Ada
Date: Tue, 24 Jul 2012 07:59:33 -0700 (PDT)
Date: 2012-07-24T07:59:33-07:00	[thread overview]
Message-ID: <cc8a22d9-ea99-464f-938c-1e61416ec58d@googlegroups.com> (raw)
In-Reply-To: <m2sjchqm2u.fsf@nidhoggr.home>

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




  reply	other threads:[~2012-07-26 15:19 UTC|newest]

Thread overview: 79+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-06 18:38 Free AMD Core Math Library (BLAS/LAPACK) + Ada Ada novice
2012-07-07 13:37 ` Charly
2012-07-07 14:01   ` Ada novice
2012-07-08  6:31     ` Charly
2012-07-08 12:22       ` Ada novice
2012-07-09 18:30         ` Charly
2012-07-09 21:15           ` Ada novice
2012-07-09 21:28             ` Ada novice
2012-07-09 21:36             ` Nasser M. Abbasi
2012-07-10  5:03               ` Ada novice
2012-07-10  9:35                 ` Brian Drummond
2012-07-10  9:51                   ` Nasser M. Abbasi
2012-07-10 12:29                     ` Ada novice
2012-07-10 20:02                       ` Ada novice
2012-07-10 21:48                         ` Nasser M. Abbasi
     [not found]                           ` <027286e8-2436-408a-acad-c1bbf42431f8@googlegroups.com>
2012-07-11 15:48                             ` Georg Bauhaus
2012-07-11 16:54                               ` Ada novice
2012-07-11 17:37                                 ` Simon Wright
2012-07-11 18:17                                 ` Nasser M. Abbasi
2012-07-11 19:14                                   ` Ada novice
2012-07-11  7:49                         ` Simon Wright
2012-07-11  9:47                           ` Ken Thomas
2012-07-11 19:30                             ` Simon Wright
2012-07-11 19:52                               ` Ada novice
2012-07-11 21:50                                 ` Nasser M. Abbasi
2012-07-12  6:34                                   ` Ada novice
2012-07-12  8:38                                     ` Simon Wright
2012-07-13 19:38                                       ` Ada novice
2012-07-14 14:25                                         ` Ada novice
2012-07-15  2:20                                           ` John B. Matthews
2012-07-15  7:41                                             ` Ada novice
2012-07-15 11:25                                               ` Simon Wright
2012-07-15 13:22                                                 ` Ada novice
2012-07-15 14:59                                                   ` Georg Bauhaus
2012-07-15 15:06                                                     ` Georg Bauhaus
2012-07-15 15:09                                                   ` Simon Wright
2012-07-15 16:05                                                     ` Ada novice
     [not found]                                                     ` <d21d15b6-424d-4e96-9457-43d53d9239b9@googlegroups.com>
2012-07-15 16:47                                                       ` Simon Wright
2012-07-15 17:03                                                         ` Ada novice
2012-07-15 17:42                                                         ` Ludovic Brenta
2012-07-15 18:41                                                           ` Simon Wright
2012-07-15 20:06                                                             ` Ludovic Brenta
2012-07-15 20:41                                                               ` Simon Wright
2012-07-15 21:24                                                                 ` Ada novice
2012-07-15 22:20                                                                   ` Simon Wright
2012-07-16  7:56                                                                     ` Ada novice
2012-07-16  9:27                                                                       ` Simon Wright
2012-07-16 11:15                                                                         ` Ada novice
     [not found]                                                                         ` <374bd898-5683-4350-8812-e3cae186ab2b@googlegroups.com>
2012-07-16 11:36                                                                           ` Simon Wright
2012-07-16 13:08                                                                             ` Ada novice
2012-07-16 19:51                                                                               ` Ludovic Brenta
     [not found]                                                                                 ` <cfd19c01-91e7-4e01-b2e8-e89f6c18764e@googlegroups.com>
2012-07-16 21:58                                                                                   ` Ludovic Brenta
2012-07-16 22:14                                                                                   ` Simon Wright
2012-07-24 13:09                                                                                     ` Ada novice
2012-07-24 13:54                                                                                       ` Nasser M. Abbasi
2012-07-24 14:18                                                                                         ` Simon Wright
2012-07-24 14:59                                                                                           ` Ada novice [this message]
     [not found]                                                                                           ` <1b104165-d8e4-4eb2-89ad-f6ac48bf2578@googlegroups.com>
2012-07-24 15:11                                                                                             ` Simon Wright
     [not found]                                                                                             ` <09au08pi7740v52v9237e79om6fpm2nllv@invalid.netcom.com>
2012-07-25  5:04                                                                                               ` Ada novice
2012-07-24 15:19                                                                                           ` Nasser M. Abbasi
2012-07-24 15:27                                                                                             ` Ada novice
2012-07-24 15:40                                                                                               ` Ada novice
2012-07-24 16:41                                                                                                 ` Nasser M. Abbasi
2012-07-24 17:36                                                                                                   ` Ada novice
2012-07-24 22:13                                                                                                     ` Nasser M. Abbasi
2012-07-25  5:36                                                                                                       ` Ada novice
2012-07-25  6:13                                                                                                         ` Nasser M. Abbasi
2012-07-25  8:56                                                                                                           ` Ada novice
2012-07-25  9:04                                                                                                             ` Nasser M. Abbasi
2012-07-25  9:16                                                                                                               ` Ada novice
2012-07-25  9:23                                                                                                                 ` Martin
2012-07-25 11:33                                                                                                                   ` Ada novice
2012-07-25  9:26                                                                                                             ` Georg Bauhaus
2012-07-25 11:37                                                                                                               ` Ada novice
2012-07-25 15:37                                                                                                                 ` Ada novice
2012-07-25 17:04                                                                                                                   ` Ada novice
2012-07-26 19:02                                                                                                                     ` Ada novice
2012-07-11 21:39                               ` Simon Wright
2012-07-10  9:32               ` Simon Wright
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox