[Debichem-devel] Bug#857177: ga: undefined reference to symbol 'blacs_gridexit_'

Graham Inggs ginggs at debian.org
Wed Mar 8 15:29:12 UTC 2017


Source: ga
Version: 5.4~beta~r10636+dfsg-4
Tags: patch

Hi Maintainer

Since the upload of src:ga 5.4~beta~r10636+dfsg-4 [1], the build-time 
tests fail to build with errors similar to the following:

bin/bash ./libtool  --tag=F77   --mode=link mpif90   -fdefault-integer-8 
-fno-aggressive-loop-optimizations -g -O2 
-fdebug-prefix-map=/«BUILDDIR»/ga-5.4~beta~r10636+dfsg=. 
-fstack-protector-strong      -L/usr/lib  -Wl,-z,relro -o 
global/testing/big.x global/testing/big.o global/testing/util.o 
global/testing/ffflush.o global/testing/testblas.o  libga.la 
-lscalapack-openmpi -llapack -lblas  -larmci -lm
libtool: link: mpif90 -fdefault-integer-8 
-fno-aggressive-loop-optimizations -g -O2 
"-fdebug-prefix-map=/«BUILDDIR»/ga-5.4~beta~r10636+dfsg=." 
-fstack-protector-strong -Wl,-z -Wl,relro -o global/testing/big.x 
global/testing/big.o global/testing/util.o global/testing/ffflush.o 
global/testing/testblas.o  -L/usr/lib ./.libs/libga.a 
-lscalapack-openmpi -llapack -lblas /usr/lib/x86_64-linux-gnu/libarmci.a -lm
/usr/bin/ld: ./.libs/libga.a(scalapack.o): undefined reference to symbol 
'blacs_gridexit_'
//usr//lib/libblacs-openmpi.so.1: error adding symbols: DSO missing from 
command line

I was able to work around this with the following:

--- a/debian/rules
+++ b/debian/rules
@@ -9,7 +9,7 @@
  	dh_auto_configure -- 				\
  		--enable-cxx 				\
  		--with-tcgmsg				\
-		--with-scalapack=-lscalapack-openmpi	\
+		--with-scalapack="-lscalapack-openmpi -lblacs-openmpi" \
  		--with-blas=-lblas 			\
  		--with-lapack=-llapack			\
  		--with-mpi				\

This might be related to RC bug #854228 in blacs-mpi [2], 'Libraries not 
linked with their deps'.

Regards
Graham


[1] 
https://buildd.debian.org/status/fetch.php?pkg=ga&arch=amd64&ver=5.4%7Ebeta%7Er10636%2Bdfsg-4&stamp=1488754105&raw=0
[2] https://bugs.debian.org/854228



More information about the Debichem-devel mailing list