<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hi Jeff,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Darshan's traditionally been MPI-based, so '--with-mpi' is assumed if you don't specify anything. We also tend to explicitly pass the compiler we want to use on the config line (i.e., CC=mpicc or CC=gcc), so I'm honestly not sure what Darshan tries to do if
 you aren't that explicit. I made a note to have a closer look at this to see what happens if you don't specify a compiler explicitly to see if we can be more clear about what we need.<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Generally speaking, if you want to use Darshan with MPI applications, just make sure you have the "CC=mpicc" in the config line. If you want to use Darshan with non-MPI applications, make sure you have "--without-mpi CC=gcc"<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
To Phil's finding that this error is likely due to a combination of '--enable-mmap-logs' and '--without-mpi' -- that's not completely surprising as I don't think that's a combination of functionalities I intended to be used at the same time. I'll have to think
 a bit more to see if there's any use in supporting the use of both options at the same time. If so, I'll try to fix this up, otherwise I'll make it an explicit configure error. In the meantime, if you want to instrument non-MPI applications, just use the '--without-mpi'
 option.<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Thanks,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
--Shane<br>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Darshan-users <darshan-users-bounces@lists.mcs.anl.gov> on behalf of Carns, Philip H. <carns@mcs.anl.gov><br>
<b>Sent:</b> Friday, May 15, 2020 8:28 AM<br>
<b>To:</b> Jeffrey Layton <laytonjb@gmail.com>; darshan-users@lists.mcs.anl.gov <darshan-users@lists.mcs.anl.gov><br>
<b>Subject:</b> Re: [Darshan-users] Trouble building 3.2.0</font>
<div> </div>
</div>
<style type="text/css" style="display:none">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
<div dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
Thanks for the bug report Jeff.  I confirmed it on my laptop (different software environment) too.  t looks like the problem is with the combination of these two configure options:</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
--enable-mmap-logs</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
--without-mpi</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
In principle that should be a valid config, I think.  We'll look into it.</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
In the mean time, can run without the --enable-mmap-logs option?  I'm guessing the --without-mpi is the more important of the two for you. 
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
thanks,</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255)">
-Phil<br>
</div>
<div id="x_appendonsend"></div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Darshan-users <darshan-users-bounces@lists.mcs.anl.gov> on behalf of Jeffrey Layton <laytonjb@gmail.com><br>
<b>Sent:</b> Friday, May 15, 2020 7:52 AM<br>
<b>To:</b> darshan-users@lists.mcs.anl.gov <darshan-users@lists.mcs.anl.gov><br>
<b>Subject:</b> [Darshan-users] Trouble building 3.2.0</font>
<div> </div>
</div>
<div>
<div dir="ltr">Good morning,<br>
<br>
I've been trying to build version 3.2.0 using the Ubuntu 18.04 gcc-7.5.0 compiler set along with mpich 3.3.2. My configuration command is,<br>
<br>
<span style="font-family:monospace">./configure --with-log-path=/darshan-logs --with-jobid-env=NONE CC=mpicc --enable-mmap-logs --enable-group-readable-logs --without-mpi</span><br>
<br>
The configure seems to run fine, but when I use "make", I get the following errors:<br>
<br>
<br>
<span style="font-family:monospace">$ make<br>
mpicc -DDARSHAN_CONFIG_H=\"darshan-runtime-config.h\" -I . -I. -I./../ -g -O2  -D_LARGEFILE64_SOURCE -shared -fpic -DPIC -DDARSHAN_PRELOAD -c lib/darshan-core.c -o lib/darshan-core.po<br>
lib/darshan-core.c: In function ‘darshan_init_mmap_log’:<br>
lib/darshan-core.c:781:5: warning: implicit declaration of function ‘PMPI_Bcast’ [-Wimplicit-function-declaration]<br>
     PMPI_Bcast(&logmod, 1, MPI_UINT64_T, 0, core->mpi_comm);<br>
     ^~~~~~~~~~<br>
lib/darshan-core.c:781:28: error: ‘MPI_UINT64_T’ undeclared (first use in this function); did you mean ‘__UINT64_C’?<br>
     PMPI_Bcast(&logmod, 1, MPI_UINT64_T, 0, core->mpi_comm);<br>
                            ^~~~~~~~~~~~<br>
                            __UINT64_C<br>
lib/darshan-core.c:781:28: note: each undeclared identifier is reported only once for each function it appears in<br>
lib/darshan-core.c:781:49: error: ‘struct darshan_core_runtime’ has no member named ‘mpi_comm’<br>
     PMPI_Bcast(&logmod, 1, MPI_UINT64_T, 0, core->mpi_comm);<br>
                                                 ^~<br>
Makefile:120: recipe for target 'lib/darshan-core.po' failed<br>
make: *** [lib/darshan-core.po] Error 1</span><br>
<br>
<br>
I've tried a few alternatives:<br>
<br>
- CC=gcc instead of CC=mpicc<br>
- not using the "--with-out-mpi" option and using CC=mpicc<br>
- Running "make clean" a few times<br>
<br>
I'm curious why, despite the "--without-mpi" option, it appears to want/need an MPI implementation (but I may be way off base here).<br>
<br>
Thanks!<br>
<br>
Jeff<br>
<br>
<br>
</div>
</div>
</div>
</body>
</html>