[Dune] Problems compiling dune trunk on Cray XT6

Oswald Benedikt Benedikt.Oswald at psi.ch
Tue Nov 13 17:12:24 CET 2012


Dear Dune, especially Eike, Rebecca and Markus,

thanks a lot for your suggestions with the flags for compiling on the Cray !!!

In fact, I spent some time trying on the cray,  I adapted the flags and removed the mess from my opts files, below.

Unfortunately, it still hangs when trying to compile the example in the dune-istl module.

It still complains about trying to link statically to the shared libstdc++.so which puzzles me
since the configure step says that it links statically.

Interestingly, an excerpt from the configure indicates warnings with libraries, also given below:


I am not really sure if this is a problem of the opts file or if it is a problem of the gcc 4.6.2 installation ?

I am also talking to support staff for this Cray.


Greetings and thanks again, Benedikt



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 --no-strict-aliasing -static'
                 CPPFLAGS='-DMPICH_IGNORE_CXX_SEEK -O2 -DNDEBUG -DHAVE_SUPERLU_DIST -I$HOME/extlib/superludist/2.5/xt-mpich2/5.5.0/gcc/4.6.2/SRC '
                 CFLAGS='-DMPICH_IGNORE_CXX_SEEK -O2 -DNDEBUG -fomit-frame-pointer -static --no-strict-aliasing '
                 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'
                 LTFLAGS=' '
                 --host=x86_64-unknown-linux-gnu
                 --enable-static
                 --disable-shared
                 --disable-mpiruntest
                 --enable-hades3deltd
                 --enable-hades3dfetd
                 --enable-hades3ddges
                 --enable-hades3ddgfd
                 --enable-hades3dfefd
                 --enable-hades3dfeqs
                 --disable-documentation
                 --enable-parallel
                 --enable-boost
                 --enable-petsc
                 --enable-debug-output
                 --without-gmp
                 --with-boost='$HOME/extlib/boost/1.50/gcc/4.6.2'
                 --with-metis='$HOME/extlib/metis/4.0.3/gcc/4.6.2'


================================================


