Re: Building LAPACK and ATLAS under cygwin
On Tuesday 01 April 2003 19:04, Underwood, Jonathan wrote: > Hi > > Apologies if this is a little off topic. Probably more than a little. Failing to follow instructions for non-cygwin applications is likely to make you a target for such accusations. >However i run into trouble > when compiling lapack, specifically when compiling the test programs. I > have set BLASLIB in make.inc as: > BLASLIB = -I/usr/include/atlas -latlas -lf77blas -lcblas Did you mean to type something like -L/usr/lib/atlas ? > > and on running make, i get the following error messages: > > g77 sblat1.o \ > -I/usr/include/atlas -latlas -lf77blas -lcblas -o ../xblat1s > /usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../../libf77blas.a(ATL_F77wrap_srot. >o )(.t ext+0x7a):ATL_F77wrap_rot.c: undefined reference to `_ATL_srot' This looks like a link failure, not a compile failure. -- Tim Prince -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Building LAPACK and ATLAS under cygwin
Hi Apologies if this is a little off topic. I'm attempting to build the LAPACK library under cygwin using the optimized atlas blas library. I have gotten Atlas to compile correctly and have installed the library files in /usr/lib and the header files in /usr/include/atlas/. However i run into trouble when compiling lapack, specifically when compiling the test programs. I have set BLASLIB in make.inc as: BLASLIB = -I/usr/include/atlas -latlas -lf77blas -lcblas and on running make, i get the following error messages: g77 sblat1.o \ -I/usr/include/atlas -latlas -lf77blas -lcblas -o ../xblat1s /usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../../libf77blas.a(ATL_F77wrap_srot.o )(.t ext+0x7a):ATL_F77wrap_rot.c: undefined reference to `_ATL_srot' /usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../../libf77blas.a(ATL_F77wrap_sswap. o)(. text+0x5b):ATL_F77wrap_swap.c: undefined reference to `_ATL_sswap' /usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../../libf77blas.a(ATL_F77wrap_scopy. o)(. text+0x5b):ATL_F77wrap_copy.c: undefined reference to `_ATL_scopy' /usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../../libf77blas.a(ATL_F77wrap_saxpy. o)(. text+0x71):ATL_F77wrap_axpy.c: undefined reference to `_ATL_saxpy' /usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../../libf77blas.a(ATL_F77wrap_sdot.o )(.t ext+0x49):ATL_F77wrap_dot.c: undefined reference to `_ATL_sdot' /usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../../libf77blas.a(ATL_F77wrap_isamax .o)( .text+0x27):ATL_F77wrap_amax.c: undefined reference to `_ATL_isamax' /usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../../libf77blas.a(ATL_F77wrap_sscal. o)(. text+0x23):ATL_F77wrap_scal.c: undefined reference to `_ATL_sscal' /usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../../libf77blas.a(ATL_F77wrap_sasum. o)(. text+0x23):ATL_F77wrap_asum.c: undefined reference to `_ATL_sasum' /usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../../libf77blas.a(ATL_F77wrap_snrm2. o)(. text+0x23):ATL_F77wrap_nrm2.c: undefined reference to `_ATL_snrm2' /usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../../libf77blas.a(ATL_F77wrap_srotg. o)(. text+0x1):ATL_F77wrap_rotg.c: undefined reference to `_ATL_srotg' collect2: ld returned 1 exit status make[1]: *** [../xblat1s] Error 1 make[1]: Leaving directory `/cygdrive/g/LAPACK/BLAS/TESTING' make: *** [blas_testing] Error 2 Does anyone have any hints as to how i am screwing up here? Many thanks, Jonathan. -- Dr. Jonathan Underwood Femtosecond Science Research Program Steacie Institute for Molecular Sciences National Research Council of Canada Room 2083 100 Sussex Drive Ottawa, Ontario K1A 0R6. tel: +1 (613) 9935319 fax: +1 (613) 9913437 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/