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: 103376,222ed89632aabb93 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.240.101 with SMTP id vz5mr7107780pbc.4.1342358531174; Sun, 15 Jul 2012 06:22:11 -0700 (PDT) Path: l9ni11846pbj.0!nntp.google.com!news1.google.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: Sun, 15 Jul 2012 06:22:10 -0700 (PDT) Organization: http://groups.google.com Message-ID: <34139f6f-5905-4c9e-a873-0b2445a1fccd@googlegroups.com> References: <41b74e89-f112-4791-883d-236080652dbf@googlegroups.com> <0c159836-b4b9-4861-85cd-e3e61e94f8bc@googlegroups.com> <99901f55-e61a-4808-a442-1a62e625cd2e@googlegroups.com> <37b4ba31-245e-44d1-9183-5c3367c88101@googlegroups.com> <2db42c1b-cfd4-4a6f-9e0c-ce269ddf00c5@googlegroups.com> <7cadf109-e24a-45eb-9d7c-354d8899eec4@googlegroups.com> <3f14ee5a-d055-4252-ab45-7ca512a23fac@googlegroups.com> <9cc53435-3c7f-4443-8209-5137b9377aca@googlegroups.com> <583b29e2-3f75-4b0a-8f1a-802b3d6e502c@googlegroups.com> NNTP-Posting-Host: 193.11.21.204 Mime-Version: 1.0 X-Trace: posting.google.com 1342358531 23483 127.0.0.1 (15 Jul 2012 13:22:11 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sun, 15 Jul 2012 13:22:11 +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 Content-Type: text/plain; charset=ISO-8859-1 Date: 2012-07-15T06:22:10-07:00 List-Id: On Sunday, July 15, 2012 12:25:49 PM UTC+1, Simon Wright wrote: > -largs -v gives the -v (verbose) switch to gnatlink. If you want to give > -v to the system linker, ld, you would say > > -largs -Wl,-v > > (*exactly* as typed!) OK. With SPACE after "WI," I get with gnatmake *.adb -largs -WI, -v -lblas: gnatbind -x example1.ali gnatlink example1.ali -WI, -v -lblas GNATLINK 4.4.6 Copyright (C) 1995-2008, Free Software Foundation, Inc. gcc-4 -c -gnatA -gnatWb -gnatiw -gnatws /home/yc/work/ada/testblas/Ada_BLAS/b~example1.adb /usr/bin/gcc-4.4 b~example1.o ./ada_blas.o ./ada_blas-real.o ./example_support.o ./example1.o -WI, -lblas -o example1 -L./ -L/usr/lib/gcc/i486-linux-gnu/4.4/adalib/ -lgnat-4.4 -shared-libgcc /usr/bin/ld: cannot find -lblas collect2: ld returned 1 exit status gnatlink: error when calling /usr/bin/gcc-4.4 gnatmake: *** link failed. > LD_LIBRARY_PATH is used at run time to tell the program loader where to > find extra shared libraries; what you need is to tell the linker where > to find extra shared libraries. Use LIBRARY_PATH as well. my $HOME.bashrc file had the following lines: export LD_LIBRARY_PATH=/usr/lib/i386-linux-gnu/:/usr/lib/atlas-base/:/usr/lib/atlas-base/atlas/ export LIBRARY_PATH=/usr/lib/i386-linux-gnu/ and I modified LIBRARY_PATH to have the same contents as LD_LIBRARY_PATH i.e. /usr/lib/i386-linux-gnu/:/usr/lib/atlas-base/:/usr/lib/atlas-base/atlas/ but I get the same error messages. YC