[MOAB-dev] Error configuring MOAB

Robert Smith robert.smith109 at comcast.net
Fri Nov 13 17:10:05 CST 2009


I'm having trouble configuring MOAB for parallel support and giving it  
locations of netcdf, hdf5, zlib and szip.

While checking for netcdf_c++ on configure line 27906 it fails the  
conftest compile.  But it's really due to the libraries being listed  
in the wrong order.

The build command is:

configure:27938: /homes/sharp/3rdparty/mpich2/mpich2-1.1.1p1/gcc/bin/ 
mpicxx -o conftest  -Wall -pipe -I/homes/sharp/3rdparty/netcdf/ 
netcdf-4.0.1/parallel/gcc/include  -DUNORDERED_MAP_NS=std::tr1 - 
DHAVE_UNORDERED_MAP=tr1/unordered_map -L/homes/sharp/3rdparty/netcdf/ 
netcdf-4.0.1/parallel/gcc/lib   -L/homes/sharp/3rdparty/zlib/ 
zlib-1.2.3/gcc/lib -L/homes/sharp/3rdparty/szip/szip-2.1/gcc/lib  -L/ 
homes/sharp/3rdparty/hdf5/hdf5-1.8.3/parallel/gcc/lib conftest.cpp -lm  
-lnetcdf_c++ -lnetcdf -lhdf5_hl  -lsz -lz -lhdf5 >&5

but this will fail the compilation.

However if the -lhdf5 is moved before the -lsz and -lz but still after  
the -lhdf5_hl it works.

The configure line is below.

Is this a bug?  If so I'll enter it.

./configure --prefix=/homes/sharp/libs/MOAB/beta/parallel/gcc_opt -- 
with-mpi=/homes/sharp/3rdparty/mpich2/mpich2-1.1.1p1/gcc/bin --with- 
netcdf=/homes/sharp/3rdparty/netcdf/netcdf-4.0.1/parallel/gcc --with- 
hdf5=/homes/sharp/3rdparty/hdf5/hdf5-1.8.3/parallel/gcc --with-zlib=/ 
homes/sharp/3rdparty/zlib/zlib-1.2.3/gcc --with-szip=/homes/sharp/ 
3rdparty/szip/szip-2.1/gcc --disable-debug --enable-production


--Bob
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/moab-dev/attachments/20091113/38a2cdc5/attachment.htm>


More information about the moab-dev mailing list