Hello,
I think I made a serious error in trying to set up the path to the hdf5 libraries and headers, so I have started over from the yt checkout. I have hdf5 and openmpi installed through package manager. I am now getting an error when I try to build the executable that reads:
mpic++ -c -o AdiabaticExpansionInitialize.o -DLINUX -DH5_USE_16_API -D__max_subgrids=100000 -D__max_baryons=20 -D__max_cpu_per_node=8 -D__memory_pool_size=100000 -DINITS64 -DLARGE_INTS -DCONFIG_PINT_8 -DIO_32 -DUSE_MPI -DCONFIG_PFLOAT_8 -DCONFIG_BFLOAT_8 -DUSE_HDF5_GROUPS -DTRANSFER -DNEW_GRID_IO -DFAST_SIB -DBITWISE_IDENTICALITY -DFLUX_FIX -DSET_ACCELERATION_BOUNDARY -g -I/usr/local/hdf5/1.8.2s/include -I. AdiabaticExpansionInitialize.C
In file included from /usr/include/c++/4.4/bits/stl_tree.h:62,
from /usr/include/c++/4.4/map:60,
from /usr/lib/openmpi/include/openmpi/ompi/mpi/cxx/mpicxx.h:36,
from /usr/lib/openmpi/include/mpi.h:1886,
from /usr/include/H5public.h:57,
from /usr/include/hdf5.h:24,
from AMRH5writer.h:24,
from Grid.h:20,
from AdiabaticExpansionInitialize.C:28:
/usr/include/c++/4.4/bits/stl_algobase.h:232:56: error: macro "min" passed 3 arguments, but takes just 2
/usr/include/c++/4.4/bits/stl_algobase.h:253:56: error: macro "max" passed 3 arguments, but takes just 2
In file included from /usr/include/c++/4.4/bits/stl_algobase.h:63,
from /usr/include/c++/4.4/bits/stl_tree.h:62,
from /usr/include/c++/4.4/map:60,
from /usr/lib/openmpi/include/openmpi/ompi/mpi/cxx/mpicxx.h:36,
from /usr/lib/openmpi/include/mpi.h:1886,
from /usr/include/H5public.h:57,
from /usr/include/hdf5.h:24,
from AMRH5writer.h:24,
from Grid.h:20,
from AdiabaticExpansionInitialize.C:28:
/usr/include/c++/4.4/bits/cpp_type_traits.h:269: error: redefinition of ‘struct std::__is_floating<double>’
/usr/include/c++/4.4/bits/cpp_type_traits.h:263: error: previous definition of ‘struct std::__is_floating<double>’
In file included from /usr/include/c++/4.4/bits/stl_tree.h:62,
from /usr/include/c++/4.4/map:60,
from /usr/lib/openmpi/include/openmpi/ompi/mpi/cxx/mpicxx.h:36,
from /usr/lib/openmpi/include/mpi.h:1886,
from /usr/include/H5public.h:57,
from /usr/include/hdf5.h:24,
from AMRH5writer.h:24,
from Grid.h:20,
from AdiabaticExpansionInitialize.C:28:
/usr/include/c++/4.4/bits/stl_algobase.h:186: error: expected unqualified-id before ‘const’
/usr/include/c++/4.4/bits/stl_algobase.h:186: error: expected ‘)’ before ‘const’
/usr/include/c++/4.4/bits/stl_algobase.h:186: error: expected ‘)’ before ‘const’
/usr/include/c++/4.4/bits/stl_algobase.h:186: error: expected initializer before ‘const’
/usr/include/c++/4.4/bits/stl_algobase.h:209: error: expected unqualified-id before ‘const’
/usr/include/c++/4.4/bits/stl_algobase.h:209: error: expected ‘)’ before ‘const’
/usr/include/c++/4.4/bits/stl_algobase.h:209: error: expected ‘)’ before ‘const’
/usr/include/c++/4.4/bits/stl_algobase.h:209: error: expected initializer before ‘const’
/usr/include/c++/4.4/bits/stl_algobase.h:232: error: ‘std::min’ declared as an ‘inline’ variable
/usr/include/c++/4.4/bits/stl_algobase.h:232: error: template declaration of ‘const _Tp& std::min’
/usr/include/c++/4.4/bits/stl_algobase.h:235: error: expected primary-expression before ‘if’
/usr/include/c++/4.4/bits/stl_algobase.h:235: error: expected ‘}’ before ‘if’
/usr/include/c++/4.4/bits/stl_algobase.h:237: error: expected unqualified-id before ‘return’
/usr/include/c++/4.4/bits/stl_algobase.h:253: error: ‘max’ declared as an ‘inline’ variable
/usr/include/c++/4.4/bits/stl_algobase.h:253: error: template declaration of ‘const _Tp& max’
/usr/include/c++/4.4/bits/stl_algobase.h:256: error: expected primary-expression before ‘if’
/usr/include/c++/4.4/bits/stl_algobase.h:256: error: expected ‘}’ before ‘if’
/usr/include/c++/4.4/bits/stl_algobase.h:258: error: expected unqualified-id before ‘return’
/usr/include/c++/4.4/bits/stl_algobase.h:259: error: expected declaration before ‘}’ token
Nathan Butcher