compiling refblas3 with gfortran 4.2

Kamaraju Kusumanchi kamaraju@bluebottle.com
Thu Jul 19 17:37:00 GMT 2007


Hi all

The Debian distribution is trying to migrate from g77 to gfortran 4.2. As
part of this process all the existing packages need to be compiled using
gfortran which were originally compiled with g77.

When trying to compile refblas3 package with gfortran 4.2 instead of g77 on 
a Debian unstable machine, we are encountering some problems. The options
used to compile are

-pipe -O3 -fomit-frame-pointer

$ gfortran -v
Using built-in specs.
Target: i486-linux-gnu
Configured
with: ../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.2 --program-suffix=-4.2 --enable-clocale=gnu --enable-libstdcxx-debug --enable-mpfr --enable-targets=all --disable-werror --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu
Thread model: posix
gcc version 4.2.1 20070627 (prerelease) (Debian 4.2-20070627-1)


The compilation seem to go fine. However, When the tests are being run, it
fails as follows


LD_LIBRARY_PATH=$(pwd):$LD_LIBRARY_PATH cblas/testing/xzcblat1 >
debian/test/xzcblat1
awk '/fail/ || /FAIL/ {exit 1}' debian/test/xzcblat1 || (cat
debian/test/xzcblat1 && false)
 Complex CBLAS Test Program Results


 Test of subprogram number  1         CBLAS_ZDOTC    
                                    ----- PASS -----

 Test of subprogram number  2         CBLAS_ZDOTU    
                                    ----- PASS -----

 Test of subprogram number  3         CBLAS_ZAXPY    
                                    ----- PASS -----

 Test of subprogram number  4         CBLAS_ZCOPY    
                                    ----- PASS -----

 Test of subprogram number  5         CBLAS_ZSWAP    
                                    ----- PASS -----

 Test of subprogram number  6         CBLAS_DZNRM2   
                                    ----- PASS -----

 Test of subprogram number  7         CBLAS_DZASUM   
                                    ----- PASS -----

 Test of subprogram number  8         CBLAS_ZSCAL    
                                    ----- PASS -----

 Test of subprogram number  9         CBLAS_ZDSCAL   
                                    ----- PASS -----

 Test of subprogram number 10         CBLAS_IZAMAX   
                                       FAIL



Instead if I do
$ cblas/testing/xzcblat1
 Complex CBLAS Test Program Results


 Test of subprogram number  1         CBLAS_ZDOTC
                                    ----- PASS -----

 Test of subprogram number  2         CBLAS_ZDOTU
                                    ----- PASS -----

 Test of subprogram number  3         CBLAS_ZAXPY
                                    ----- PASS -----

 Test of subprogram number  4         CBLAS_ZCOPY
                                    ----- PASS -----

 Test of subprogram number  5         CBLAS_ZSWAP
                                    ----- PASS -----

 Test of subprogram number  6         CBLAS_DZNRM2
                                    ----- PASS -----

 Test of subprogram number  7         CBLAS_DZASUM
                                    ----- PASS -----

 Test of subprogram number  8         CBLAS_ZSCAL
                                    ----- PASS -----

 Test of subprogram number  9         CBLAS_ZDSCAL
                                    ----- PASS -----

 Test of subprogram number 10         CBLAS_IZAMAX
                                    ----- PASS -----


That is all the tests are passed. Suggesting that the problem could be in
the libblas.so.3.0 produced by gfortran. Can someone please look into this
problem and offer any suggestions?


rajuonu2@u2:~/deleteafter/refblas3-1.2$ LD_LIBRARY_PATH=$(pwd)
$LD_LIBRARY_PATH ldd cblas/testing/xzcblat1
        linux-gate.so.1 =>  (0xffffe000)
        libblas.so.3 => /home/rajuonu2/deleteafter/refblas3-1.2/libblas.so.3
(0xa7f05000)
        libgfortran.so.2 => /usr/lib/libgfortran.so.2 (0xa7e60000)
        libm.so.6 => /lib/libm.so.6 (0xa7e38000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xa7e2d000)
        libc.so.6 => /lib/libc.so.6 (0xa7cea000)
        /lib/ld-linux.so.2 (0xa7f83000)

rajuonu2@u2:~/deleteafter/refblas3-1.2$ ldd cblas/testing/xzcblat1
        linux-gate.so.1 =>  (0xffffe000)
        libblas.so.3 => /usr/lib/libblas.so.3 (0xa7f2a000)
        libgfortran.so.2 => /usr/lib/libgfortran.so.2 (0xa7e94000)
        libm.so.6 => /lib/libm.so.6 (0xa7e6c000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xa7e61000)
        libc.so.6 => /lib/libc.so.6 (0xa7d1e000)
        /lib/ld-linux.so.2 (0xa7fbe000)



The initial email regarding this can be found at
[1] http://lists.debian.org/debian-gcc/2007/06/msg00318.html
[2] http://lists.debian.org/debian-gcc/2007/07/msg00183.html


raju



More information about the Fortran mailing list