[Dune] ALUGrid-1.13 on Mac OS X, problems configuring and compiling

Oswald Benedikt Benedikt.Oswald at psi.ch
Thu Feb 5 09:22:14 CET 2009


Dear Dune and ALUGrid developers,

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 
------------------------------------------------------------------------------------------------------------------





More information about the Dune mailing list