[Dune] Problems compiling dune trunk on Cray XT6
Markus Blatt
markus at dr-blatt.de
Mon Nov 12 16:24:28 CET 2012
Hey,
the flags in your opts-file seem to be a little bit messy.
On Mon, Nov 12, 2012 at 02:08:10PM +0100, Benedikt Oswald wrote:
> /bin/sh ../../../libtool --tag=CXX --mode=link CC -std=c++0x
> -DMPICH_IGNORE_CXX_SEEK -O2 -DNDEBUG -fomit-frame-pointer -static
> --no-strict-aliasing -DHAVE_SUPERLU_DIST
> -I/users/boswald/extlib/superludist/2.5/xt-mpich2/5.5.0/gcc/4.6.2/SRC -L/users/boswald/extlib/superludist/2.5/xt-mpich2/5.5.0/gcc/4.6.2/lib -lsuperlu_dist_2.5 -L/users/boswald/extlib/parmetis/3.2.0/xt-mpich2/5.5.0/gcc/4.6.2 -lparmetis -lmetis -all-static [...]
The -all-static flags has to be the first linker flags specified.
>
> My configure flags for the Dune Opts file are as follows:
>
>
> CONFIGURE_FLAGS="DUNE_LDFLAGS='-all-static ' MPICXX='CC' CXX='CC' CC='cc' F77=ftn LD='CC'
> CXXFLAGS='-DMPICH_IGNORE_CXX_SEEK -O2 -DNDEBUG
> -fomit-frame-pointer -static --no-strict-aliasing
> -DHAVE_SUPERLU_DIST
> -I$HOME/extlib/superludist/2.5/xt-mpich2/5.5.0/gcc/4.6.2/SRC
> -L$HOME/extlib/superludist/2.5/xt-mpich2/5.5.0/gcc/4.6.2/lib
> -lsuperlu_dist_2.5
> -L$HOME/extlib/parmetis/3.2.0/xt-mpich2/5.5.0/gcc/4.6.2
> -lparmetis -lmetis'
Please remove the linker flags (-L... -l....) and perhaps even the
static flag here.. The linker flags need to go into LDFLAGS
> CPPFLAGS='-DMPICH_IGNORE_CXX_SEEK -O2 -DNDEBUG
> -fomit-frame-pointer -static --no-strict-aliasing
> -DHAVE_SUPERLU_DIST
> -I$HOME/extlib/superludist/2.5/xt-mpich2/5.5.0/gcc/4.6.2/SRC
> -L$HOME/extlib/superludist/2.5/xt-mpich2/5.5.0/gcc/4.6.2/lib
> -lsuperlu_dist_2.5
> -L$HOME/extlib/parmetis/3.2.0/xt-mpich2/5.5.0/gcc/4.6.2 -lparmetis
> -lmetis'
The same holds here
> CFLAGS='-DMPICH_IGNORE_CXX_SEEK -O2 -DNDEBUG
> -fomit-frame-pointer -static --no-strict-aliasing
> -DHAVE_SUPERLU_DIST
> -I$HOME/extlib/superludist/2.5/xt-mpich2/5.5.0/gcc/4.6.2/SRC
> -L$HOME/extlib/superludist/2.5/xt-mpich2/5.5.0/gcc/4.6.2/lib
> -lsuperlu_dist_2.5
> -L$HOME/extlib/parmetis/3.2.0/xt-mpich2/5.5.0/gcc/4.6.2 -lparmetis
> -lmetis'
and here.
> FFLAGS='-DMPICH_IGNORE_CXX_SEEK -O2 -DNDEBUG
> -fomit-frame-pointer -static --no-strict-aliasing'
> LDFLAGS='-static
> -L$HOME/extlib/superludist/2.5/xt-mpich2/5.5.0/gcc/4.6.2/lib
> -lsuperlu_dist_2.5
> -L$HOME/extlib/parmetis/3.2.0/xt-mpich2/5.5.0/gcc/4.6.2 -lparmetis
> -lmetis'
This is the right place.
>
> I have attached the config.log from the dune-istl module.
>
> Why would it now advance further than before but crash with the same
> error message ?
Because the first test does not use your additional flags.
BTW: Somehow you seem to do much work in the flags manually that
configure should actually do for you. Maybe Eike and Christoph might
give you hint how they build on the Cray.
Markus
--
Do you need more support with DUNE or HPC in general?
Dr. Markus Blatt - HPC-Simulation-Software & Services http://www.dr-blatt.de
Hans-Bunte-Str. 8-10, 69123 Heidelberg, Germany
Tel.: +49 (0) 160 97590858 Fax: +49 (0)322 1108991658
More information about the Dune
mailing list