[Carpet] has anyone compiled CarpetRegrid with gcc 4.1.1?
Jonathan Thornburg
jthorn at aei.mpg.de
Wed Aug 2 15:07:21 CEST 2006
Hi,
Has anyone compiled CarpetRegrid with gcc 4.1.1?
I'm using a current-CVS Cactus, a current-darcs Carpet, and a freshly
built gcc 4.1.1 (the most recent release version of gcc). When I try
to compile a (any!) Carpet configuration, it dies in CarpetRegrid with
the following wierd errors:
[[...]]
gmake[3]: Entering directory `/home/jonathan/cactus/Cactus/configs/test-ahfinderdirect-carpet/build/CarpetRegrid'
Preprocessing /home/jonathan/cactus/Cactus/arrangements/Carpet/CarpetRegrid/src/automatic.cc
{ if test no = 'yes'; then echo '#line 1 "'/home/jonathan/cactus/Cactus/arrangements/Carpet/CarpetRegrid/src/automatic.cc'"'; fi; cat /home/jonathan/cactus/Cactus/arrangements/Carpet/CarpetRegrid/src/automatic.cc; } | perl -s /home/jonathan/cactus/Cactus/lib/sbin/c_file_processor.pl -line_directives=no -source_file_name=/home/jonathan/cactus/Cactus/arrangements/Carpet/CarpetRegrid/src/automatic.cc /home/jonathan/cactus/Cactus/configs/test-ahfinderdirect-carpet/config-data > automatic.cc
Compiling /home/jonathan/cactus/Cactus/arrangements/Carpet/CarpetRegrid/src/automatic.cc
current_wd=`pwd` ; cd /home/jonathan/cactus/Cactus/configs/test-ahfinderdirect-carpet/scratch ; /usr/local/bin/g++ -g -pipe -ffast-math -Wall -W -Wformat -Wno-unused -Wshadow -Winline -Wpointer-arith -Wcast-align -Wcast-qual -Woverloaded-virtual -Wreorder -ffor-scope -Wreorder -c -o $current_wd/automatic.cc.o $current_wd/automatic.cc -I"/usr/local//include" -I"/home/jonathan/cactus/Cactus/arrangements/Carpet/CarpetRegrid/src" -I"/home/jonathan/cactus/Cactus/arrangements/Carpet/CarpetRegrid/src/include" -I"/home/jonathan/cactus/Cactus/configs/test-ahfinderdirect-carpet/config-data" -I"/home/jonathan/cactus/Cactus/configs/test-ahfinderdirect-carpet/bindings/include" -I"/home/jonathan/cactus/Cactus/src/include" -I"/home/jonathan/cactus/Cactus/arrangements" -I"/home/jonathan/cactus/Cactus/configs/test-ahfinderdirect-carpet/bindings/Configuration/Thorns" -I"/home/jonathan/cactus/Cactus/arrangements/Carpet/CarpetRegrid/src" -I"/home/jonathan/cactus/Cactus/arrangeme
nts/Carpet/CarpetRegrid/src/include" -DTHORN_IS_CarpetRegrid -DCCODE
/usr/local/lib/gcc/i386-unknown-openbsd3.9/4.1.1/../../../../include/c++/4.1.1/new:84: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/local/lib/gcc/i386-unknown-openbsd3.9/4.1.1/../../../../include/c++/4.1.1/new:85: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/local/lib/gcc/i386-unknown-openbsd3.9/4.1.1/../../../../include/c++/4.1.1/new:88: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/local/lib/gcc/i386-unknown-openbsd3.9/4.1.1/../../../../include/c++/4.1.1/new:89: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/local/lib/gcc/i386-unknown-openbsd3.9/4.1.1/../../../../include/c++/4.1.1/new:94: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/local/lib/gcc/i386-unknown-openbsd3.9/4.1.1/../../../../include/c++/4.1.1/new:95: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/home/jonathan/cactus/Cactus/configs/test-ahfinderdirect-carpet/build/CarpetRegrid/automatic.cc: In function 'int CarpetRegrid::Automatic(const cGH*, const gh&, std::vector<std::vector<std::vector<bbox<int, 3>, std::allocator<bbox<int, 3> > >, std::allocator<std::vector<bbox<int, 3>, std::allocator<bbox<int, 3> > > > >, std::allocator<std::vector<std::vector<bbox<int, 3>, std::allocator<bbox<int, 3> > >, std::allocator<std::vector<bbox<int, 3>, std::allocator<bbox<int, 3> > > > > > >&, std::vector<std::vector<vect<vect<bool, 2>, 3>, std::allocator<vect<vect<bool, 2>, 3> > >, std::allocator<std::vector<vect<vect<bool, 2>, 3>, std::allocator<vect<vect<bool, 2>, 3> > > > >&, std::vector<std::vector<int, std::allocator<int> >, std::allocator<std::vector<int, std::allocator<int> > > >&)':
/home/jonathan/cactus/Cactus/configs/test-ahfinderdirect-carpet/build/CarpetRegrid/automatic.cc:33: warning: operation on 'RESTRICTED_CARPETREGRID_STRUCT_use' may be undefined
/home/jonathan/cactus/Cactus/configs/test-ahfinderdirect-carpet/build/CarpetRegrid/automatic.cc:33: warning: operation on 'PRIVATE_CARPETREGRID_STRUCT_use' may be undefined
/home/jonathan/cactus/Cactus/configs/test-ahfinderdirect-carpet/build/CarpetRegrid/automatic.cc: In function 'void CarpetRegrid::Automatic_OneLevel(const cGH*, const gh&, int, int, const gf<double>&, std::vector<bbox<int, 3>, std::allocator<bbox<int, 3> > >&, std::vector<vect<vect<bool, 2>, 3>, std::allocator<vect<vect<bool, 2>, 3> > >&)':
/home/jonathan/cactus/Cactus/configs/test-ahfinderdirect-carpet/build/CarpetRegrid/automatic.cc:106: warning: operation on 'RESTRICTED_CARPETREGRID_STRUCT_use' may be undefined
/home/jonathan/cactus/Cactus/configs/test-ahfinderdirect-carpet/build/CarpetRegrid/automatic.cc:106: warning: operation on 'PRIVATE_CARPETREGRID_STRUCT_use' may be undefined
/home/jonathan/cactus/Cactus/configs/test-ahfinderdirect-carpet/build/CarpetRegrid/automatic.cc: In function 'void CarpetRegrid::Automatic_Recursive(const cGH*, const gh&, const data<double>&, std::list<bbox<int, 3>, std::allocator<bbox<int, 3> > >&, const ibbox&, const ivect&)':
/home/jonathan/cactus/Cactus/configs/test-ahfinderdirect-carpet/build/CarpetRegrid/automatic.cc:184: warning: operation on 'RESTRICTED_CARPETREGRID_STRUCT_use' may be undefined
/home/jonathan/cactus/Cactus/configs/test-ahfinderdirect-carpet/build/CarpetRegrid/automatic.cc:184: warning: operation on 'PRIVATE_CARPETREGRID_STRUCT_use' may be undefined
/home/jonathan/cactus/Cactus/configs/test-ahfinderdirect-carpet/build/CarpetRegrid/automatic.cc: In function 'void CarpetRegrid::Automatic_Recombine(std::list<bbox<int, 3>, std::allocator<bbox<int, 3> > >&, std::list<bbox<int, 3>, std::allocator<bbox<int, 3> > >&, std::list<bbox<int, 3>, std::allocator<bbox<int, 3> > >&, const ibbox&, int)':
/home/jonathan/cactus/Cactus/configs/test-ahfinderdirect-carpet/build/CarpetRegrid/automatic.cc:266: warning: operation on 'RESTRICTED_CARPETREGRID_STRUCT_use' may be undefined
/home/jonathan/cactus/Cactus/configs/test-ahfinderdirect-carpet/build/CarpetRegrid/automatic.cc:266: warning: operation on 'PRIVATE_CARPETREGRID_STRUCT_use' may be undefined
gmake[3]: *** [automatic.cc.o] Error 1
gmake[3]: Leaving directory `/home/jonathan/cactus/Cactus/configs/test-ahfinderdirect-carpet/build/CarpetRegrid'
gmake[2]: *** [make.checked] Error 2
gmake[2]: Leaving directory `/home/jonathan/cactus/Cactus/configs/test-ahfinderdirect-carpet/build/CarpetRegrid'
gmake[1]: *** [/home/jonathan/cactus/Cactus/configs/test-ahfinderdirect-carpet/lib/libthorn_CarpetRegrid.a] Error 2
gmake[1]: Leaving directory `/home/jonathan/cactus/Cactus'
gmake: *** [test-ahfinderdirect-carpet] Error 2
Does anyone know if this is a gcc 4.1.1 problem, a Carpet problem,
or something wierd about my laptop? (I'm currently trying the same
test on another machine...)
ciao,
--
-- Jonathan Thornburg <jthorn at aei.mpg.de>
Max-Planck-Institut fuer Gravitationsphysik (Albert-Einstein-Institut),
Golm, Germany, "Old Europe" http://www.aei.mpg.de/~jthorn/home.html
"Washing one's hands of the conflict between the powerful and the
powerless means to side with the powerful, not to be neutral."
-- quote by Freire / poster by Oxfam
More information about the developers
mailing list