<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);">
Thanks a lot for the feedback, Jeff. This all makes sense to me.</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);">
We created an issue on our GitLab to make sure we make this more clear before our next release. We'll make sure both the docs and any configure warnings/errors are more obvious about whether given config options are incompatible/unsupported. The conflicting
 MPI and non-MPI configure lines you provided examples of probably ought to provide similar errors -- I'll double check that as well.<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);">
--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> Jeffrey Layton <laytonjb@gmail.com><br>
<b>Sent:</b> Monday, May 18, 2020 10:04 AM<br>
<b>To:</b> Snyder, Shane <ssnyder@mcs.anl.gov><br>
<b>Cc:</b> Carns, Philip H. <carns@mcs.anl.gov>; 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>
<div>
<div dir="ltr">
<div dir="ltr"><br>
</div>
<br>
<div class="x_gmail_quote">
<div dir="ltr" class="x_gmail_attr">On Fri, May 15, 2020 at 9:20 PM Snyder, Shane <<a href="mailto:ssnyder@mcs.anl.gov">ssnyder@mcs.anl.gov</a>> wrote:<br>
</div>
<blockquote class="x_gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
<div 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>
</blockquote>
<div><br>
</div>
<div>Yes - I have been doing this. I explicitly set the compiler. I did try configuration combinations that don't make much sense (CC=mpicc --without-mpi or CC=gcc --with-mpi) but I was looking for any correlation to the compilation issues (I was sure it was
 my fault).</div>
<div><br>
</div>
<blockquote class="x_gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
<div dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
</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>
</blockquote>
<div><br>
</div>
<div>Always.</div>
<div><br>
</div>
<blockquote class="x_gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
<div dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
</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>
</blockquote>
<div><br>
</div>
<div>Roger.</div>
<div><br>
</div>
<div>One small suggestion is to maybe put a little more explanation into the docs _not_ to do what I did :)  More over, if you throw an error it would be good to put some explanation in the message. Perhaps something like "this is an unsupported configuration.
 Try this configuration instead: XXXX", where you can base XXXX on the value of CC.</div>
<div><br>
</div>
<div>Thanks for the commentary and the help!</div>
<div><br>
</div>
<div>Jeff</div>
<div><br>
</div>
<blockquote class="x_gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
<div dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
</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="x_gmail-m_5184629910852229183appendonsend"></div>
<hr style="display:inline-block; width:98%">
<div id="x_gmail-m_5184629910852229183divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Darshan-users <<a href="mailto:darshan-users-bounces@lists.mcs.anl.gov" target="_blank">darshan-users-bounces@lists.mcs.anl.gov</a>>
 on behalf of Carns, Philip H. <<a href="mailto:carns@mcs.anl.gov" target="_blank">carns@mcs.anl.gov</a>><br>
<b>Sent:</b> Friday, May 15, 2020 8:28 AM<br>
<b>To:</b> Jeffrey Layton <<a href="mailto:laytonjb@gmail.com" target="_blank">laytonjb@gmail.com</a>>;
<a href="mailto:darshan-users@lists.mcs.anl.gov" target="_blank">darshan-users@lists.mcs.anl.gov</a> <<a href="mailto:darshan-users@lists.mcs.anl.gov" target="_blank">darshan-users@lists.mcs.anl.gov</a>><br>
<b>Subject:</b> Re: [Darshan-users] Trouble building 3.2.0</font>
<div> </div>
</div>
<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_gmail-m_5184629910852229183x_appendonsend"></div>
<hr style="display:inline-block; width:98%">
<div id="x_gmail-m_5184629910852229183x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Darshan-users <<a href="mailto:darshan-users-bounces@lists.mcs.anl.gov" target="_blank">darshan-users-bounces@lists.mcs.anl.gov</a>>
 on behalf of Jeffrey Layton <<a href="mailto:laytonjb@gmail.com" target="_blank">laytonjb@gmail.com</a>><br>
<b>Sent:</b> Friday, May 15, 2020 7:52 AM<br>
<b>To:</b> <a href="mailto:darshan-users@lists.mcs.anl.gov" target="_blank">darshan-users@lists.mcs.anl.gov</a> <<a href="mailto:darshan-users@lists.mcs.anl.gov" target="_blank">darshan-users@lists.mcs.anl.gov</a>><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>
</div>
</blockquote>
</div>
</div>
</div>
</body>
</html>