[Debichem-devel] Bug#779827: Bug#779827: elpa: FTBFS could not link with blacs (Ubuntu)

Michael Banck mbanck at debian.org
Thu Mar 5 11:02:22 UTC 2015


On Thu, Mar 05, 2015 at 12:02:48PM +0200, Graham Inggs wrote:
> Hi maintainer
> Elpa FTBFS on Ubuntu builders as it fails the blacs link test in
> configure with the following output:
> configure:6376: checking for library containing blacs_gridinit
> configure:6394: mpif90 -o conftest -g -O2 -ffree-form
> -lblacsCinit-openmpi -lblacs-openmpi -lscalapack-openmpi  conftest.f
> -llapack -lblas  >&5
> /tmp/ccgbFmtZ.o: In function `MAIN__':
> /build/buildd/elpa-2013.11.008/conftest.f:2: undefined reference to
> `blacs_gridinit_'
> collect2: error: ld returned 1 exit status
> configure:6394: $? = 1
> configure: failed program was:
> |       program main
> |       call blacs_gridinit
> |       end
> ...
> configure:6411: result: no
> configure:6421: checking whether we can link a program with a blacs lib
> configure:6423: result: no
> configure:6427: error: could not link with blacs: specify path
> It seems the linker in Ubuntu is much stricter than the one in Debian.
> I was able to get it to build successfully by reversing the order of
> the blacs and scalapack libraries, and inserting them after
> 'conftest.f' (as LIBS) instead of before 'conftest.f' (as LDFLAGS),
> as follows:
> mpif90 -o conftest -g -O2 -ffree-form conftest.f -llapack -lblas
> -lscalapack-openmpi -lblacs-openmpi -lblacsCinit-openmpi
> Please consider the attached patch.

Look good, can you just commit it?  If there's a Ubuntu changelog
associated with it, feel free to pull it in as well.

If possible, I'd avoid an upload for this just now, as Debian is in a
freeze, but if you think it's really warranted we can discuss it.


More information about the Debichem-devel mailing list