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=2.0 required=5.0 tests=BAYES_00,FORGED_MUA_MOZILLA, REPLYTO_WITHOUT_TO_CC autolearn=no 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.180.205 with SMTP id bv13mr1412673qab.8.1343315385058; Thu, 26 Jul 2012 08:09:45 -0700 (PDT) Received: by 10.66.89.225 with SMTP id br1mr1648727pab.3.1343315384655; Thu, 26 Jul 2012 08:09:44 -0700 (PDT) Path: a15ni105485768qag.0!nntp.google.com!q21no17971068qas.0!news-out.google.com!p10ni64989877pbh.1!nntp.google.com!border1.nntp.dca.giganews.com!border4.nntp.dca.giganews.com!border2.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!aioe.org!.POSTED!not-for-mail From: "Nasser M. Abbasi" Newsgroups: comp.lang.ada Subject: Re: Free AMD Core Math Library (BLAS/LAPACK) + Ada Date: Tue, 24 Jul 2012 08:54:30 -0500 Organization: Aioe.org NNTP Server Message-ID: References: <41b74e89-f112-4791-883d-236080652dbf@googlegroups.com> <583b29e2-3f75-4b0a-8f1a-802b3d6e502c@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> Reply-To: nma@12000.org NNTP-Posting-Host: 6xfnQf8NWYR0Ab23/pVebQ.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:14.0) Gecko/20120713 Thunderbird/14.0 X-Notice: Filtered by postfilter v. 0.8.2 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Date: 2012-07-24T08:54:30-05:00 List-Id: On 7/24/2012 8:09 AM, Ada novice wrote: > The makefile now seems to work with gnat but the lgfortran cannot be located: > > 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 > /usr/gnat/libexec/gcc/i686-pc-linux-gnu/4.5.3/ld: cannot find -lgfortran > collect2: ld returned 1 exit status > gnatlink: error when calling /usr/gnat/bin/gcc > gnatmake: *** link failed. > make: *** [cxbi] Error 4 > > Anything that I must adjust in my path or something else? > > As the notes says step 2 on the path: need to tell the linker where the libraries are. This can be done either by using -L or by using env. variable LD_LIBRARY_PATH Does your LD_LIBRARY_PATH point to /usr/lib/gcc/i486-linux-gnu/4.6 which is where libgfortran.so is? do echo $LD_LIBRARY_PATH to check before running the makefile The makefile should really has these build into it where one can change them and it should use -L and not depend on env. path. But this is how it was. Will try to improve this when I get sometime and update the Makefile (I do not like to use env variables to configure things) --Nasser