#894 g++ name clashes due to dune-grid/utility dir
Metadata
Property | Value |
---|---|
Reported by | Markus Blatt (markus@dr-blatt.de) |
Reported at | Mar 15, 2011 09:52 |
Type | Bug Report |
Version | 2.1 |
Operating System | Unspecified / All |
Last edited by | Christoph Grüninger (gruenich@iws.uni-stuttgart.de) |
Last edited at | Jul 7, 2012 14:14 |
Closed by | Christoph Grüninger (gruenich@iws.uni-stuttgart.de) |
Closed at | Jul 7, 2012 14:14 |
Closed in version | 2.2 |
Resolution | Fixed |
Comment | Nobody complains about the current solution. |
Description
Hi,
In our pool (Debian etch) there appear a lot of name clashes when compiling some applications. The problem is that dune-grid/. is in the include path and has a sundirectory named utility which coincides with the name of a std header. This happens with both g++-4.1.3 20080704 and g++-4.3.2-1.1. While this is apparently a g++ bug and the installation is way old, we need to use it next week.
g++-4.1 -DHAVE_CONFIG_H -I. -I/export/home/mblatt/course-software/dune-pdelab-howto -I/export/home/mblatt/course-software/dune-common -I/expor
t/home/mblatt/course-software/dune-grid -I/export/home/mblatt/course-software/dune-istl -I/export/home/mblatt/course-software/dune-localfunctio
ns -I/export/home/mblatt/course-software/dune-pdelab -I/usr/include/superlu -DENABLE_SUPERLU -DUSE_STDARG -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1
-DHAVE_UNISTD_H=1 -DHAVE_STDARG_H=1 -DUSE_STDARG=1 -DMALLOC_RET_VOID=1 -I/usr/lib/mpich/include -DMPICH_SKIP_MPICXX -DENABLE_MPI=1 -I/export/ho
me/mblatt/opt/ug-install/include/ug -DENABLE_UG -I/export/home/mblatt/opt/alberta/include/alberta -DALBERTA_DIM=2 -DENABLE_ALBERTA -DUSE_STD
ARG -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDARG_H=1 -DUSE_STDARG=1 -DMALLOC_RET_VOID=1 -I/usr/lib/mpich/include -DMPICH
_SKIP_MPICXX -DENABLE_MPI=1 -I/export/home/mblatt/opt/alugrid/include -I/export/home/mblatt/opt/alugrid/include/serial -I/export/home/mblatt/op
t/alugrid/include/duneinterface -DENABLE_ALUGRID -I/export/home/mblatt/opt/alugrid/include/parallel -O0 -g -Wall -MT reentrantcorner-reentrant
corner.o -MD -MP -MF .deps/reentrantcorner-reentrantcorner.Tpo -c -o reentrantcorner-reentrantcorner.o test -f 'reentrantcorner.cc' || echo '. /'
reentrantcorner.cc
In file included from reentrantcorner.cc:40:
/export/home/mblatt/course-software/dune-pdelab/dune/pdelab/backend/istlmatrixbackend.hh:5:18: error: /export/home/mblatt/course-software/dune-
grid/utility: Is a directory
I would propose to rename the directory, but I do not know how big the impact on the rest of DUNE is. BTW What is it for anyway? Maybe someone can enlighten me in this regard!
Opinions?