[Dune] Problems compiling dune-grid 2.2 with alugrid support using gcc 4.8.0 on mac

Bath Uni e.mueller at bath.ac.uk
Thu Jun 21 21:32:04 CEST 2012


Dear dune-list,

I built gcc 4.6.3 from the source last night on my macbook and if I use this to compile DUNE it all works fine (including ALUGrid 1.50), so it must be an issue with gcc 4.8.

Eike

On 16 Jun 2012, at 16:50, Eike Mueller wrote:

> 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
> 
> <config.log>_______________________________________________
> Dune mailing list
> Dune at dune-project.org
> http://lists.dune-project.org/mailman/listinfo/dune





More information about the Dune mailing list