comp.lang.ada
 help / color / mirror / Atom feed
* anyone seen this link error trying to link Ada program with blas and lapack? "cannot find -lgnalasup"
@ 2010-10-16  5:46 Nasser M. Abbasi
  2010-10-16  6:25 ` Nasser M. Abbasi
  0 siblings, 1 reply; 5+ messages in thread
From: Nasser M. Abbasi @ 2010-10-16  5:46 UTC (permalink / raw)




Hello;

I've send this email to the cygwin mailing list.

I thought I check here also.

I am trying to build an Ada file which has to be linked to blas and 
lapack as it uses the new Ada 2005 Solve() of linear system function.

The link problem is on cygwin. I think it is a gcc installation issue 
may be.

"It seems there is a library missing in the system. Did a search on 
this, but not able to find anything.

$ uname -a
CYGWIN_NT-6.1-WOW64 me-PC 1.7.7(0.230/5/3) 2010-08-31 09:58 i686 Cygwin

$ gcc --version
gcc (GCC) 4.3.4 20090804 (release) 1

$ gnatmake main.adb -largs -L/usr/lib  -lgnala -llapack -lblas
gnatbind -x main.ali
gnatlink main.ali -L/usr/lib -lgnala -llapack -lblas
/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../i686-pc-cygwin/bin/ld:
cannot find -lgnalasup
collect2: ld returned 1 exit status
gnatlink: error when calling /usr/bin/gcc.exe
gnatmake: *** link failed.

When I copy the source file (the Ada file) to a linux system, with 
ubuntu 10.10 (linux 2.6.35-22) running gcc 4.4.5, the same command above 
works with no problem. no link error.
"

The blas and lapack libraries should come with the system normally, but 
sometime they do not.  On cygwin, they are there. On Ubuntu I had to 
install them afterwords (easy with the package manager).

The Ada source file is just one file. If someone wants to try the above 
gnatmake command on my file, here it is:

http://12000.org/tmp/AAA/main.adb

Need to use the above command to build it, which is:

gnatmake main.adb -largs -L/usr/lib  -lgnala -llapack -lblas

It does nothing now, just wanted first to see if it builds oK.

thanks
--Nasser






^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-10-16 15:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-16  5:46 anyone seen this link error trying to link Ada program with blas and lapack? "cannot find -lgnalasup" Nasser M. Abbasi
2010-10-16  6:25 ` Nasser M. Abbasi
2010-10-16  7:30   ` Nasser M. Abbasi
2010-10-16 14:49     ` Simon Wright
2010-10-16 15:45       ` Nasser M. Abbasi

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