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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,89c1829026285446,start X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!feeder.news-service.com!94.75.214.39.MISMATCH!aioe.org!not-for-mail From: "Nasser M. Abbasi" Newsgroups: comp.lang.ada Subject: anyone seen this link error trying to link Ada program with blas and lapack? "cannot find -lgnalasup" Date: Fri, 15 Oct 2010 22:46:34 -0700 Organization: Aioe.org NNTP Server Message-ID: Reply-To: nma@12000.org NNTP-Posting-Host: tUYQ4Ty9mMw9Pdc8TJRFQA.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.2 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.9) Gecko/20100915 Thunderbird/3.1.4 Xref: g2news2.google.com comp.lang.ada:15531 Date: 2010-10-15T22:46:34-07:00 List-Id: 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