[Dune] Compilation error when including #include<dune/istl/paamg/amg.hh>

Christoph Grüninger christoph.grueninger at iws.uni-stuttgart.de
Mon Feb 13 09:11:16 CET 2012


He Benedikt,
try the newest revision, sorry for breaking your code.
I was confused by the error message because the line numbers did not 
match but I think I introduced this bug in r1527.

Bye
Christoph

Am 13.02.2012 08:52, schrieb Benedikt Oswald:
> Dear Dune, after updating to the trunk this morning, cf. versions below,
> I observe aborted compilation when including
> #include<dune/istl/paamg/amg.hh>
>
> The message is as follows:
>
> mpicxx -std=c++0x -DHAVE_CONFIG_H -I. -I../../..
> -I/Users/oswald/svnwork/dune-trunk/dune-common
> -I/Users/oswald/svnwork/dune-trunk/dune-geometry
> -I/Users/oswald/svnwork/dune-trunk/dune-grid
> -I/Users/oswald/svnwork/dune-trunk/dune-istl -DMPICH_IGNORE_CXX_SEEK -O2
> -g0 --no-strict-aliasing -DHAVE_PETSC
> -I/Users/oswald/extlib/petsc/3.2-p6/openmpi/1.4.4/gcc/4.6.2/include
> -I/Users/oswald/extlib/boost/1.47/gcc/4.6.2/include
> -I/Users/oswald/extlib/rlog/svn-rev-21/gcc/4.6.2/include/
> -I/Users/oswald/svnwork/dune-trunk/dune-common
> -I/Users/oswald/svnwork/dune-trunk/dune-geometry
> -I/Users/oswald/svnwork/dune-trunk/dune-grid
> -I/Users/oswald/svnwork/dune-trunk/dune-istl -DWITH_INDEX_SETS
> -DMPICH_IGNORE_CXX_SEEK -O2 -g0 --no-strict-aliasing -DHAVE_PETSC
> -I/Users/oswald/extlib/petsc/3.2-p6/openmpi/1.4.4/gcc/4.6.2/include
> -L/Users/oswald/extlib/petsc/3.2-p6/openmpi/1.4.4/gcc/4.6.2/lib -lpetsc
> -L/Users/oswald/extlib/parmetis/3.2.0/openmpi/1.4.4/gcc/4.6.2 -lparmetis
> -framework vecLib -MT amgtest-amgtest.o -MD -MP -MF
> .deps/amgtest-amgtest.Tpo -c -o amgtest-amgtest.o `test -f 'amgtest.cc'
> || echo './'`amgtest.cc
> In file included from
> /Users/oswald/svnwork/dune-trunk/dune-istl/dune/istl/paamg/amg.hh:12:0,
> from amgtest.cc:22:
> /Users/oswald/svnwork/dune-trunk/dune-istl/dune/istl/superlu.hh:445:2:
> error: #endif without #if
> /Users/oswald/svnwork/dune-trunk/dune-istl/dune/istl/superlu.hh:446:2:
> error: #endif without #if
> /Users/oswald/svnwork/dune-trunk/dune-istl/dune/istl/superlu.hh:354:11:
> error: expected constructor, destructor, or type conversion before ‘(’ token
> /Users/oswald/svnwork/dune-trunk/dune-istl/dune/istl/superlu.hh:358:5:
> error: ‘res’ does not name a type
> /Users/oswald/svnwork/dune-trunk/dune-istl/dune/istl/superlu.hh:372:5:
> error: ‘res’ does not name a type
> /Users/oswald/svnwork/dune-trunk/dune-istl/dune/istl/superlu.hh:374:5:
> error: expected unqualified-id before ‘if’
> make[4]: *** [amgtest-amgtest.o] Error 1
> make[3]: *** [all-recursive] Error 1
> make[2]: *** [all-recursive] Error 1
> make[1]: *** [all-recursive] Error 1
> make: *** [all] Error 2
>
>
> This problem has its roots possibly in a change in the dune control
> scripts or superlu tests that
> were checked in recently ?
>
>
>
> Thanks for having a look and have a great day! Benedikt
>
>
>
>
> ================================================================
>
> odysseus:dune-trunk oswald$ ./versioninfo.sh
> Path: .
> 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: 6571
> Node Kind: directory
> Schedule: normal
> Last Changed Author: sander
> Last Changed Rev: 6571
> Last Changed Date: 2012-02-13 08:21:48 +0100 (Mon, 13 Feb 2012)
>
> Path: .
> URL: https://svn.dune-project.org/svn/dune-geometry/trunk
> Repository Root: https://svn.dune-project.org/svn/dune-geometry
> Repository UUID: e31b3757-9ccd-424d-b11c-a976522ded21
> Revision: 42
> Node Kind: directory
> Schedule: normal
> Last Changed Author: sander
> Last Changed Rev: 42
> Last Changed Date: 2012-02-07 17:06:38 +0100 (Tue, 07 Feb 2012)
>
> Path: .
> 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: 7872
> Node Kind: directory
> Schedule: normal
> Last Changed Author: gruenich
> Last Changed Rev: 7872
> Last Changed Date: 2012-02-10 16:46:25 +0100 (Fri, 10 Feb 2012)
>
> Path: .
> 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: 1527
> Node Kind: directory
> Schedule: normal
> Last Changed Author: gruenich
> Last Changed Rev: 1527
> Last Changed Date: 2012-02-12 18:38:03 +0100 (Sun, 12 Feb 2012)
>
> Path: .
> 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: 370
> Node Kind: directory
> Schedule: normal
> Last Changed Author: mnolte
> Last Changed Rev: 370
> Last Changed Date: 2012-02-10 17:08:35 +0100 (Fri, 10 Feb 2012)
>
>
> Darwin odysseus.psi.ch <http://odysseus.psi.ch> 11.3.0 Darwin Kernel
> Version 11.3.0: Thu Jan 12 18:47:41 PST 2012;
> root:xnu-1699.24.23~1/RELEASE_X86_64 x86_64
>
> odysseus:dune-trunk oswald$ mpicc --version
> gcc (GCC) 4.6.2
> Copyright (C) 2011 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.
>
>
> --------------------------------------------------------------------------------------------------------------------------------------------------------------------
> Benedikt Oswald, Dr. sc. techn., dipl. El. Ing. ETH, www.psi.ch
> <http://www.psi.ch>, Computational Accelerator Scientist,
> http://amas.web.psi.ch
> Paul Scherrer Institute (PSI), CH-5232 Villigen, Suisse,
> benedikt.oswald at psi.ch <mailto: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.
> --------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>
>
> _______________________________________________
> Dune mailing list
> Dune at dune-project.org
> http://lists.dune-project.org/mailman/listinfo/dune

-- 
Unix is simple and coherent, but it takes a genius – or at any
rate a programmer – to understand and appreciate the simplicity.
[Dennis Ritchie, 1941-2011, created C and Unix]




More information about the Dune mailing list