Making all in dune
make[2]: Entering directory `/scratch/rosa/boswald/svnwork/dune-trunk/dune-istl/dune'
Making all in istl
make[3]: Entering directory `/scratch/rosa/boswald/svnwork/dune-trunk/dune-istl/dune/istl'
Making all in .
make[4]: Entering directory `/scratch/rosa/boswald/svnwork/dune-trunk/dune-istl/dune/istl'
make[4]: Nothing to be done for `all-am'.
make[4]: Leaving directory `/scratch/rosa/boswald/svnwork/dune-trunk/dune-istl/dune/istl'
Making all in tutorial
make[4]: Entering directory `/scratch/rosa/boswald/svnwork/dune-trunk/dune-istl/dune/istl/tutorial'
CC -std=c++0x -DHAVE_CONFIG_H -I. -I../../..  -I/scratch/rosa/boswald/svnwork/dune-trunk/dune-common -I../../.. -I/users/boswald/extlib/boost/1.50/gcc/4.6.2/include -DENABLE_BOOST -I/scratch/rosa/boswald/svnwork/dune-trunk/dune-common -DMPICH_IGNORE_CXX_SEEK -O2 -DNDEBUG -DHAVE_SUPERLU_DIST -I/users/boswald/extlib/superludist/2.5/xt-mpich2/5.5.0/gcc/4.6.2/SRC   -DMPICH_IGNORE_CXX_SEEK -O2 -DNDEBUG -fomit-frame-pointer --no-strict-aliasing -static -MT example-example.o -MD -MP -MF .deps/example-example.Tpo -c -o example-example.o `test -f 'example.cc' || echo './'`example.cc
mv -f .deps/example-example.Tpo .deps/example-example.Po
/bin/sh ../../../libtool --tag=CXX   --mode=link CC -std=c++0x  -DMPICH_IGNORE_CXX_SEEK -O2 -DNDEBUG -fomit-frame-pointer --no-strict-aliasing -static -all-static    /scratch/rosa/boswald/svnwork/dune-trunk/dune-common/lib/libdunecommon.la /scratch/rosa/boswald/svnwork/dune-trunk/dune-common/lib/libdunecommon.la  -static -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  -o example example-example.o  -lm 
libtool: link: CC -std=c++0x -DMPICH_IGNORE_CXX_SEEK -O2 -DNDEBUG -fomit-frame-pointer --no-strict-aliasing -static -o example example-example.o  -L/users/boswald/extlib/superludist/2.5/xt-mpich2/5.5.0/gcc/4.6.2/lib -L/users/boswald/extlib/parmetis/3.2.0/xt-mpich2/5.5.0/gcc/4.6.2 -L/apps/ela/alps/4.0.2-2.0400.7033.0/lib/alps -L/opt/cray/udreg/2.3.2-1.0400.4691.4.1.gem/lib64 -L/opt/cray/ugni/2.3-1.0400.4374.4.88.gem/lib64 -L/opt/cray/pmi/3.0.1-1.0000.8917.33.1.gem/lib64 -L/opt/cray/dmapp/3.2.1-1.0400.4255.2.159.gem/lib64 -L/opt/cray/xpmem/0.1-2.0400.31280.3.1.gem/lib64 -L/opt/cray/mpt/5.5.0/gni/mpich2-gnu/46/lib -L/opt/xt-libsci/11.1.00/gnu/46/interlagos/lib -L/usr/lib/alps -L/apps/ela/opt/gcc/4.6.2/snos/bin/../lib/gcc/x86_64-suse-linux/4.6.2 -L/apps/ela/opt/gcc/4.6.2/snos/bin/../lib/gcc -L/apps/ela/opt/gcc/4.6.2/snos/bin/../lib/gcc/x86_64-suse-linux/4.6.2/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/apps/ela/opt/gcc/4.6.2/snos/bin/../lib/gcc/x86_64-suse-linux/4.6.2/../../.. -L/opt/cray/atp/1.4.4/lib/ /scratch/rosa/boswald/svnwork/dune-trunk/dune-common/lib/.libs/libdunecommon.a -lAtpSigHCommData -lAtpSigHandler -lscicpp_gnu -lsci_gnu_mp /opt/gcc/4.6.2/snos/lib/../lib64/libstdc++.so /opt/gcc/4.6.2/snos/lib/../lib64/libgfortran.so -lmpichf90_gnu_46 -lmpich_gnu_46 -lmpl -lxpmem -ldmapp -lugni -lpmi -lalpslli -lalpsutil -ludreg -lpthread /opt/gcc/4.6.2/snos/lib/../lib64/libgomp.so -lrt /opt/gcc/4.6.2/snos/lib/../lib64/libquadmath.so -lsuperlu_dist_2.5 -lparmetis -lmetis -lm
/apps/ela/system/bin/ld: attempted static link of dynamic object `/opt/gcc/4.6.2/snos/lib/../lib64/libstdc++.so'
collect2: ld returned 1 exit status

=======================================

ibtool: link: warning: `/apps/ela/opt/gcc/4.6.2/snos/bin/../lib/gcc/x86_64-suse-linux/4.6.2/../../../../lib64/libstdc++.la' seems to be moved
libtool: link: warning: `/apps/ela/opt/gcc/4.6.2/snos/bin/../lib/gcc/x86_64-suse-linux/4.6.2/../../../../lib64/libgfortran.la' seems to be moved
libtool: link: warning: `/apps/ela/opt/gcc/4.6.2/snos/bin/../lib/gcc/x86_64-suse-linux/4.6.2/../../../../lib64/libgomp.la' seems to be moved
libtool: link: warning: `/apps/ela/opt/gcc/4.6.2/snos/bin/../lib/gcc/x86_64-suse-linux/4.6.2/../../../../lib64/libquadmath.la' seems to be moved
libtool: link: warning: `/apps/ela/opt/gcc/4.6.2/snos/bin/../lib/gcc/x86_64-suse-linux/4.6.2/../../../../lib64/libstdc++.la' seems to be moved
libtool: link: warning: `/apps/ela/opt/gcc/4.6.2/snos/bin/../lib/gcc/x86_64-suse-linux/4.6.2/../../../../lib64/libgfortran.la' seems to be moved
libtool: link: warning: `/apps/ela/opt/gcc/4.6.2/snos/bin/../lib/gcc/x86_64-suse-linux/4.6.2/../../../../lib64/libgomp.la' seems to be moved
libtool: link: warning: `/apps/ela/opt/gcc/4.6.2/snos/bin/../lib/gcc/x86_64-suse-linux/4.6.2/../../../../lib64/libquadmath.la' seems to be moved
libtool: link: ar cru .libs/libalu2d.a  libalu2d_la-intersection.o libalu2d_la-alu2dgridfactory.o
libtool: link: ranlib .libs/libalu2d.a
libtool: link: ( cd ".libs" && rm -f "libalu2d.la" && ln -s "../libalu2d.la" "libalu2d.la" )
make[5]: Leaving directory `/scratch/rosa/boswald/svnwork/dune-trunk/dune-grid/dune/grid/alugrid/2d'





------------------------------------------------------------------------------------------------------------------
Benedikt Oswald, Dr. sc. techn., dipl. El. Ing. ETH, www.psi.ch, Computational Accelerator Scientist
Paul Scherrer  Institute (PSI), CH-5232 Villigen, Suisse, benedikt.oswald at psi.ch, +41(0)56 310 32 12
"Passion is required for any great work, and for the Revolution passion and audacity are required in big doses.", 
Ernesto 'Che' Guevara, Letter to his parents.
http://amas.web.psi.ch
------------------------------------------------------------------------------------------------------------------






More information about the Dune mailing list