[Dune] dunecontrol wants to link libstdc++.so although --enable-static and --disable-shared are specified
Oswald Benedikt
Benedikt.Oswald at psi.ch
Thu Mar 4 12:12:50 CET 2010
Dear Dune, dunecontrol wants to link libstdc++.so although --enable-static and --disable-shared are specified
in my opts files. I do not really understand why this happens. It also want to use gmp which I installed as a static library.
First, the error message and further below versions, platform, compilers.
Thanks, for looking into this. Benedikt
---------------
make[2]: Entering directory `/nfs/xt3-homes/users/boswald/svnwork/dune-trunk/dune-grid-howto'
if CC -std=c++0x -DHAVE_CONFIG_H -I. -I. -I. -I/users/boswald/svnwork/dune-trunk/dune-common -I/users/boswald/svnwork/dune-trunk/dune-grid -I/users/boswald/svnwork/dune-trunk/dune-istl -I. -DMPICH_IGNORE_CXX_SEEK -O2 -DNDEBUG -ffast-math -fomit-frame-pointer -static -DMPICH_SKIP_MPICXX -DENABLE_MPI=1 -DMPICH_IGNORE_CXX_SEEK -O2 -DNDEBUG -ffast-math -fomit-frame-pointer -static -I/users/boswald/svnwork/dune-trunk/dune-common -I/users/boswald/svnwork/dune-trunk/dune-grid -DMPICH_SKIP_MPICXX -DENABLE_MPI=1 -I/users/boswald/extlib/ParMetis-3.1.1 -DENABLE_PARMETIS=1 -I/users/boswald/svnwork/dune-trunk/dune-istl -DMPICH_SKIP_MPICXX -DENABLE_MPI=1 -I/users/boswald/svnwork/dune-trunk/dune-common -DGRIDDIM=2 -DWORLDDIM=2 -DYASPGRID -DMPICH_SKIP_MPICXX -DENABLE_MPI=1 -I/users/boswald/extlib/ALUGrid-1.22/include -I/users/boswald/extlib/ALUGrid-1.22/include/serial -I/users/boswald/extlib/ALUGrid-1.22/include/duneinterface -DENABLE_ALUGRID -I/users/boswald/extlib/ALUGrid-1.22/include/parallel -I/users/boswald/extlib/gmp-5.0.1/include -DENABLE_GMP=1 -I/users/boswald/svnwork/dune-trunk/dune-grid -I/users/boswald/svnwork/dune-trunk/dune-istl -DMPICH_IGNORE_CXX_SEEK -O2 -DNDEBUG -ffast-math -fomit-frame-pointer -static -MT gettingstarted-gettingstarted.o -MD -MP -MF ".deps/gettingstarted-gettingstarted.Tpo" -c -o gettingstarted-gettingstarted.o `test -f 'gettingstarted.cc' || echo './'`gettingstarted.cc; \
then mv -f ".deps/gettingstarted-gettingstarted.Tpo" ".deps/gettingstarted-gettingstarted.Po"; else rm -f ".deps/gettingstarted-gettingstarted.Tpo"; exit 1; fi
/opt/cray/xt-asyncpe/3.5/bin/CC: INFO: linux target is being used
/bin/sh ./libtool --tag=CXX --mode=link CC -std=c++0x -DMPICH_IGNORE_CXX_SEEK -O2 -DNDEBUG -ffast-math -fomit-frame-pointer -static -static -o gettingstarted gettingstarted-gettingstarted.o -L/users/boswald/svnwork/dune-trunk/dune-grid/lib -ldunegrid -L/users/boswald/svnwork/dune-trunk/dune-common/lib -ldunecommon -static -L/users/boswald/svnwork/dune-trunk/dune-grid/lib -ldunegrid -L/users/boswald/extlib/gmp-5.0.1/lib -lgmpxx -lgmp -L/users/boswald/extlib/ALUGrid-1.22/lib -lalugrid -L/users/boswald/svnwork/dune-trunk/dune-common/lib -ldunecommon -L/users/boswald/extlib/ParMetis-3.1.1 -lparmetis -lmetis -lm -L/users/boswald/svnwork/dune-trunk/dune-grid/lib -ldunegrid -L/users/boswald/svnwork/dune-trunk/dune-common/lib -ldunecommon -L/users/boswald/svnwork/dune-trunk/dune-common/lib -ldunecommon -L/users/boswald/svnwork/dune-trunk/dune-grid/lib -ldunegrid -L/users/boswald/svnwork/dune-trunk/dune-common/lib -ldunecommon -lm -lm
CC -std=c++0x -DMPICH_IGNORE_CXX_SEEK -O2 -DNDEBUG -ffast-math -fomit-frame-pointer -o gettingstarted gettingstarted-gettingstarted.o -L/users/boswald/svnwork/dune-trunk/dune-grid/lib -L/users/boswald/svnwork/dune-trunk/dune-common/lib -L/users/boswald/extlib/gmp-5.0.1/lib /users/boswald/extlib/gmp-5.0.1/lib/libgmpxx.a /opt/gcc/4.4.1/snos/lib/../lib64/libstdc++.so /users/boswald/extlib/gmp-5.0.1/lib/libgmp.a -L/users/boswald/extlib/ALUGrid-1.22/lib -L/users/boswald/extlib/ParMetis-3.1.1 /users/boswald/svnwork/dune-trunk/dune-grid/lib/.libs/libdunegrid.a /users/boswald/extlib/ALUGrid-1.22/lib/libalugrid.a -lparmetis -lmetis /users/boswald/svnwork/dune-trunk/dune-common/lib/.libs/libdunecommon.a -lm
/opt/cray/xt-asyncpe/3.5/bin/CC: INFO: linux target is being used
/usr/bin/ld: attempted static link of dynamic object `/opt/gcc/4.4.1/snos/lib/../lib64/libstdc++.so'
collect2: ld returned 1 exit status
----------------
Platform: cray XT5
compiler: gnu gcc
/opt/cray/xt-asyncpe/3.5/bin/CC: INFO: linux target is being used
g++ (GCC) 4.4.1 20090722 (Cray Inc.)
Copyright (C) 2009 Free Software Foundation, Inc.
The dune versions are given below:
boswald at rosa1:~/svnwork/dune-trunk> svn info ./dune-common/
Path: dune-common
URL: https://svn.dune-project.org/svn/dune-common/trunk
Repository Root: https://svn.dune-project.org/svn/dune-common
Repository UUID: 419231ca-4411-0410-aba2-fc6cf8c4f609
Revision: 5913
Node Kind: directory
Schedule: normal
Last Changed Author: robertk
Last Changed Rev: 5913
Last Changed Date: 2010-03-01 16:37:30 +0100 (Mon, 01 Mar 2010)
boswald at rosa1:~/svnwork/dune-trunk> svn info ./dune-istl/
Path: dune-istl
URL: https://svn.dune-project.org/svn/dune-istl/trunk
Repository Root: https://svn.dune-project.org/svn/dune-istl
Repository UUID: 8c7282f0-4411-0410-8e4f-cdd3e049afb8
Revision: 1180
Node Kind: directory
Schedule: normal
Last Changed Author: joe
Last Changed Rev: 1180
Last Changed Date: 2010-02-23 17:40:36 +0100 (Tue, 23 Feb 2010)
boswald at rosa1:~/svnwork/dune-trunk> svn info ./dune-grid
Path: dune-grid
URL: https://svn.dune-project.org/svn/dune-grid/trunk
Repository Root: https://svn.dune-project.org/svn/dune-grid
Repository UUID: f82f27de-4411-0410-b156-930a902cda50
Revision: 6368
Node Kind: directory
Schedule: normal
Last Changed Author: mnolte
Last Changed Rev: 6368
Last Changed Date: 2010-03-02 13:08:02 +0100 (Tue, 02 Mar 2010)
boswald at rosa1:~/svnwork/dune-trunk> svn info ./dune-grid-howto/
Path: dune-grid-howto
URL: https://svn.dune-project.org/svn/dune-grid-howto/trunk
Repository Root: https://svn.dune-project.org/svn/dune-grid-howto
Repository UUID: 971b7fa1-7d12-0410-b1b7-9c127676b1f7
Revision: 301
Node Kind: directory
Schedule: normal
Last Changed Author: mdroh_01
Last Changed Rev: 300
Last Changed Date: 2010-02-18 13:23:55 +0100 (Thu, 18 Feb 2010)
------------------------------------------------------------------------------------------------------------------
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