Has anyone built lapack-3.2.1 on x86_64 using GCC4.3.3? I realize this
is not a lapack mailing list, but am hoping someone has done this.
I am having no joy at all:
sganguly@nyl06a-6632 lapack-3.2.1 $ make
( cd INSTALL; make; ./testlsame; ./testslamch; \
./testdlamch; ./testsecond; ./testdsecnd; ./testversion )
make[1]: Entering directory `/app/home/sganguly/lapack-3.2.1/INSTALL'
gfortran -g -o testlsame lsame.o lsametst.o
lsametst.o: In function `test1':
/home/sganguly/lapack-3.2.1/INSTALL/lsametst.f:1: undefined reference to
`_gfortran_set_options'
/app/devtools/gcc-4.3.3/lib/gcc/x86_64-unknown-linux-gnu/4.3.3/libgfortr
anbegin.a(fmain.o): In function `main':
../.././gcc-4.3.3/libgfortran/fmain.c:13: undefined reference to
`_gfortran_store_exe_path'
collect2: ld returned 1 exit status
make[1]: *** [testlsame] Error 1
make[1]: Leaving directory `/app/home/sganguly/lapack-3.2.1/INSTALL'
/bin/sh: ./testlsame: No such file or directory
/bin/sh: ./testslamch: No such file or directory
/bin/sh: ./testdlamch: No such file or directory
/bin/sh: ./testsecond: No such file or directory
/bin/sh: ./testdsecnd: No such file or directory
/bin/sh: ./testversion: No such file or directory
make: *** [lapack_install] Error 127
Thanks,
Sunandan Ganguly
Please follow the attached hyperlink to an important disclosure:
http://www.credit-suisse.com/legal/marketcommentary
-----Original Message-----
From: gretl-users-bounces(a)lists.wfu.edu
[mailto:gretl-users-bounces@lists.wfu.edu] On Behalf Of Allin Cottrell
Sent: Thursday, April 30, 2009 3:44 PM
To: Gretl list
Subject: Re: [Gretl-users] Using the libgretl shared library in C++
On Thu, 30 Apr 2009, Ganguly, Sunandan wrote:
Has anyone out there ever tried to use the api-s within the shared
library from inside a C++ program?
No, but...
I get this linker error :
/app/devtools/gcc-4.3.3/bin/g++ -m64 -mtune=opteron -lpthread Main.o
-L/app/devtools/gretl-1.8.0.org/lib -lgretl-1.0
-L/app/devtools/zlib-1.2.3/lib -lz -L/app/devtools/libxml2-2.7.3/lib
-lxml2 -L/app/devtools/glib-2.14.6/lib -lglib-2.0
-L/app/devtools/refblas3-3.0-11/lib64/libblas.so.3.0.0
-L/app/devtools/liblapack3-3.2.0-5/lib64/liblapack.so.3
-L/app/devtools/fftw-3.2.1/lib -lfftw3
-L/app/devtools/gcc-4.3.3/lib64/libgfortran.so.1 -o Application.x
/app/devtools/gretl-1.8.0.org/lib/libgretl-1.0.so: undefined reference
to `dgecon_'
What does
nm /app/devtools/liblapack3-3.2.0-5/lib64/liblapack.so.3 \ | grep
dgecon
show? That symbol should be defined in liblapack. Also, what does
ldd /app/devtools/gretl-1.8.0.org/lib/libgretl-1.0.so
show? That library should be linked against liblapack.
On my system:
waverley:~$ nm /usr/lib/liblapack.so.3 | grep dgecon 0016fca0 T dgecon_
waverley:~$ ldd /opt/esl/lib/libgretl-1.0.so
linux-gate.so.1 => (0xb7f28000)
liblapack.so => /usr/lib/liblapack.so (0xb7634000)
<etc>
PS: I have a suggestion as well - I think its best to avoid using C++
keywords such as "new" and "template" inside the C code for gretl as
this also causes trouble to folks that are trying to use the shared
lib from C++.
Fair point; I'll make that change.
Allin Cottrell
_______________________________________________
Gretl-users mailing list
Gretl-users(a)lists.wfu.edu
http://lists.wfu.edu/mailman/listinfo/gretl-users
===============================================================================
Please access the attached hyperlink for an important electronic communications
disclaimer:
http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html
===============================================================================