[Dune] dune fails to build

Andreas Dedner dedner at mathematik.uni-freiburg.de
Wed Dec 9 13:07:37 CET 2009


Ok, so it is as I expected: the default setting of GRIDDIM in the 
CXXFLAGS instead of
by using the with-grid-dim config flag in one part of the problem, the 
other is that
the howto expects a default for the gridtype.
I am figuring out a solution.
Andreas



Oswald Benedikt wrote:
> Hi Andreas, here's more information:
>
> 1. compiler: 
>
> oswald$ mpicxx --version
> i686-apple-darwin9-g++-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5574)
> Copyright (C) 2007 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.  There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>
> oswald$ mpicc --version
> i686-apple-darwin9-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5574)
> Copyright (C) 2007 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.  There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>
> 2. options:
>
> CONFIGURE_FLAGS="CXX='mpicxx' CC='mpicc' LD='mpicxx'
>                                         CXXFLAGS='-DMPICH_IGNORE_CXX_SEEK -DGRIDDIM=3 -O2'
>                                         CPPFLAGS='-DMPICH_IGNORE_CXX_SEEK -DGRIDDIM=3 -O2'
>                                         LDFLAGS=' '
>                                         --enable-experimental-hades3deld
>                         --disable-documentation
>                         --enable-parallel
>                                         --enable-debug-output
>                         --prefix='$HOME/ownlib/hades'
>                         --with-boost='$HOME/extlib/boost-trunk'
>                         --with-metis='$HOME/extlib/metis-4.0'
>                         --with-rlog='$HOME/extlib/rlog-trunk'
>                         --with-alugrid='$HOME/extlib/ALUGrid-2.0rc2'"
>
>
>
>
>
> 3. config files are attached
>
>
> Thanks! Benedikt
>
>
>
> -----Original Message-----
> From: Andreas Dedner [mailto:dedner at mathematik.uni-freiburg.de]
> Sent: Wed 12/9/2009 12:56
> To: Oswald Benedikt
> Cc: dune at dune-project.org
> Subject: Re: [Dune] dune fails to build
>  
> Hi Benedikt,
>
> it would be nice of you if you could add a complete set of information.
> What compiler, what where you configure options...
> In case case your CXXFLAGS would have really helped me to understand the 
> problem -
> with the information you gave it took me quite some time to reproduce 
> and undersatand
> the problem which otherwise could have been reduced to a few minutes.
>
> The problem is that the howto expects some default value for the 
> gridtype if none is
> provided during configure (I have to guess that you do not have the flag
> with-grid-type?)
> You seem (I am guessing again) to have added a default in the CXXFLAGS 
> and we ssem
> to have broken that possibility.  I am looking into it
>
> At the moment the solution would be to add the flags
>   --with-grid-dim=2  \
>   --with-world=dim=2 \
>   --with-grid-type=YASPGRID \
> to the config.opts file - but that should not be the final solution of 
> course.
>
> Andreas
>
> PS: for example the config.log file in dune-grid-howto attached, would 
> have given me
> the information I needed.
> Oswald Benedikt wrote:
>   
>> Dear Dune developers, the current svn version fails to build in dune-grid-howto,
>> cf. the error and the used svn versions below.
>>
>> Can you have a look at this problem ? Thanks! Benedikt
>>
>>
>>
>>
>>
>>
>> /bin/sh ./libtool --tag=CXX   --mode=link mpicxx -D_REENTRANT -I/Users/oswald/extlib/openmpi-1.3.3/include -DMPIPP_H -DENABLE_MPI=1 -DMPICH_IGNORE_CXX_SEEK -DGRIDDIM=3 -O2  -I/Users/oswald/svnwork/dune-trunk/dune-common -DGRIDDIM=0 -DWORLDDIM=0 -DNOGRID -I/Users/oswald/extlib/ALUGrid-2.0rc2/include -I/Users/oswald/extlib/ALUGrid-2.0rc2/include/serial -I/Users/oswald/extlib/ALUGrid-2.0rc2/include/duneinterface -DENABLE_ALUGRID -I/Users/oswald/extlib/ALUGrid-2.0rc2/include/parallel -I/Users/oswald/svnwork/dune-trunk/dune-grid -DMPICH_IGNORE_CXX_SEEK -DGRIDDIM=3 -O2   -o traversal traversal-traversal.o -L/Users/oswald/svnwork/dune-trunk/dune-common/lib -L/Users/oswald/svnwork/dune-trunk/dune-grid/lib -ldunecommon   -ldunecommon -ldunegrid -L/Users/oswald/svnwork/dune-trunk/dune-common/lib -L/Users/oswald/extlib/ALUGrid-2.0rc2/lib -L/Users/oswald/extlib/openmpi-1.3.3/lib -lmpi -lopen-rte -lopen-pal -lutil -L/Users/oswald/svnwork/dune-trunk/dune-grid/lib -lalugrid -L/Users/oswald!
>>  /extlib/openmpi-1.3.3/lib -lmpi -lopen-rte -lopen-pal -lutil  -L/Users/oswald/extlib/openmpi-1.3.3/lib -lmpi -lopen-rte -lopen-pal -lutil  
>> mpicxx -D_REENTRANT -I/Users/oswald/extlib/openmpi-1.3.3/include -DMPIPP_H -DENABLE_MPI=1 -DMPICH_IGNORE_CXX_SEEK -DGRIDDIM=3 -O2 -I/Users/oswald/svnwork/dune-trunk/dune-common -DGRIDDIM=0 -DWORLDDIM=0 -DNOGRID -I/Users/oswald/extlib/ALUGrid-2.0rc2/include -I/Users/oswald/extlib/ALUGrid-2.0rc2/include/serial -I/Users/oswald/extlib/ALUGrid-2.0rc2/include/duneinterface -DENABLE_ALUGRID -I/Users/oswald/extlib/ALUGrid-2.0rc2/include/parallel -I/Users/oswald/svnwork/dune-trunk/dune-grid -DMPICH_IGNORE_CXX_SEEK -DGRIDDIM=3 -O2 -o traversal traversal-traversal.o -Wl,-bind_at_load  -L/Users/oswald/svnwork/dune-trunk/dune-common/lib -L/Users/oswald/svnwork/dune-trunk/dune-grid/lib /Users/oswald/svnwork/dune-trunk/dune-grid/lib/.libs/libdunegrid.a /Users/oswald/svnwork/dune-trunk/dune-common/lib/.libs/libdunecommon.a -lm -L/Users/oswald/extlib/ALUGrid-2.0rc2/lib -L/Users/oswald/extlib/openmpi-1.3.3/lib /Users/oswald/extlib/ALUGrid-2.0rc2/lib/libalugrid.a -L/Users/oswald/extlib/ParMeti!
>>  s-3.1.1 -lparmetis -lmetis /Users/oswald/extlib/openmpi-1.3.3/lib/libmpi.dylib /Users/oswald/extlib/openmpi-1.3.3/lib/libopen-rte.dylib /Users/oswald/extlib/openmpi-1.3.3/lib/libopen-pal.dylib -lutil
>> mpicxx -DHAVE_CONFIG_H -I.  -I/Users/oswald/svnwork/dune-trunk/dune-common -I/Users/oswald/svnwork/dune-trunk/dune-grid -I. -DMPICH_IGNORE_CXX_SEEK -DGRIDDIM=3 -O2 -D_REENTRANT -I/Users/oswald/extlib/openmpi-1.3.3/include -DMPIPP_H -DENABLE_MPI=1 -DMPICH_IGNORE_CXX_SEEK -DGRIDDIM=3 -O2  -I/Users/oswald/svnwork/dune-trunk/dune-common -DGRIDDIM=0 -DWORLDDIM=0 -DNOGRID -I/Users/oswald/extlib/ALUGrid-2.0rc2/include -I/Users/oswald/extlib/ALUGrid-2.0rc2/include/serial -I/Users/oswald/extlib/ALUGrid-2.0rc2/include/duneinterface -DENABLE_ALUGRID -I/Users/oswald/extlib/ALUGrid-2.0rc2/include/parallel -I/Users/oswald/svnwork/dune-trunk/dune-grid -DMPICH_IGNORE_CXX_SEEK -DGRIDDIM=3 -O2 -MT integration-integration.o -MD -MP -MF .deps/integration-integration.Tpo -c -o integration-integration.o `test -f 'integration.cc' || echo './'`integration.cc
>> <command-line>: warning: "GRIDDIM" redefined
>> <command-line>: warning: this is the location of the previous definition
>> <command-line>: warning: "GRIDDIM" redefined
>> <command-line>: warning: this is the location of the previous definition
>> In file included from /Users/oswald/svnwork/dune-trunk/dune-grid/dune/grid/utility/gridtype.hh:85,
>>                  from /Users/oswald/svnwork/dune-trunk/dune-grid/dune/grid/io/file/dgfparser/dgfgridtype.hh:87,
>>                  from integration.cc:9:
>> /Users/oswald/svnwork/dune-trunk/dune-grid/dune/grid/utility/griddim.hh:39:4: error: #error "WORLDDIM < GRIDDIM does not make sense."
>> In file included from /Users/oswald/svnwork/dune-trunk/dune-grid/dune/grid/io/file/dgfparser/dgfgridtype.hh:87,
>>                  from integration.cc:9:
>> /Users/oswald/svnwork/dune-trunk/dune-grid/dune/grid/utility/gridtype.hh:272:6: error: #error "No grid type selected, use GRIDTYPE=... or use the with-gridtype switch during configure to set a default."
>> In file included from /Users/oswald/svnwork/dune-trunk/dune-grid/dune/grid/io/file/dgfparser/dgfgridtype.hh:87,
>>                  from integration.cc:9:
>> /Users/oswald/svnwork/dune-trunk/dune-grid/dune/grid/utility/gridtype.hh:276: error: 'GridType' in namespace 'Dune::GridSelector' does not name a type
>> integration.cc: In function 'int main(int, char**)':
>> integration.cc:69: error: 'GridType' has not been declared
>> integration.cc:72: error: 'GridPtr' was not declared in this scope
>> integration.cc:72: error: 'GridType' was not declared in this scope
>> integration.cc:72: error: 'gridPtr' was not declared in this scope
>> make[2]: *** [integration-integration.o] Error 1
>> make[1]: *** [all-recursive] Error 1
>> make: *** [all] Error 2
>> --- Failed to build dune-grid-howto ---
>> Execution of dunecontrol terminated due to errors!
>>
>>
>> =============================================
>>
>>
>>
>>
>> RL: 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: 5763
>> Node Kind: directory
>> Schedule: normal
>> Last Changed Author: christi
>> Last Changed Rev: 5763
>> Last Changed Date: 2009-12-08 15:50:58 +0100 (Tue, 08 Dec 2009)
>>
>> null-002500ef693e:dune-trunk oswald$ 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: 6057
>> Node Kind: directory
>> Schedule: normal
>> Last Changed Author: mnolte
>> Last Changed Rev: 6057
>> Last Changed Date: 2009-12-09 09:15:37 +0100 (Wed, 09 Dec 2009)
>>
>> null-002500ef693e:dune-trunk oswald$ 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: 1143
>> Node Kind: directory
>> Schedule: normal
>> Last Changed Author: mblatt
>> Last Changed Rev: 1143
>> Last Changed Date: 2009-12-04 23:13:31 +0100 (Fri, 04 Dec 2009)
>>
>> null-002500ef693e:dune-trunk oswald$ 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: 268
>> Node Kind: directory
>> Schedule: normal
>> Last Changed Author: sander
>> Last Changed Rev: 268
>> Last Changed Date: 2009-11-30 17:27:30 +0100 (Mon, 30 Nov 2009)
>>
>>
>> ------------------------------------------------------------------------------------------------------------------
>> 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
>> ------------------------------------------------------------------------------------------------------------------
>>
>>
>>
>> _______________________________________________
>> Dune mailing list
>> Dune at dune-project.org
>> http://lists.dune-project.org/mailman/listinfo/dune
>>   
>>     
>
>
>
>   






More information about the Dune mailing list