[Dune] [Fwd: Re: ALUGrid-1.13 on Mac OS X, problems configuring]

Kaulmann Sven sven.kaulmann at uni-muenster.de
Fri Feb 6 21:27:44 CET 2009


Benedict told me this afternoon to try and comment

  void get_memory(struct mallinfo &old_info);
  void get_memory_diff(struct mallinfo &old_info);
  void write_memory(ostream &out,char *header);
  void write_memory(ostream &out,char *header,struct mallinfo  
&old_info);
  void write_memory_diff(ostream &out,char *header,struct mallinfo
&old_info);

out in alu2d/handle.cc and alu2d/handle.h and now it works.

Thanks and greetings,
Sven Kaulmann
____________________



Am 06.02.2009 um 22:19 schrieb Andreas Dedner:

> I am workling with Benedict on this and we have made some progress...
>
> Sven Kaulmann wrote:
>> Hi there,
>>
>> I am having exactly the same problem (also on Mac OS X 10.5.6) and  
>> for
>> me removing the include was no solution, the error stays the same.
>>
>> Greetings,
>> Sven Kaulmann
>> Universitaet Muenster
>>
>>
>> Am 06.02.2009 um 12:36 schrieb Rene Milk:
>>
>>>
>>>
>>> could you try, if the code compiles if you remove the
>>>
>>> #include <malloc.h>
>>>
>>> from the file alu2d/handle.h ?
>>>
>>> If g++ it seems to be ok.
>>>
>>> Regards
>>>
>>> Robert
>>> -- =
>>>
>>>
>>>  Robert Kl=F6fkorn           <robertk at mathematik.uni-freiburg.de>
>>>
>>>  Mathematisches Institut              Tel: +49 (0) 761 203 5631
>>>  Abt. f=FCr Angewandte Mathematik       Fax: +49 (0) 761 203 5632
>>>  Universit=E4t Freiburg
>>>  Hermann-Herder-Str. 10
>>>  79104 Freiburg
>>>
>>>  http://www.mathematik.uni-freiburg.de/IAM/homepages/robertk
>>>
>>> _______________________________________________
>>> Dune mailing list
>>> Dune at dune-project.org
>>> http://lists.dune-project.org/mailman/listinfo/dune
>>>
>>>
>>>
>>>
>>>
>>> although it might be slightly off-topic, I nevertheless would like
>>> to ask for advice with compiling ALUGrid-1.13 on Mac OS X, 10.5.6:
>>>
>>> I have successfully managed to configure ALUGrid on mac os x,
>>> with one problem:
>>>
>>> The configure only succeeded if the additional directory
>>> /usr/include/malloc was given in the CPPFLAGS, without
>>> this option it would not succeed. It seems that this is standard
>>> on Mac, but the configure would not find it ?
>>>
>>> The second, more severe problem is:
>>>
>>>
>>> seraphor-129129145087:ALUGrid-1.13 benediktoswald$ make
>>> make  all-recursive
>>> Making all in src
>>> Making all in serial
>>> make[3]: Nothing to be done for `all'.
>>> Making all in parallel
>>> make[3]: Nothing to be done for `all'.
>>> Making all in duneinterface
>>> make[3]: Nothing to be done for `all'.
>>> Making all in alu2d
>>> make[3]: Nothing to be done for `all'.
>>> /bin/sh ../libtool --tag=CXX   --mode=compile gcc-4.2 - 
>>> DHAVE_CONFIG_H -I. -I..  -I/usr/include/malloc   -I/Users/ 
>>> benediktoswald/extlib/metis-4.0/Lib -I./serial -I./parallel -I./ 
>>> duneinterface -I./alu2d  -I/usr/include/malloc   -g -O2 -MT  
>>> alugrid_serial.lo -MD -MP -MF .deps/alugrid_serial.Tpo -c -o  
>>> alugrid_serial.lo alugrid_serial.cc
>>> gcc-4.2 -DHAVE_CONFIG_H -I. -I.. -I/usr/include/malloc -I/Users/ 
>>> benediktoswald/extlib/metis-4.0/Lib -I./serial -I./parallel -I./ 
>>> duneinterface -I./alu2d -I/usr/include/malloc -g -O2 -MT  
>>> alugrid_serial.lo -MD -MP -MF .deps/alugrid_serial.Tpo -c  
>>> alugrid_serial.cc -o alugrid_serial.o
>>> alugrid_serial.cc:33:2: warning: #warning -- Compiling ALUGrid  
>>> code in debug mode!!! Use -DNDEBUG to get more optimized code!!!
>>> mv -f .deps/alugrid_serial.Tpo .deps/alugrid_serial.Plo
>>> /bin/sh ../libtool --tag=CXX   --mode=compile gcc-4.2 - 
>>> DHAVE_CONFIG_H -I. -I..  -I/usr/include/malloc   -I/Users/ 
>>> benediktoswald/extlib/metis-4.0/Lib -I./serial -I./parallel -I./ 
>>> duneinterface -I./alu2d  -I/usr/include/malloc   -g -O2 -MT  
>>> alugrid_parallel.lo -MD -MP -MF .deps/alugrid_parallel.Tpo -c -o  
>>> alugrid_parallel.lo alugrid_parallel.cc
>>> gcc-4.2 -DHAVE_CONFIG_H -I. -I.. -I/usr/include/malloc -I/Users/ 
>>> benediktoswald/extlib/metis-4.0/Lib -I./serial -I./parallel -I./ 
>>> duneinterface -I./alu2d -I/usr/include/malloc -g -O2 -MT  
>>> alugrid_parallel.lo -MD -MP -MF .deps/alugrid_parallel.Tpo -c  
>>> alugrid_parallel.cc -o alugrid_parallel.o
>>> alugrid_parallel.cc:33:2: warning: #warning -- Compiling ALUGrid  
>>> code in debug mode!!! Use -DNDEBUG to get more optimized code!!!
>>> In file included from alugrid_parallel.cc:84:
>>> parallel/party_lib.c:31:2: warning: #warning -- Compiling parallel  
>>> version without PARTY_LIB !!!
>>> mv -f .deps/alugrid_parallel.Tpo .deps/alugrid_parallel.Plo
>>> /bin/sh ../libtool --tag=CXX   --mode=compile gcc-4.2 - 
>>> DHAVE_CONFIG_H -I. -I..  -I/usr/include/malloc   -I/Users/ 
>>> benediktoswald/extlib/metis-4.0/Lib -I./serial -I./parallel -I./ 
>>> duneinterface -I./alu2d  -I/usr/include/malloc   -g -O2 -MT  
>>> alugrid_2d.lo -MD -MP -MF .deps/alugrid_2d.Tpo -c -o alugrid_2d.lo  
>>> alugrid_2d.cc
>>> gcc-4.2 -DHAVE_CONFIG_H -I. -I.. -I/usr/include/malloc -I/Users/ 
>>> benediktoswald/extlib/metis-4.0/Lib -I./serial -I./parallel -I./ 
>>> duneinterface -I./alu2d -I/usr/include/malloc -g -O2 -MT  
>>> alugrid_2d.lo -MD -MP -MF .deps/alugrid_2d.Tpo -c alugrid_2d.cc -o  
>>> alugrid_2d.o
>>> alugrid_2d.cc:33:2: warning: #warning -- Compiling ALUGrid code in  
>>> debug mode!!! Use -DNDEBUG to get more optimized code!!!
>>> In file included from alugrid_2d.cc:39:
>>> alu2d/handle.cc: In function 'void  
>>> ALUGridSpace::get_memory(ALUGridSpace::mallinfo&)':
>>> alu2d/handle.cc:294: error: invalid use of incomplete type 'struct  
>>> ALUGridSpace::mallinfo'
>>> alu2d/handle.h:1044: error: forward declaration of 'struct  
>>> ALUGridSpace::mallinfo'
>>> alu2d/handle.cc: In function 'void  
>>> ALUGridSpace::get_memory_diff(ALUGridSpace::mallinfo&)':
>>> alu2d/handle.cc:298: error: variable 'ALUGridSpace::mallinfo  
>>> meminfo' has initializer but incomplete type
>>> alu2d/handle.cc:298: error: invalid use of incomplete type 'struct  
>>> ALUGridSpace::mallinfo'
>>> alu2d/handle.h:1044: error: forward declaration of 'struct  
>>> ALUGridSpace::mallinfo'
>>> alu2d/handle.cc:299: error: invalid use of incomplete type 'struct  
>>> ALUGridSpace::mallinfo'
>>> alu2d/handle.h:1044: error: forward declaration of 'struct  
>>> ALUGridSpace::mallinfo'
>>> alu2d/handle.cc:300: error: invalid use of incomplete type 'struct  
>>> ALUGridSpace::mallinfo'
>>> alu2d/handle.h:1044: error: forward declaration of 'struct  
>>> ALUGridSpace::mallinfo'
>>> alu2d/handle.cc:301: error: invalid use of incomplete type 'struct  
>>> ALUGridSpace::mallinfo'
>>> alu2d/handle.h:1044: error: forward declaration of 'struct  
>>> ALUGridSpace::mallinfo'
>>> alu2d/handle.cc:302: error: invalid use of incomplete type 'struct  
>>> ALUGridSpace::mallinfo'
>>> alu2d/handle.h:1044: error: forward declaration of 'struct  
>>> ALUGridSpace::mallinfo'
>>> alu2d/handle.cc:303: error: invalid use of incomplete type 'struct  
>>> ALUGridSpace::mallinfo'
>>> alu2d/handle.h:1044: error: forward declaration of 'struct  
>>> ALUGridSpace::mallinfo'
>>> alu2d/handle.cc:304: error: invalid use of incomplete type 'struct  
>>> ALUGridSpace::mallinfo'
>>> alu2d/handle.h:1044: error: forward declaration of 'struct  
>>> ALUGridSpace::mallinfo'
>>> alu2d/handle.cc:305: error: invalid use of incomplete type 'struct  
>>> ALUGridSpace::mallinfo'
>>> alu2d/handle.h:1044: error: forward declaration of 'struct  
>>> ALUGridSpace::mallinfo'
>>> alu2d/handle.cc:306: error: invalid use of incomplete type 'struct  
>>> ALUGridSpace::mallinfo'
>>> alu2d/handle.h:1044: error: forward declaration of 'struct  
>>> ALUGridSpace::mallinfo'
>>> alu2d/handle.cc:307: error: invalid use of incomplete type 'struct  
>>> ALUGridSpace::mallinfo'
>>> alu2d/handle.h:1044: error: forward declaration of 'struct  
>>> ALUGridSpace::mallinfo'
>>> alu2d/handle.cc:308: error: invalid use of incomplete type 'struct  
>>> ALUGridSpace::mallinfo'
>>> alu2d/handle.h:1044: error: forward declaration of 'struct  
>>> ALUGridSpace::mallinfo'
>>> alu2d/handle.cc: In function 'void  
>>> ALUGridSpace::write_memory(std::ostream&, char*)':
>>> alu2d/handle.cc:312: error: variable 'ALUGridSpace::mallinfo  
>>> meminfo' has initializer but incomplete type
>>> alu2d/handle.cc:312: error: invalid use of incomplete type 'struct  
>>> ALUGridSpace::mallinfo'
>>> alu2d/handle.h:1044: error: forward declaration of 'struct  
>>> ALUGridSpace::mallinfo'
>>> alu2d/handle.cc: In function 'void  
>>> ALUGridSpace::write_memory(std::ostream&, char*,  
>>> ALUGridSpace::mallinfo&)':
>>> alu2d/handle.cc:323: error: invalid use of incomplete type 'struct  
>>> ALUGridSpace::mallinfo'
>>> alu2d/handle.h:1044: error: forward declaration of 'struct  
>>> ALUGridSpace::mallinfo'
>>> alu2d/handle.cc:326: error: invalid use of incomplete type 'struct  
>>> ALUGridSpace::mallinfo'
>>> alu2d/handle.h:1044: error: forward declaration of 'struct  
>>> ALUGridSpace::mallinfo'
>>> alu2d/handle.cc:327: error: invalid use of incomplete type 'struct  
>>> ALUGridSpace::mallinfo'
>>> alu2d/handle.h:1044: error: forward declaration of 'struct  
>>> ALUGridSpace::mallinfo'
>>> alu2d/handle.cc:328: error: invalid use of incomplete type 'struct  
>>> ALUGridSpace::mallinfo'
>>> alu2d/handle.h:1044: error: forward declaration of 'struct  
>>> ALUGridSpace::mallinfo'
>>> alu2d/handle.cc:329: error: invalid use of incomplete type 'struct  
>>> ALUGridSpace::mallinfo'
>>> alu2d/handle.h:1044: error: forward declaration of 'struct  
>>> ALUGridSpace::mallinfo'
>>> alu2d/handle.cc: In function 'void  
>>> ALUGridSpace::write_memory_diff(std::ostream&, char*,  
>>> ALUGridSpace::mallinfo&)':
>>> alu2d/handle.cc:334: error: variable 'ALUGridSpace::mallinfo  
>>> meminfo' has initializer but incomplete type
>>> alu2d/handle.cc:334: error: invalid use of incomplete type 'struct  
>>> ALUGridSpace::mallinfo'
>>> alu2d/handle.h:1044: error: forward declaration of 'struct  
>>> ALUGridSpace::mallinfo'
>>> alu2d/handle.cc:335: error: invalid use of incomplete type 'struct  
>>> ALUGridSpace::mallinfo'
>>> alu2d/handle.h:1044: error: forward declaration of 'struct  
>>> ALUGridSpace::mallinfo'
>>> alu2d/handle.cc:336: error: invalid use of incomplete type 'struct  
>>> ALUGridSpace::mallinfo'
>>> alu2d/handle.h:1044: error: forward declaration of 'struct  
>>> ALUGridSpace::mallinfo'
>>> alu2d/handle.cc:337: error: invalid use of incomplete type 'struct  
>>> ALUGridSpace::mallinfo'
>>> alu2d/handle.h:1044: error: forward declaration of 'struct  
>>> ALUGridSpace::mallinfo'
>>> alu2d/handle.cc:338: error: invalid use of incomplete type 'struct  
>>> ALUGridSpace::mallinfo'
>>> alu2d/handle.h:1044: error: forward declaration of 'struct  
>>> ALUGridSpace::mallinfo'
>>> alu2d/handle.cc:339: error: invalid use of incomplete type 'struct  
>>> ALUGridSpace::mallinfo'
>>> alu2d/handle.h:1044: error: forward declaration of 'struct  
>>> ALUGridSpace::mallinfo'
>>> alu2d/handle.cc:340: error: invalid use of incomplete type 'struct  
>>> ALUGridSpace::mallinfo'
>>> alu2d/handle.h:1044: error: forward declaration of 'struct  
>>> ALUGridSpace::mallinfo'
>>> alu2d/handle.cc:341: error: invalid use of incomplete type 'struct  
>>> ALUGridSpace::mallinfo'
>>> alu2d/handle.h:1044: error: forward declaration of 'struct  
>>> ALUGridSpace::mallinfo'
>>> alu2d/handle.cc:342: error: invalid use of incomplete type 'struct  
>>> ALUGridSpace::mallinfo'
>>> alu2d/handle.h:1044: error: forward declaration of 'struct  
>>> ALUGridSpace::mallinfo'
>>> alu2d/handle.cc:343: error: invalid use of incomplete type 'struct  
>>> ALUGridSpace::mallinfo'
>>> alu2d/handle.h:1044: error: forward declaration of 'struct  
>>> ALUGridSpace::mallinfo'
>>> alu2d/handle.cc:344: error: invalid use of incomplete type 'struct  
>>> ALUGridSpace::mallinfo'
>>> alu2d/handle.h:1044: error: forward declaration of 'struct  
>>> ALUGridSpace::mallinfo'
>>> alu2d/handle.cc:347: error: invalid use of incomplete type 'struct  
>>> ALUGridSpace::mallinfo'
>>> alu2d/handle.h:1044: error: forward declaration of 'struct  
>>> ALUGridSpace::mallinfo'
>>> alu2d/handle.cc:348: error: invalid use of incomplete type 'struct  
>>> ALUGridSpace::mallinfo'
>>> alu2d/handle.h:1044: error: forward declaration of 'struct  
>>> ALUGridSpace::mallinfo'
>>> alu2d/handle.cc:349: error: invalid use of incomplete type 'struct  
>>> ALUGridSpace::mallinfo'
>>> alu2d/handle.h:1044: error: forward declaration of 'struct  
>>> ALUGridSpace::mallinfo'
>>> alu2d/handle.cc:350: error: invalid use of incomplete type 'struct  
>>> ALUGridSpace::mallinfo'
>>> alu2d/handle.h:1044: error: forward declaration of 'struct  
>>> ALUGridSpace::mallinfo'
>>> make[3]: *** [alugrid_2d.lo] Error 1
>>> make[2]: *** [all-recursive] Error 1
>>> make[1]: *** [all-recursive] Error 1
>>> make: *** [all] Error 2
>>> seraphor-129129145087:ALUGrid-1.13 benediktoswald$
>>>
>>>
>>>
>>> I would appreciate any ideas and suggestions on this.
>>> Maybe, this problem is linked to the malloc.h header file ?
>>>
>>> Have a great day, Benedikt
>>>
>>>
>>> ------------------------------------------------------------------------------------------------------------------
>>> Benedikt Oswald, Dr. sc. techn., dipl. El. Ing. ETH, www.psi.ch,  
>>> Computational Accelerator Scientist
>>> Paul Scherrer  Institute (PSI), CH-5232 Villigen, Suisse, benedikt.oswald at psi.ch 
>>> , +41(0)56 310 32 12
>>> quamquam sint sub aqua, sub aqua maledicere temptant. http://maxwell.psi.ch/amaswiki/index.php/User:BenediktOswald
>>> ------------------------------------------------------------------------------------------------------------------
>>>
>>>
>>> _______________________________________________
>>> Dune mailing list
>>> Dune at dune-project.org
>>> http://lists.dune-project.org/mailman/listinfo/dune
>>>
>>>
>>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Dune mailing list
>> Dune at dune-project.org
>> http://lists.dune-project.org/mailman/listinfo/dune
>>
>





More information about the Dune mailing list