[Dune] Problem with the autogeneration of (dgf)gridtype.hh on OSX

Benedikt Oswald benedikt.oswald at psi.ch
Wed Apr 14 16:22:41 CEST 2010


Hi Martin and Jö, thanks again for the quick fix. It now works again!  
Always a pleasure, Benedikt


On Apr 14, 2010, at 3:49 PM, Martin Nolte wrote:

> Hi Benedikt,
>
> could you please have a look at the latest revision?
>
> Martin
>
> On 04/14/2010 02:20 PM, Jö Fahlke wrote:
>> Benedikt Oswald updated his Dune-Modules 10 Minutes ago.  Not he  
>> gets the
>> error message below.  This message suggests to me, that there is a  
>> problem
>> with the generated gridtype.hh and dgfgridtype.hh (both attached)  
>> on OSX.  If
>> look into gridtype.hh you will notice the line
>> = 
>> =====================================================================
>> -e #if defined ALUGRID_CONFORM
>> = 
>> =====================================================================
>> near the top of the file.  I suspect the generating code uses a "- 
>> e" option to
>> some program, and that this "-e" options is not portable to OSX.   
>> The program
>> might be "echo": bash apparently support "echo -e" on our Mac  
>> (bigapple),
>> while /bin/sh does not (even if that is just bash under a different  
>> name).
>>
>> Can the GridType guys please have a look?
>>
>> Thanks,
>> Jö.
>>
>> = 
>> =====================================================================
>> In file included from /Users/oswald/svnwork/dune-trunk/dune-grid/
>> dgfgridtype.hh:4,
>>                  from integration.cc:9:
>> /Users/oswald/svnwork/dune-trunk/dune-grid/gridtype.hh:12: error:
>> stray '#' in program
>> In file included from /Users/oswald/svnwork/dune-trunk/dune-grid/
>> dgfgridtype.hh:4,
>>                  from integration.cc:9:
>> /Users/oswald/svnwork/dune-trunk/dune-grid/gridtype.hh:92:6: error:
>> #error "Ambiguous definition of GRIDTYPE."
>> /Users/oswald/svnwork/dune-trunk/dune-grid/gridtype.hh:122:2: error:
>> #endif without #if
>> In file included from integration.cc:9:
>> /Users/oswald/svnwork/dune-trunk/dune-grid/dgfgridtype.hh:6: error:
>> stray '#' in program
>> In file included from integration.cc:9:
>> /Users/oswald/svnwork/dune-trunk/dune-grid/dgfgridtype.hh:31:2:  
>> error:
>> #endif without #if
>> In file included from /Users/oswald/svnwork/dune-trunk/dune-grid/
>> dgfgridtype.hh:4,
>>                  from integration.cc:9:
>> /Users/oswald/svnwork/dune-trunk/dune-grid/gridtype.hh:12: error:
>> expected unqualified-id before '-' token
>> In file included from /Users/oswald/svnwork/dune-trunk/dune-grid/
>> dgfgridtype.hh:4,
>>                  from integration.cc:9:
>> /Users/oswald/svnwork/dune-trunk/dune-grid/gridtype.hh:102: error:
>> conflicting declaration 'typedef class Dune::YaspGrid<2>
>> Dune::GridSelector::GridType'
>> /Users/oswald/svnwork/dune-trunk/dune-grid/gridtype.hh:21: error:
>> 'Dune::GridSelector::GridType' has a previous declaration as 'typedef
>> struct Dune::ALUConformGrid<2, 2>  Dune::GridSelector::GridType'
>> In file included from integration.cc:9:
>> /Users/oswald/svnwork/dune-trunk/dune-grid/dgfgridtype.hh:6: error:
>> expected unqualified-id before '-' token
>> /Users/oswald/svnwork/dune-trunk/dune-grid/dune/grid/io/file/ 
>> dgfparser/
>> dgfalu.hh: In member function 'int
>> Dune::DGFBaseFactory<GridType>::boundaryId(const Intersection&) const
>> [with Intersection = Dune::Intersection<const Dune::ALU2dGrid<2, 2,
>> triangle>, Dune::LeafIntersectionWrapper>, G =  
>> Dune::ALUConformGrid<2,
>> 2>]':
>> /Users/oswald/svnwork/dune-trunk/dune-grid/dune/grid/io/file/ 
>> dgfparser/
>> dgfparser.hh:526:   instantiated from 'void
>> Dune::GridPtr<GridType>::initialize(Dune::DGFGridFactory<GridType>&)
>> [with GridType = Dune::ALUConformGrid<2, 2>]'
>> /Users/oswald/svnwork/dune-trunk/dune-grid/dune/grid/io/file/ 
>> dgfparser/
>> dgfparser.hh:342:   instantiated from
>> 'Dune::GridPtr<GridType>::GridPtr(const std::string&,
>> ompi_communicator_t*) [with GridType = Dune::ALUConformGrid<2, 2>]'
>> integration.cc:76:   instantiated from here
>> /Users/oswald/svnwork/dune-trunk/dune-grid/dune/grid/io/file/ 
>> dgfparser/
>> dgfalu.hh:94: warning: 'boundaryId' is deprecated (declared at / 
>> Users/
>> oswald/svnwork/dune-trunk/dune-grid/dune/grid/common/intersection.hh:
>> 223)
>> 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!
>> = 
>> =====================================================================
>>
>>
>> = 
>> =====================================================================
>> pcp029897:dune-trunk oswald$ svn info dune-common/
>> Path: dune-common
>> 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: 5974
>> Node Kind: directory
>> Schedule: normal
>> Last Changed Author: joe
>> Last Changed Rev: 5973
>> Last Changed Date: 2010-04-13 17:12:54 +0200 (Tue, 13 Apr 2010)
>>
>> pcp029897: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: 6602
>> Node Kind: directory
>> Schedule: normal
>> Last Changed Author: mnolte
>> Last Changed Rev: 6602
>> Last Changed Date: 2010-04-12 13:50:34 +0200 (Mon, 12 Apr 2010)
>>
>> pcp029897: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: 1199
>> Node Kind: directory
>> Schedule: normal
>> Last Changed Author: christi
>> Last Changed Rev: 1199
>> Last Changed Date: 2010-04-09 14:40:04 +0200 (Fri, 09 Apr 2010)
>>
>> pcp029897: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: 305
>> Node Kind: directory
>> Schedule: normal
>> Last Changed Author: robertk
>> Last Changed Rev: 305
>> Last Changed Date: 2010-04-14 10:04:21 +0200 (Wed, 14 Apr 2010)
>> = 
>> =====================================================================
>>
>>
>> ----- End forwarded message -----
>>
>>
>>
>>
>> _______________________________________________
>> Dune mailing list
>> Dune at dune-project.org
>> http://lists.dune-project.org/mailman/listinfo/dune
>
> -- 
> Martin Nolte <nolte at mathematik.uni-freiburg.de>
>
> Universität Freiburg                                   phone:  
> +49-761-203-5642
> Abteilung für angewandte Mathematik                    fax:    
> +49-761-203-5632
> Hermann-Herder-Straße 10
> 79104 Freiburg, Germany

--------------------------------------------------------------------------------------------------------------------------------------------------------------------
Benedikt Oswald, Dr. sc. techn., dipl. El. Ing. ETH, www.psi.ch,  
Computational Accelerator Scientist, http://amas.web.psi.ch
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.
--------------------------------------------------------------------------------------------------------------------------------------------------------------------





More information about the Dune mailing list