<html><body><div style="color:#000; background-color:#fff; font-family:lucida console, sans-serif;font-size:10pt"><div style="" class=""><span style="" class="">It seems like #include <time.h> is missing from MBZoltan.hpp.</span></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: lucida console,sans-serif; background-color: transparent; font-style: normal;" class=""><span style="" class="">Please try adding it. <br></span></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: lucida console,sans-serif; background-color: transparent; font-style: normal;" class=""><br><span style="" class=""></span></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: lucida console,sans-serif; background-color: transparent; font-style: normal;" class=""><span style="" class="">Rajeev<br style=""></span></div><div style="" class=""><br style="" class=""></div> <div class="" style="font-family: lucida
console, sans-serif; font-size: 10pt;"> <div class="" style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 12pt;"> <div style="" class="" dir="ltr"> <hr style="" class="" size="1"> <font style="" class="" face="Arial" size="2"> <b style="" class=""><span class="" style="font-weight:bold;">From:</span></b> Saumil Patel <saumil.patel134@gmail.com><br style="" class=""> <b style="" class=""><span class="" style="font-weight: bold;">To:</span></b> "moab-dev@mcs.anl.gov" <moab-dev@mcs.anl.gov> <br style="" class=""> <b style="" class=""><span class="" style="font-weight: bold;">Sent:</span></b> Wednesday, June 18, 2014 11:18 AM<br style="" class=""> <b style="" class=""><span class="" style="font-weight: bold;">Subject:</span></b> [MOAB-dev] Building MOAB from Scratch: Error when I run 'make'<br style="" class=""> </font> </div> <div style="" class=""><br style="" class=""><div style=""
class="" id="yiv3617448999">
<div style="" class="">
<div style="" class="" dir="ltr">
<div style="" class="">
<div style="" class="">
<div style="" class="">
<div style="" class="">
<div style="" class="">Dear Moab-Dev Community,<br style="" class="">
<br style="" class="">
</div>
I am building MOAB from scratch on a cluster. I am using the following command './configure' command:<br style="" class="">
<br style="" class="">
<pre style="" class="">./configure --with-mpi --with-hdf5=<hdf5-location> --enable-mbzoltan --with-zoltan=<zoltan_dir><br style="" class="">
<br style="" class=""></pre>
As you can see, I am using MOAB with hdf5 and Zoltan. I am using a PGI compiler. After I am done with the configure, I execute the 'make' command and get the following errors:<br style="" class="">
<br style="" class="">
</div>
$ make<br style="" class="">
<br style="" class="">
<span class="" style="font-family:courier new, monospace;">make all-recursive<br style="" class="">
make[1]: Entering directory `/home/sharedlib/moab-4.6.3'<br style="" class="">
Making all in src<br style="" class="">
make[2]: Entering directory `/home/sharedlib/moab-4.6.3/src'<br style="" class="">
make all-recursive<br style="" class="">
make[3]: Entering directory `/home/sharedlib/moab-4.6.3/src'<br style="" class="">
Making all in parallel<br style="" class="">
make[4]: Entering directory `/home/sharedlib/moab-4.6.3/src/parallel'<br style="" class="">
make all-am<br style="" class="">
make[5]: Entering directory `/home/sharedlib/moab-4.6.3/src/parallel'<br style="" class="">
make[5]: Leaving directory `/home/sharedlib/moab-4.6.3/src/parallel'<br style="" class="">
make[4]: Leaving directory `/home/sharedlib/moab-4.6.3/src/parallel'<br style="" class="">
Making all in io<br style="" class="">
make[4]: Entering directory `/home/sharedlib/moab-4.6.3/src/io'<br style="" class="">
Making all in mhdf<br style="" class="">
make[5]: Entering directory `/home/sharedlib/moab-4.6.3/src/io/mhdf'<br style="" class="">
make[5]: Nothing to be done for `all'.<br style="" class="">
make[5]: Leaving directory `/home/sharedlib/moab-4.6.3/src/io/mhdf'<br style="" class="">
Making all in .<br style="" class="">
make[5]: Entering directory `/home/sharedlib/moab-4.6.3/src/io'<br style="" class="">
make[5]: Nothing to be done for `all-am'.<br style="" class="">
make[5]: Leaving directory `/home/sharedlib/moab-4.6.3/src/io'<br style="" class="">
make[4]: Leaving directory `/home/sharedlib/moab-4.6.3/src/io'<br style="" class="">
Making all in LocalDiscretization<br style="" class="">
make[4]: Entering directory `/home/sharedlib/moab-4.6.3/src/LocalDiscretization'<br style="" class="">
make[4]: Nothing to be done for `all'.<br style="" class="">
make[4]: Leaving directory `/home/sharedlib/moab-4.6.3/src/LocalDiscretization'<br style="" class="">
Making all in .<br style="" class="">
make[4]: Entering directory `/home/sharedlib/moab-4.6.3/src'<br style="" class="">
\<br style="" class="">
source='./../tools/mbzoltan/MBZoltan.cpp' object='MBZoltan.lo' libtool=yes \<br style="" class="">
DEPDIR=.deps depmode=none /bin/sh ../config/depcomp \<br style="" class="">
/bin/sh ../libtool --tag=CXX --mode=compile mpiCC -DHAVE_CONFIG_H -I. -I.. -I../src/moab -I../src/parallel -I/home/sharedlib/hdf5_parallel_build/hdf5/include -DTEMPLATE_SPECIALIZATION -DTEMPLATE_FUNC_SPECIALIZATION -DHAVE_VSNPRINTF -D_FILE_OFFSET_BITS=64
-DUSE_MPI -DHDF5_FILE -DHDF5_PARALLEL -DHAVE_ZOLTAN -I./parallel -DIS_BUILDING_MB -I. -I./io -I./io/mhdf/include -I./parallel -I./LocalDiscretization -I/home/sharedlib/Zoltan_v3.8/ -O2 -DNDEBUG -c -o MBZoltan.lo `test -f './../tools/mbzoltan/MBZoltan.cpp'
|| echo './'`./../tools/mbzoltan/MBZoltan.cpp<br style="" class="">
libtool: compile: mpiCC -DHAVE_CONFIG_H -I. -I.. -I../src/moab -I../src/parallel -I/home/sharedlib/hdf5_parallel_build/hdf5/include -DTEMPLATE_SPECIALIZATION -DTEMPLATE_FUNC_SPECIALIZATION -DHAVE_VSNPRINTF -D_FILE_OFFSET_BITS=64 -DUSE_MPI -DHDF5_FILE -DHDF5_PARALLEL
-DHAVE_ZOLTAN -I./parallel -DIS_BUILDING_MB -I. -I./io -I./io/mhdf/include -I./parallel -I./LocalDiscretization -I/home/sharedlib/Zoltan_v3.8/ -O2 -DNDEBUG -c ./../tools/mbzoltan/MBZoltan.cpp -o MBZoltan.o<br style="" class="">
"./../tools/mbzoltan/MBZoltan.cpp", line 254: <b style="" class="">error</b>: identifier "clock_t" is<br style="" class="">
undefined<br style="" class="">
clock_t t = clock();<br style="" class="">
^<br style="" class="">
<br style="" class="">
"./../tools/mbzoltan/MBZoltan.cpp", line 254: <b style="" class="">error</b>: identifier "clock" is<br style="" class="">
undefined<br style="" class="">
clock_t t = clock();<br style="" class="">
^<br style="" class="">
<br style="" class="">
"./../tools/mbzoltan/MBZoltan.cpp", line 338: <b style="" class="">error</b>: identifier<br style="" class="">
"CLOCKS_PER_SEC" is undefined<br style="" class="">
std::cout << " time to LB_partition " << (clock() - t) / (double) CLOCKS_PER_SEC << "s. \n";<br style="" class="">
^<br style="" class="">
<br style="" class="">
"./../tools/mbzoltan/MBZoltan.cpp", line 380: <b style="" class="">error</b>: identifier "clock_t" is<br style="" class="">
undefined<br style="" class="">
clock_t t = clock();<br style="" class="">
^<br style="" class="">
<br style="" class="">
"./../tools/mbzoltan/MBZoltan.cpp", line 380: <b style="" class="">error</b>: identifier "clock" is<br style="" class="">
undefined<br style="" class="">
clock_t t = clock();<br style="" class="">
^<br style="" class="">
<br style="" class="">
"./../tools/mbzoltan/MBZoltan.cpp", line 472: <b style="" class="">error</b>: identifier<br style="" class="">
"CLOCKS_PER_SEC" is undefined<br style="" class="">
std::cout << " time to assemble graph: " << (clock() - t) / (double) CLOCKS_PER_SEC << "s. \n";<br style="" class="">
^<br style="" class="">
<br style="" class="">
"./../tools/mbzoltan/MBZoltan.cpp", line 490: <b style="" class="">error</b>: identifier<br style="" class="">
"CLOCKS_PER_SEC" is undefined<br style="" class="">
std::cout << " time to initialize points: " << (clock() - t) / (double) CLOCKS_PER_SEC << "s. \n";<br style="" class="">
^<br style="" class="">
<br style="" class="">
"./../tools/mbzoltan/MBZoltan.cpp", line 592: <b style="" class="">error</b>: identifier<br style="" class="">
"CLOCKS_PER_SEC" is undefined<br style="" class="">
std::cout << " time to LB_partition " << (clock() - t) / (double) CLOCKS_PER_SEC << "s. \n";<br style="" class="">
^<br style="" class="">
<br style="" class="">
"./../tools/mbzoltan/MBZoltan.cpp", line 612: <b style="" class="">error</b>: identifier<br style="" class="">
"CLOCKS_PER_SEC" is undefined<br style="" class="">
std::cout << " time to write partition in memory " <<(clock() - t) / (double) CLOCKS_PER_SEC << "s. \n";<br style="" class="">
^<br style="" class="">
<br style="" class="">
9 <b style="" class="">errors</b> detected in the compilation of "./../tools/mbzoltan/MBZoltan.cpp".</span><br style="" class="">
<br style="" class="">
</div>
Has anyone encountered these problems? If so, can you recommend something I can do to fix it? Your help is greatly appreciated.<br style="" class="">
<br style="" class="">
</div>
Best,<br style="" class="">
<br style="" class="">
</div>
Saumil<br style="" class="">
<div style="" class="">
<div style="" class="">
<div style="" class="">
<div style="" class=""><br style="" class="">
<br style="" class="">
</div>
</div>
</div>
</div>
</div>
</div>
</div><br style="" class=""><br style="" class=""></div> </div> </div> </div></body></html>