[Dune] Problems compiling dune-grid 2.2 with alugrid support using gcc 4.8.0 on mac
Andreas Lauser
andreas.lauser at iws.uni-stuttgart.de
Fri Jun 22 10:47:47 CEST 2012
Hi,
I had this on clang as well it's fixed in trunk, but has not been ported to the
2.2 release branch (yet?). To fix it, add a '<<' in front of the __FILE__
macro.
cheers
Andreas
Am Samstag, 16. Juni 2012, 16:50:17 schrieb Eike Mueller:
> Dear dune-list,
>
> I just tried to compile dune-grid (from the 2.2 release branch) on my new
> macbook with gcc version 4.8, more precisely:
>
> eikemueller at Eikes-MacBook-Pro $ gcc --version
> gcc (GCC) 4.8.0 20120603 (experimental)
> Copyright (C) 2012 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.
>
>
> it does not seem to find alugrid and prints out the following warning:
>
>
> […]
> checking ALUGrid version >= 1.50... ./configure: line 34448:
> --atleast-version=1.50: command not found yes (ALUGrid-1.50)
> checking alugrid_serial.h usability... no
> checking alugrid_serial.h presence... yes
> configure: WARNING: alugrid_serial.h: present but cannot be compiled
> configure: WARNING: alugrid_serial.h: check for missing prerequisite
> headers? configure: WARNING: alugrid_serial.h: see the Autoconf
> documentation configure: WARNING: alugrid_serial.h: section "Present
> But Cannot Be Compiled" configure: WARNING: alugrid_serial.h: proceeding
> with the compiler's result configure: WARNING: ##
> ------------------------------------ ## configure: WARNING: ## Report
> this to dune at dune-project.org ## configure: WARNING: ##
> ------------------------------------ ## checking for alugrid_serial.h... no
> configure: WARNING: alugrid_serial.h not found in
> /usr/local/alugrid-1.50/include […]
>
> I attach config.log, the relevant lines appear to be
>
> […]
> In file included from
> /usr/local/alugrid-1.50/include/alugrid_serial.h:118:0, from
> conftest.cpp:103:
> /usr/local/alugrid-1.50/include/serial/gitter_tetra_top.h: In member
> function 'ALUGridSpace::TetraTop<A>::myhface3_t*
> ALUGridSpace::TetraTop<A>::subface3(int, int)':
> /usr/local/alugrid-1.50/include/serial/gitter_tetra_top.h:1294:97: error:
> unable to find string literal operator 'operator"" __FILE__' cerr <<
> "**FEHLER (FATAL): Falsche Verfeinerungsregel [" <<
> this->myhface3(i)->getrule() << "] in "__FILE__ << " " << __LINE__ << endl
> ;
>
> ^
> In file included from
> /usr/local/alugrid-1.50/include/alugrid_serial.h:118:0, from
> conftest.cpp:103:
> /usr/local/alugrid-1.50/include/serial/gitter_tetra_top.h: In member
> function 'ALUGridSpace::Periodic3Top<A>::myhface3_t*
> ALUGridSpace::Periodic3Top<A>::subface3(int, int)':
> /usr/local/alugrid-1.50/include/serial/gitter_tetra_top.h:2062:97: error:
> unable to find string literal operator 'operator"" __FILE__' cerr <<
> "**FEHLER (FATAL): Falsche Verfeinerungsregel [" <<
> this->myhface3(i)->getrule() << "] in "__FILE__ << " " << __LINE__ << endl
> ; […]
>
> everything else is absolutely fine, and the entire dune builds and installs,
> I would just like to use alugrid…
>
> I suspect this is an issue with the compiler (i.e. the version is too new),
> as it works on my uni machine where I use an older version of gcc, but I
> thought I check in case someone on the list has an idea how to fix this.
>
> Thanks a lot,
>
> Eike
--
Andreas Lauser
Department of Hydromechanics and Modelling of Hydrosystems
University of Stuttgart
Pfaffenwaldring 61
D-70569 Stuttgart
Phone: (+49) 711 685-64719
Fax: (+49) 711 685-60430
www.hydrosys.uni-stuttgart.de
More information about the Dune
mailing list